/*PARA TEXTOS E LAYOUTS*/

header {
  width: 100%;
  border: 3px solid rgb(219, 188, 8);
  border-radius: 20px 20px 10px 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background-color: rgb(117, 20, 20);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center; 
  padding: 15px 40px;
  border-bottom: 2px solid rgb(219, 188, 8);
}

header h1 {
  font-size: 55px;
  color: rgb(219, 188, 8);
  margin-left: -150px;
  letter-spacing: 1.5px;
  text-shadow: 1px 1px 2px black;
  flex: 1;
  text-align: center;
}

a{
  color: yellow;
  text-decoration: none;
  font-size: 17px;
  margin-left: 10px;
  margin-right: 20px;
}

a:hover{
  color:rgb(255, 145, 0);
  text-decoration: underline;
}

main {
  width: 80%;
  margin: 20px auto;
  flex: 1;
}

footer {
  display: flex;
  justify-content: center;
  padding: 15px;
  border-top: 2px solid rgb(219, 188, 8);
  font-size: 14px;
}

body {
  background-color: rgb(1, 1, 61);
  height: 100vh;
  color:rgb(219, 188, 8);
  display: flex;
  flex-direction: column;
}

nav {
  background-color: rgb(87, 10, 10);
  border-bottom: 2px solid rgb(219, 188, 8);
  display: flex;
  justify-content: center; 
  padding: 10px 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex; 
  gap: 40px;
}

nav a {
  color: #f0e68c;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  transition: all 0.3s ease;
  padding: 6px 10px;
  border-radius: 6px;
}

nav a:hover {
  background-color: rgb(219, 188, 8);
  color: rgb(87, 10, 10);
}

h2{
  color: rgb(219, 188, 8);
  text-decoration: underline;
  text-shadow: 1px 1px 2px black;
  flex: 1;
}

.projetos-section {
  width: 90%;
  max-width: 900px;
  margin: 40px auto;
  background-color: rgba(117, 20, 20, 0.9);
  border: 2px solid rgb(219, 188, 8);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 0 25px rgba(219, 188, 8, 0.2);
  text-align: center;
  color: #f0e68c;
}

.titulo-projetos {
  font-size: 2em;
  margin-bottom: 10px;
  color: #f9e99c;
  text-shadow: 0 0 8px rgba(219, 188, 8, 0.5);
}

.intro-projetos {
  margin-bottom: 30px;
  font-size: 1.1em;
}

.lista-projetos {
  display: flex;
  flex-direction: column; 
  gap: -10px; 
  align-items: stretch;
}

.projeto-card {
  display: block;
  background-color: rgba(40, 20, 20, 0.8);
  border: 2px solid rgb(219, 188, 8);
  border-radius: 12px;
  padding: 20px;
  text-decoration: none;
  color: #f0e68c;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.projeto-card:hover {
  transform: scale(1.05);
  background-color: rgba(80, 30, 30, 0.9);
  border-color: #f0e68c;
  box-shadow: 0 0 15px rgba(219, 188, 8, 0.4);
}

.projeto-card h3 {
  margin-top: 0;
  font-size: 25px;
  color: #ffd700;
}

.projeto-card p {
  font-size: 18px;
  color: #f8e6b1;
}

.itm_lista{
  width: 70%;
  max-width: 900px;
  margin: 40px auto;
  background-color: rgba(117, 20, 20, 0.9);
  border: 2px solid rgb(219, 188, 8);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 0 25px rgba(219, 188, 8, 0.2);
  text-align: center;
  color: #f0e68c;
}

/*PARA AS MINHAS IMAGENS*/

.logotiposuoperior{
  width: 125px;
  height: 125px;
  border-radius: 50%;
  object-fit: cover;
}

img[src*="Desenho_D_Conjunto_carrinho.jpg"]{
  width: 450px;
  height: 300px;
  border-radius: 0%;
  object-fit: cover;
}

img[src*="Foto_Grupo15_carrinho.jpeg"]{
  width: 300px;
  height: 300px;
  border-radius: 10%;
  object-fit: cover;
}

.imagens-projeto {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
  justify-content: center;
  align-items: center;
}

.fotos {
  background-color: rgba(87, 87, 150, 0.3);
  border: 2px solid rgb(219, 188, 8);
  border-radius: 15px;
  padding: 20px 5px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  width: 70%;
  margin: 10px auto;
  box-shadow: 0 0 20px rgba(219, 188, 8, 0.2);
}

