:root {
  --font-goodlife: "goodlife-sans-condensed", sans-serif;
  --font-goodlife-condensed: "goodlife-sans-condensed", sans-serif;
  --font-placa: 'placa', sans-serif;
  --font-mighty: 'mighty-slab', serif;
  --blue: #007bff;
  --mint: #00d4aa;
  --purple: #8b5cf6;
  --red: #f53b57;
  --yellow: #fbd05b;
  --bg-silver: #d3d3d3;
}
/* END ROOT */

body {
    margin: 0 auto;
    padding: 0 5vw;
    font-family: var(--font-placa);
    font-size: 2rem;
    line-height: 1.6;
    color: black;
    background-color: var(--bg-silver);
    max-width: 2160px;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
  padding: 3rem;
  margin-bottom: 2.5rem;
  position: relative;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

.header-row hr {
  flex: 1; 
  border: none;
  border-top: 3px dashed var(--red);
  margin: 0;
  opacity: 0.4; 
}

.logo-3d {
  font-family: var(--font-mighty);
  font-weight: 400;
  font-size: 96px;
  color: var(--blue);
  text-decoration: none;
  text-shadow: 
    4px 4px 0 #2c3e50,
    6px 6px 0 #2c3e50,
    12px 12px 0 #2c3e50;
}

header li {
  display: inline-block;
  margin: 0 15px;
  position: relative;
}

li a {
  text-decoration: none;
  color: black;
  font-size: 2.5rem;
  font-family: var(--font-placa);
  font-weight: 400;
}

li a:hover {
  color: var(--purple);
}

.submenu {
  display: flex; 
  opacity: 0; 
  visibility: hidden; 
  transform: translateY(-10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  position: absolute;
  list-style: none;
  padding: 10px 0;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  min-width: 150px;
  z-index: 1000;
}

li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

nav a {
  transition: color 0.4s ease;
}

footer {
    position: fixed;
    bottom: 3rem;
    left: 3rem;
    font-size: 1rem;
}

/* FOR MEDIUM SIZE DEVICES */
@media (max-width: 1024px) {
  body {
    padding: 0 5vw;
    font-size: 1.5rem;
  }
  
  .logo-3d {
    font-size: 72px;
  }

  li a {
    font-size: 2rem;
  }

  footer {
    font-size: 1rem;
  }
}

/* FOR PHONES */
@media (max-width: 767px) {
  body {
    padding: 0 30px;
    font-size: 1.2rem;
  }
  
  header {
    padding: 1.5rem 0;
    gap: 1rem;
  }
  
  .header-row {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-row hr {
    display: none; 
  }
  
  .logo-3d {
    font-size: 48px; 
    text-shadow: 2px 2px 0 #2c3e50, 4px 4px 0 #2c3e50;
  }

  header nav {
    text-align: center;
    width: 100%;
  }
  
  header nav ul {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    align-items: center;
  }
  
  header li {
    margin: 0;
    display: block;
    text-align: center;
  }
  
  li a {
    font-size: 1.5rem;
  }
  
  .submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding-left: 0;
    text-align: center;
    align-items: center;
  }
  
  li:hover .submenu {
    transform: none;
  }

  .submenu-parent-only > a {
    display: none;
  }

  footer {
    font-size: 1rem;
  }
}