@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #001224;
}

::-webkit-scrollbar-thumb {
  background: #4070f4;
  border-radius: 10px;
}

:root {
  --card-height: 300px;
  --card-width: calc(var(--card-height) / 1.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins';
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 85px;
  background: #000611;
  color: white;
  padding: 18px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease-in-out;
  overflow: hidden;
  z-index: 999;
}

.sidebar:hover {
  width: 250px;
}

.sidebar:hover .logo_closed {
  display: none;
}

.sidebar:hover .logo_open {
  display: flex;
  opacity: 1;
  transition: 0.4s ease-in-out;
}

.logo_items {
  gap: 8px;
  transition: 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav_image {
  display: flex;
  width: 50px;
  justify-content: center;
  transition: 0.4s ease-in-out;
}

.logo_closed {
  width: 50px;
  transition: 0.4s ease-in-out;
}

.logo_open {
  opacity: 0;
  display: none;
  width: 150px;
  transition: 0.4s ease-in-out;
}

.menu_container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 30px;
  overflow-y: auto;
  transition: 1s ease-in-out;
}

.menu_container::-webkit-scrollbar {
  display: none;
}

.flex {
  display: flex;
  align-items: center;
}

.item {
  list-style: none;
}

.link {
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 7.5px;
  color: white;
}

.link:hover {
  color: #fff;
  background: linear-gradient(180deg, #13326E, #264FAB, #4077FF);
  animation: animacao_link 0.1s ease-in-out;
}

@keyframes animacao_link {
  0% {
    background: linear-gradient(180deg, #13316e7a, #264eab73, #4076ff6e);
  }

  100% {
    background: linear-gradient(180deg, #13326E, #264FAB, #4077FF);
  }

}

.link span {
  white-space: nowrap;

}

.link i {
  height: 60px;
  min-width: 50px;
  display: flex;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

body {
  margin-left: 85px;
}

#BANNER_SOBRE {
  display: flex;
  width: 100%;
  object-fit: cover;
  background: linear-gradient(360deg, #001f3f, #00356d);
  box-shadow: 3px 3px 25px black;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}

/* Sobre */
.sobre {
  height: 80vh;
  text-align: center;
  background: linear-gradient(135deg, #00356d, #012f60);
}

.content {
  padding: 50px;
}

.sobre h1 {
  color: #ffffff;
  margin-bottom: 20px;
}

.sobre p {
  color: white;
  font-size: 20px;
  padding-inline: 55px;
}

/* Módulos e Fases */
.competicao {
  padding: 50px 10%;
  text-align: center;
  background: #00356d;
  color: white;
}

.competicao-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.modulos,
.fases {
  flex: 1;
  min-width: 280px;
  max-width: 45%;
  background: white;
  color: #00356d;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.modulos h3,
.fases h3 {
  margin-bottom: 20px;
  font-size: 1.6em;
  border-bottom: 2px solid #00356d;
  padding-bottom: 10px;
}

.modulo-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.modulo {
  background: #f0f0f0;
  color: #00356d;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: left;
  border-left: 5px solid #00356d;
}

.modulo:hover {
  transform: translateY(-5px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.7s ease;
}

.fase {
  background: #f0f0f0;
  color: #00356d;
  padding: 15px;
  border-radius: 8px;
  font-size: 1.1em;
  line-height: 1.5;
  text-align: left;
  border-left: 5px solid #00356d;
  margin-top: 20px;
}

.fase h4 {
  font-size: 1.4em;
  margin-bottom: 10px;
  font-weight: bold;
}

.fase :hover {
  transition: all 0.7s ease;

}

#sobre-evento {
  text-align: center;
  padding: 60px;
  background: linear-gradient(135deg, #00356d, #007BFF);
  color: white;
}

h1 {
  margin-bottom: 20px;
  font-size: 40px;
}

.article-container {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  width: 100%;
}

article {
  flex: 1 1 200px;
  max-width: 400px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 105%;
}

article:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

article:hover img {
  transform: scale(1.05);
  filter: brightness(1.1) saturate(1.2);
}

figure {
  margin: 0;
  padding: 0;
  overflow: hidden;
}

article img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.article-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

article h2 {
  font-size: 21px;
  margin-bottom: 5px;
  color: #00356d;
  height: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  align-items: center;
  display: flex;
  justify-content: center;
}

article p {
  margin-bottom: 6px;
  font-size: 15px;
  margin-top: 5px;
  flex-grow: 1;
  align-items: center;
  display: flex;
  justify-content: center;
  text-align: center;
  color: black;
}




.regulamento {
  text-align: center;
  padding: 30px;
  color: #00356d;
  border-radius: 10px;
  margin-top: 40px;
}

.regulamento h1 {
  font-size: 1.8em;
  margin-bottom: 10px;
}

.regulamento p {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.btn-download {
  display: inline-block;
  background-color: #00356d;
  color: white;
  padding: 12px 25px;
  font-size: 1.2em;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn-download:hover {
  background-color: #002c56;
}

#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: white;
  color: #002c56;
  border: none;
  border-radius: 50%;
  font-size: 35px;
  cursor: pointer;
  opacity: 0.8;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-90deg);
  padding-bottom: 3px;
  border: 1px solid #002c56;
}

#backToTop:hover {
  opacity: 1;
  transform: scale(1.1) rotate(-90deg);
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  background-color: #00356d;
  padding: 20px;
}

footer ul {
  list-style-type: none;
  display: flex;
  gap: 50px;
}

footer ul a {
  text-decoration: none;
  color: white;
}

footer ul a:hover {
  color: #4070f4;
  transition: 0.3s ease-in-out;
}

.footer-linha {
  border: none;
  height: 2px;
  background-color: rgb(0, 166, 255);
  margin: 10px auto;
  width: 70%;
}

/* Responsividade */
@media screen and (max-width: 1100px) {
  .sobre {
    height: 60vh;
  }

  .competicao-container {
    flex-direction: column;
    align-items: center;
  }

  .modulos,
  .fases {
    max-width: 90%;
  }

  .sobre p {
    padding-inline: 0;
  }

  .content {
    padding: 30px;
  }

  .article-container {
    gap: 30px;
  }
}

@media screen and (max-width: 800px) {
  .sidebar {
    width: 65px;
  }

  body {
    margin-left: 65px;
  }

  .sidebar:hover {
    width: 200px;
  }

  .logo_open {
    width: 120px;
  }

  .competicao {
    padding: 30px 5%;
  }

  .sobre p {
    font-size: 17px;
  }

  .content {
    padding: 20px;
  }

  .modulos,
  .fases {
    min-width: 100%;
  }

  .article-container {
    flex-direction: column;
    align-items: center;
  }

  article {
    width: 90%;
  }

  footer ul {
    flex-direction: column;
    gap: 10px;
  }
}

@media screen and (max-width: 500px) {

  .sobre h1,
  #sobre-evento h1,
  .regulamento h1 {
    font-size: 28px;
  }

  .btn-download {
    font-size: 1em;
    padding: 10px 20px;
  }

  .modulo,
  .fase {
    font-size: 1em;
    padding: 10px;
  }

  .competicao-container {
    gap: 20px;
  }

  .regulamento p {
    font-size: 1em;
  }
}