@font-face {
  font-family: "Helvetica";
  src: url("../fonts/Helvetica.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: "Helvetica", sans-serif;
  margin: 0;
}
header {
  background-color: #c9a03f;
  color: white;
}
#main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
header {
  text-align: center;
  font-weight: bolder;
}
nav {
  background-color: #001f54;
  max-width: 15%;
  flex: 1;
}
article {
  flex: 2;
  max-width: 60%;
  padding-left: 3%;
}
aside {
  background-color: #f5f5f5;
  max-width: 25%;
  flex: 1;
}
footer {
  position: fixed;
  bottom: 0%;
  left: 45%;
}
ul li {
  margin-bottom: 6%;
}
nav ul {
  list-style-type: none;
  font-size: large;
}
article > * {
  margin-top: 20px;
  margin-bottom: 20px;
}
article h2 {
  color: #001f54;
}
article h3 {
  font-weight: bold;
}
article p {
  line-height: 1.7;
}
aside h2 {
  margin-left: 2%;
}
aside ul li::marker {
  color: #ffd700;
}
a:link {
  color: white;
}
a:visited {
  color: white;
}

.toggle {
  display: none;
}

.dropdown {
  margin: 30px 0px 0px 20px;
}

.dropdown > label {
  padding: 10px;
  background-color: #fff;
  border: 2px solid #ccc;
}

.dropdown > ul {
  display: none;
  position: absolute;

  padding: 10px;
  border: 1px solid #ddd;
  z-index: 1;
  list-style-type: none;
}

.toggle:checked ~ ul,
.toggle:hover ~ ul {
  display: block;
}

.dropdown ul li a {
  color: black; 
  text-decoration: none; 
}

.fade-text {
  position: relative;
  display: inline-block;
  color: white;
  font-size: 2rem;
}

.fade-text span {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.5s ease;
  transform: translateX(-20px); 
}

.text-original {
  opacity: 1;
  z-index: 1;
}

.text-hover {
  opacity: 0;
  z-index: 0;
}

.fade-text:hover .text-original {
  opacity: 0;
}

.fade-text:hover .text-hover {
  opacity: 1;
}

@media (max-width: 768px) {
  #main {
    flex-direction: column;
    align-items: center;
  }

  nav {
    max-width: 100%;
    width: 100%;
    margin-bottom: 20px;
  }

  article {
    max-width: 90%;
    padding-left: 0;
  }

  aside {
    max-width: 90%;
    margin-top: 20px;
  }

  footer {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  article h2 {
    font-size: 1.5em;
  }

  nav ul {
    font-size: 1.2em;
  }

  article img {
    width: 100%; /* Make images responsive */
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  article h2 {
    font-size: 1.3em;
  }

  article h3 {
    font-size: 1.1em;
  }

  nav ul {
    font-size: 1em;
  }

  aside ul li {
    font-size: 1em;
  }
}