.img_fots {
  object-fit: cover;
  border-radius: 12px;
  border: 1.5px solid rgb(219, 188, 8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 260px;
  height: 270px;
  grid-column: 2;
  grid-row: 1 / 3;
}

.img_fots:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(219, 188, 8, 0.6);
}

.galeria {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 10px;
  width: 90%;
  max-width: 550px;
  margin: 40px auto;
  padding: 10px;
  background-color: rgba(20, 20, 60, 0.8);
  border: 2px solid rgb(219, 188, 8);
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(219, 188, 8, 0.15);
}

.img {
  object-fit: cover;
  border-radius: 12px;
  border: 1.5px solid rgb(219, 188, 8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.img.pequena {
  width: 130px;
  height: 130px;
}

.img.grande {
  width: 260px;
  height: 270px;
  grid-column: 2;
  grid-row: 1 / 3;
}

.img.pequena.esquerda:nth-of-type(1) {
  grid-column: 1;
  grid-row: 1;
}

.img.pequena.esquerda:nth-of-type(2) {
  grid-column: 1;
  grid-row: 2;
}

.img.pequena.direita:nth-of-type(4) {
  grid-column: 3;
  grid-row: 1;
  margin-right: -10px;
}

.img.pequena.direita:nth-of-type(5) {
  grid-column: 3;
  grid-row: 2;
  margin-right: -10px;
}

.img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(219, 188, 8, 0.6);
}

.rank {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background-color: rgb(117, 20, 20);
  border: 2px solid rgb(219, 188, 8);
  border-radius: 12px;
  padding: 30px 50px;
  gap: 60px;
  flex-wrap: nowrap; 
}

.rank article {
  flex: 1 1 60%; 
  color: #fff;
  font-size: 1.1rem;
  line-height: 1.8;
  min-width: 280px;
}

.rank_figure {
  flex: 0 0 250px;
  text-align: center;
}

.rank_img_a,
.rank_img_b{
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(219, 188, 8, 0.3);
}

.rank_figure figcaption {
  font-size: 0.9rem;
  color: #f0e68c;
  margin-top: 8px;
}


.rank_img_a:hover,
.rank_img_b:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(219, 188, 8, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}


/*MEDIA QUERY*/
@media (max-width: 768px) {
  
  header {
    flex-direction: column; 
    text-align: center;
  }

  header h1 {
    font-size: 25px;
    color: rgb(219, 188, 8);
    margin-left: 0px;
    letter-spacing: 1.5px;
    text-shadow: 1px 1px 2px black;
    flex: 1;
    text-align: center;
  }

  nav ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding: 6px 0 !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  nav {
    flex-direction: column; 
    gap: 0px;       
  }

  nav a {
    font-size: 15px;         
    padding: 1px 2px;         
    width: 60%;               
    border-radius: 4px;
  }

  .logotiposuoperior{
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
  }

  .img_fots {
    object-fit: cover;
    border-radius: 12px;
    border: 1.5px solid rgb(219, 188, 8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 130px;
    height: 140px;
    grid-column: 2;
    grid-row: 1 / 3;
  }

  /*Reformulando página de listagem parao celular*/
  .projeto-card h3 {
    margin-top: 0;
    font-size: 15px;
    color: #ffd700;
  }

  .projeto-card p {
    font-size: 10px;
    color: #f8e6b1;
  }

  /*Mudando a galeria para o celular*/
  .galeria {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    grid-template-rows: auto auto auto;    
    gap: 8px;
    width: 95%;
    max-width: 400px;
    margin: 30px auto;
    padding: 8px;
  }

  .img.pequena.esquerda:nth-of-type(1) {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
  }
  .img.pequena.direita:nth-of-type(4) {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
  }

  .img.grande {
    grid-column: 1 / span 2;
    grid-row: 2;
    justify-self: center;
    margin: 0;
  }

  .img.pequena.esquerda:nth-of-type(2) {
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
  }
  .img.pequena.direita:nth-of-type(5) {
    grid-column: 2;
    grid-row: 3;
    justify-self: center;
  }
  
  .rank {
    flex-direction: column; 
    align-items: center;
    text-align: center;
    gap: 20px; 
  }

  .rank_img_a,
  .rank_img_b{
    width: 150%;
    height: auto;
    margin-left: -40px;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(219, 188, 8, 0.3);
  }

}