* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    /* font-family: Arial, sans-serif; */
    background-image: url(../midia/iconX.png);
    background-repeat:repeat-y;
    background-size: contain;
    background-attachment: fixed;
    background-position-x: center;
    background-color: #f4f4f4;
    /* margin: 0;
    padding: 20px; */
}

.timeline {
    position: relative;
    width: 80%;
    /* max-width: 800px; */
    margin: auto;
}

/* .timeline::after {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -25px;
    width: 78px;
    height: 78px;
    background-color: #e1e1de;
    border-radius: 50%;
} */

.container {
    position: relative;
    width: 50%;
    padding: 10px 40px;
    box-sizing: border-box;
}

.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
}

.content {
    padding: 20px;
    background: white;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(165, 42, 42, 0.5);
    text-align: center;

}
.content ul li {
  text-align: justify;
}

.year {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    /* background: brown; */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50%;
}

.left .year {
    right: -25px;
    background: darkgoldenrod;
}

.right .year {
    left: -25px;
    background: brown;
}

.content img {
    width: 100%;
    border-radius: 8px;
}

header{
    display: flex;
    width: 100%;
    height: 80px;
    align-items: center;
    /* border: 1px solid brown; */
    box-shadow: 5px 0 10px brown;
    justify-content: space-between;
    padding: 20px;
    z-index: 1;
    background-color: #fff;
  }
  header:hover {
    box-shadow: 0 0 10px darkgoldenrod;
  }
  header img{
    width: 200px;
  }
 
  header a{
    position: relative;
    float: left;
    list-style: none;
    cursor: pointer;
    font-size: 20px;
    padding: 10px;
    display: flex;
    color: #333;
    text-decoration: none;
  }
  .btnAcess {
    border-radius: 50px;
    padding: 6px;
    border: 3px solid #B95151;
    width: 90px;
    cursor: pointer;
    background-color: #fff;
  }
  .btnAcess:hover {
    background-color: #B95151;
    color: #fff;
  }

  .menu-icon {
    display: none;
    font-size: 30px;
    cursor: pointer;
  }

  /*side menu*/

/* Ícone hamburguer */
.menu-icon {
  font-size: 30px;
  cursor: pointer;
}

/* MENU LATERAL */
.side-menu {
  position: fixed;
  top: 0;
  left: -250px; /* Escondido por padrão */
  width: 250px;
  height: 100%;
  background-color: white;
  box-shadow: 5px 0 10px rgba(0, 0, 0, 0.2);
  transition: left 0.3s ease-in-out;
  padding-top: 20px;
  z-index: 1100;
}

/* Mostrar menu */
.side-menu.open {
  left: 0;
}

/* Botão fechar */
.close-btn {
  background: none;
  border: none;
  font-size: 25px;
  cursor: pointer;
  position: absolute;
  top: 5px;
  right: 10px;
}

/* Estilização dos links do menu */
.side-menu  {
  list-style: none;
  padding: 20px;
}

.side-menu a  {
  padding: 15px;
  text-align: center;
}

.side-menu  a {
  text-decoration: none;
  color: #333;
  font-size: 18px;
  display: block;
  transition: 0.3s;
}

.side-menu a:hover {
  color: brown;
}
.overlay {
  display: none; /* Escondido por padrão */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fundo semi-transparente */
  z-index: 999; /* Fica abaixo do menu */
}

/* Mostrar o overlay quando o menu estiver aberto */
.overlay.show {
  display: block;
}
/*rodapé*/
footer{
    background-color: #fff;
    box-shadow: 0px 5px 10px #333;
    width: 100%;
    height: auto;
    padding: 20px 0;
    margin-top: 50px;
  }
  .icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
  }
  .icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 60px;
  }
  .icons img {
    width: 100%;
    max-width: 60px;
    transition: transform 0.3s ease;
  }
  .icons img:hover {
    transform:  scale(1.1);
  }
  #imgfoot {
    transition: transform 0.3s ease;
  }
  #imgfoot:hover {
    transform:  scale(1.1);
  }
  
  footer p {
    margin-top: 20px;
    text-align: center;
    color: rgb(0, 68, 255)
  }

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: brown;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: none; /* Escondido por padrão */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s, transform 0.3s;
}

.back-to-top:hover {
    background-color: darkgoldenrod;
    transform: scale(1.1);
}

  @media (max-width: 768px) {
    .container {
        width: 100%;
        left: 0;
        text-align: left; /* Garante alinhamento correto */
    }

    .right, .left {
        left: 0;
    }

    .year {
        left: 10px !important;
        right: auto !important;
        transform: translateX(-50%);
    }

    .menu-icon {
        display: block;
      }
     /* Esconder menu no mobile */
  .menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0px 5px 10px #ccc;
    padding: 10px;
    text-align: center;
  }

  /* Mostrar menu quando ativo */
  .menu.active {
    display: flex;
    animation: slideIn 0.3s ease-in-out;
  }

  header a{
    padding: 10px;
  }
  #mainhead {
    display: none;
  }
  .icons a img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
  }
}
