* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background-image: linear-gradient(315deg, #b8962e 0%, #000000 74%);
  background-attachment: fixed;
  color: #f5d76e;
  font-family: Georgia, serif;
}

/* Headings */
h1, h2, h3 {
  color: #ffd700;
  font-family: Georgia, serif;
  margin: 14px 12px;
  line-height: 1.3;
}

h1 {
  text-align: center;
  font-size: clamp(2.2rem, 7vw, 3.4rem);
}

h2 {
  text-align: right;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
}

h3 {
  text-align: center;
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
}

/* Paragraphs */
p {
  color: #f5d76e;
  text-align: center;
  margin: 18px;
  line-height: 1.7;
  font-size: clamp(1.1rem, 3.8vw, 1.3rem);
}

/* Links */
a {
  color: #ffffff;
  text-decoration: none;
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  transition: 0.3s ease;
  word-wrap: break-word;
}

a:hover {
  color: #ffd700;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 14px auto;
  border: 3px solid #c9a227;
  border-radius: 6px;
}

/* Terms */
.terms {
  color: #e6e6e6;
  padding: 0 14px;
  font-size: clamp(1rem, 3.4vw, 1.2rem);
}

/* NAVBAR */
.nav {
  background: linear-gradient(180deg, #3a3a3a, #1f1f1f);
  text-align: center;
  overflow: visible;
  border-bottom: 2px solid #c9a227;
  padding: 10px 12px;
}

.nav a {
  display: inline-block;
  color: #eaeaea;
  padding: 16px 18px;
  text-decoration: none;
  font-size: clamp(1rem, 3vw, 1.25rem);
  letter-spacing: 0.5px;
  min-height: 48px;
}

.nav a:hover {
  background-color: #555;
  color: #ffd700;
  border-radius: 4px;
}

/* Mobile icon */
.nav .icon {
  display: none;
}

/* Email section */
.email {
  text-align: center;
  background-color: #1f1f1f;
  color: #ffd700;
  font-size: clamp(1.1rem, 3.8vw, 1.5rem);
  border-top: 1px solid #444;
  padding: 14px;
  word-wrap: break-word;
  line-height: 1.6;
}

.email a {
  color: #eaeaea;
}

.email a:hover {
  color: #ffd700;
}

/* Dropdown */
.dropbtn {
  background-color: #2a2a2a;
  color: #ffd700;
  padding: 14px 18px;
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  border: none;
  cursor: pointer;
  max-width: 100%;
  min-height: 50px;
}

.dropdown {
  position: relative;
  display: inline-block;
  max-width: 100%;
}

.dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  background-color: #1f1f1f;
  min-width: 220px;
  max-width: 90vw;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 1px solid #444;
  z-index: 999;
}

.dropdown-content a {
  color: #eaeaea;
  padding: 16px 18px;
  text-decoration: none;
  display: block;
  text-align: center;
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: bold;
  letter-spacing: 1px;
  line-height: 1.6;
  border-bottom: 1px solid #333;
}

.dropdown-content a:hover {
  background-color: #444;
  color: #ffd700;
  transform: scale(1.05);
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #444;
}

/* Misc */
unselectable {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

dd {
  word-wrap: break-word;
  overflow-wrap: break-word;
  margin: 12px 18px;
  font-size: clamp(1rem, 3.4vw, 1.15rem);
  line-height: 1.6;
}

#alphabet {
  color: #ff4d4d;
}

li {
  display: inline-block;
  margin: 5px 7px;
  font-size: clamp(1rem, 3.3vw, 1.15rem);
}

/* Tablet and down */
@media screen and (max-width: 768px) {
  html {
    font-size: 17px;
  }

  h2 {
    text-align: center;
  }

  p {
    margin: 16px 14px;
  }

  .nav {
    padding: 8px;
  }

  .nav a {
    display: block;
    width: 100%;
    padding: 16px 12px;
    font-size: 1.1rem;
  }

  .dropdown {
    display: block;
    width: 100%;
  }

  .dropbtn {
    width: 100%;
    font-size: 1.05rem;
    padding: 16px;
  }

  .dropdown-content {
    position: static;
    width: 100%;
    max-width: 100%;
    max-height: 350px;
    border-top: none;
  }

  .dropdown-content a {
    padding: 18px;
    font-size: 1.5rem;
  }

  li {
    display: block;
    margin: 8px 0;
  }

  .email {
    padding: 16px 12px;
  }
}

/* Small phones */
@media screen and (max-width: 480px) {
  html {
    font-size: 18px;
  }

  body {
    background-attachment: scroll;
  }

  h1 {
    font-size: clamp(2.3rem, 9vw, 3rem);
  }

  h2 {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
  }

  h3 {
    font-size: clamp(1.5rem, 6vw, 1.8rem);
  }

  p {
    font-size: 1.1rem;
    margin: 14px 12px;
  }

  a {
    font-size: 1.08rem;
  }

  .nav a {
    font-size: 1.08rem;
    padding: 16px 10px;
  }

  .dropbtn {
    font-size: 1.08rem;
    padding: 16px 14px;
  }

  .dropdown-content a {
    font-size: 1.5rem;
    padding: 18px;
  }

  .email {
    font-size: 1.1rem;
  }

  dd,
  li,
  .terms {
    font-size: 1.02rem;
  }
}