:root {
      --yellow: #fdcc04;
      --black: #000;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      scroll-behavior: smooth;
    }

    body {
      font-family: 'Arial', sans-serif;
      background-color: #111;
      color: #fff;
    }


/* Menu */

nav
{
    display: flex;
    height: 3.5rem;
    width: 100vw;
    justify-content: space-between;
    background-color: #181b1a;
    align-items: center;
    color: #fdcc04;
    position:fixed;
    top: 0;
    transition: transform 0.3s ease;
    box-shadow: 3px 3px 5px rgb(0,0,0,0.5);
    z-index: 999;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}

nav.hide {
    transform: translateY(-100%);
  }

.logo a
{
    font-size: 1.5rem;
    font-weight: bold;
    font-style: italic;
    padding: 0 2rem;
    text-decoration: none;
    color: #fdcc04;
}

.logo a:hover
{
  color: #fdcc04;
}


.nav-items
{
    z-index: 100;
    display: flex;
    align-items: flex-end;
    
}



.nav-items a
{
    text-decoration: none;
    color: #fdcc04;
    padding: 0.5rem 1rem;
    margin: 0 2rem;
    font-size: 1.25rem;
    
    background: #181b1a;
}

.nav-items a:hover
{
  color:#fdcc04;
}

.nav-items.show
{
  background-color: #181b1a;
}

.link-underline {
    position: relative;
    color:#fdcc04;
    text-decoration: none;
  }

  .link-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px; 
    width: 100%;
    height: 2px;
    background-color:#fdcc04;
    transform: scaleX(0);
    transform-origin:center;
    transition: transform 0.3s ease;
  }

  .link-underline:hover::after {
    transform: scaleX(1);
  }

.menu-toggle {
    display: none;
    font-size: 2rem;
    background: none;
    border: none;
    color: #fdcc04;
    padding: 0 2rem;
    cursor: pointer;
}

    /* HERO SECTION */
    .hero-core {
      position: relative;
      height: 80vh;
      width: 100%;
      background: url('../images/rallyRush_bckgrnd.jpg') no-repeat center center/cover;
      display: flex;
      align-items: center;
      padding: 3rem;
      overflow: hidden;
      background-position: center 10%;
    }

    .overlay {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(to top, #111 0%, rgba(0, 0, 0, 0.5) 70%);
      z-index: 1;
    }

    .hero-content {
      position: relative;
      z-index: 2;
      max-width: 600px;
    }

    .hero-content h1 {
      font-size: 4rem;
      margin-bottom: 1rem;
      font-family: 'Roboto', sans-serif;
      font-weight:bold;
      text-transform: uppercase;
    }

    .hero-content p {
      font-size: 1.2rem;
      color: #ddd;
      font-family: Roboto, sans-serif;
      font-weight: bold;
    }

    .hero-subtexts {
      display: flex;
      flex-direction: column;
      align-items: center;
      padding: 4rem 2rem;
      max-width: 1200px;
      margin: 0 auto;
      gap: 3rem;
      font-weight: 600;
      font-size: 1.1rem;
      line-height: 1.8;
      color: whitesmoke;
      text-align: center;
      margin-top: 7rem;
    }

.hero-subtexts .top-row {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  width: 100%;
  justify-content: center;
}

.hero-subtexts .bottom-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.hero-text-box {
  max-width: 25rem;
  padding: 1rem;
  position: relative;
}

.mini-line {
  width: 60px;
  height: 3px;
  background-color: #fdcc04;
  margin: 1rem auto 0 auto;
  border-radius: 2px;
  opacity: 0.8;
}

/* Responsivita pro mobily */
@media (max-width: 768px) {
  .hero-subtexts .top-row {
    flex-direction: column;
    align-items: center;
  }
}

    

    /* FOOTER */
    .footer {
      background-color: #191b1b;
      color: #fdcc04;
      padding: 2rem 1rem;
    }

    .footer-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: space-between;
      align-items: flex-start;
      max-width: 1200px;
      margin: 0 auto;
    }

    .footer-left {
      flex: 1;
      min-width: 280px;
      padding-top: 3rem;
    }

    .footer-left p {
      margin: 0.5rem 0;
    }

    .footer-icons {
      margin-top: 1rem;
    }

    .footer-icons a {
      color: #fdcc04;
      margin-right: 1rem;
      font-size: 1.8rem;
      transition: color 0.3s ease;
    }

    .footer-icons a:hover {
      color: white;
    }

    .footer-right {
      flex: 1;
      min-width: 280px;
      padding: 1rem;
    }

    .footer iframe {
      width: 100%;
      height: 250px;
      border-radius: 10px;
      border: 2px solid #fdcc04;
    }

    .copyright {
      margin-top: 1rem;
      font-size: 0.8rem;
    }

    

    /* EXISTING styles below */

    .container {
      display: flex;
      gap: 1.5rem;
      width: 100%;
      max-width: 1000px;
      height: 480px;
      transition: all 0.4s ease;
      margin: 3rem auto;
      padding: 0 1rem;
      margin-bottom: 10rem;
    }

    .section {
      flex: 1;
      border: 3px solid var(--yellow);
      border-radius: 20px;
      background: var(--yellow);
      color: var(--black);
      padding: 1.5rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      transition: all 0.4s ease;
      cursor: pointer;
      position: relative;
      overflow: hidden;
      justify-content: center;
    }

    .section:hover {
      flex: 2;
      background: var(--black);
      color: var(--yellow);
    }

    .container:hover .section:not(:hover) {
      flex: 0.8;
      filter: brightness(0.8);
    }

    .title-wrapper {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      transition: all 0.4s ease;
      text-align: center;
      width: 100%;
    }

    .section:hover .title-wrapper {
      top: 20px;
      transform: translateY(0);
    }

    .title {
      font-size: 2rem;
      font-weight: 800;
      transition: font-size 0.3s ease;
    }

    .section:hover .title {
      font-size: 2.3rem;
    }

    .divider {
      width: 50%;
      height: 2px;
      background: var(--yellow);
      margin: 1rem auto;
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .section:hover .divider {
      opacity: 1;
    }

    .content {
      text-align: center;
      opacity: 0;
      max-width: 90%;
      transition: opacity 0.4s ease;
      margin-top: 100px;
      line-height: 1.8;
      font-size: 1.1rem;
      display: flex;
      flex-direction: column;
      gap: 1rem;
      font-weight: 600;
    }

    .section:hover .content {
      opacity: 1;
    }

    .profile-img {
      width: 80px;
      height: 100px;
      object-fit: cover;
      margin: 0 auto 1rem auto;
      border: 3px solid var(--yellow);
      border-radius: 5px;
    }

    .lektor-content {
      align-items: stretch;
    }

    .lektor-top {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      justify-content: center;
      flex-wrap: wrap;
    }

    .lektor-info {
      flex: 1;
      min-width: 200px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 0.5rem;
      font-weight: 600;
    }

    .lektor-bottom {
      margin-top: 1.5rem;
      text-align: center;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      font-weight: 600;
    }

    .enroll-button {
      background-color: var(--yellow);
      color: #000;
      font-size: 1.2rem;
      font-weight: bold;
      padding: 1rem 2rem;
      border: none;
      border-radius: 10px;
      margin: 2rem 0;
      cursor: pointer;
      border: 2px solid transparent;
      transition: 0.5s;
    }

    .enroll-button:hover {
      background-color: #000;
      color: #fdcc04;
      transition: all 0.3s ease;
      border: #fdcc04 2px solid;
    }

    .enroll-button:active {
      background-color: #333;
      color: #fff;
      box-shadow: 0 0 10px #fdcc04;
      transition: none;
    }

    .countdown-container {
      display: flex;
      justify-content: space-between;
      align-items: center;
      max-width: 1000px;
      margin: 0 auto;
      padding: 1rem 2rem;
      color: #fff;
      padding-bottom: 3rem;
    }

    .countdown {
      font-size: 1.5rem;
      font-weight: bold;
      color: var(--yellow);
    }

    .countdown-info {
      font-size: 1rem;
      margin-top: 0.5rem;
      color: #ccc;
    }

    @media (max-width: 768px) {
      .container {
        flex-direction: column;
        height: auto;
      }

      .section {
        flex: none;
        height: auto;
        cursor: default;
      }

      .section:hover {
        flex: none;
        background: var(--yellow);
        color: var(--black);
      }

      .container:hover .section:not(:hover) {
        flex: none;
        filter: none;
      }

      .title-wrapper {
        position: static;
        transform: none;
        margin-bottom: 1rem;
      }

      .divider {
        opacity: 1;
      }

      .content {
        opacity: 1;
        margin-top: 0;
      }

      .footer-left{
        padding-top: 0;;
      }

      .profile-img {
        border: 3px solid #000;
      }
    }


    @media (max-width: 768px) {
  .hero-core {
    height: auto;
    min-height: 100vh;
    padding: 5rem 2rem 3rem 2rem;
    background-position: center top;
  }

  .hero-content {
    text-align: center;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }
}

@media (max-width: 950px) {
  .nav-items {
        position: absolute;
        top: 3.5rem;
        right: 0;
        background-color: #2E3532;
        flex-direction: column;
        align-items: center;
        padding: 1rem;
        width: 100%;
        display: flex;
        overflow: hidden;
        
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.2s ease-in-out;
    }

    .nav-items a
    {
        width: 40%;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-bottom: 1rem;
    }

    .nav-items.show {
        display: flex;
        max-height: 500px; 
        opacity: 1;
        transform: translateY(0);
    }

    .nav-items button {
        margin: 0.5rem 1rem;
        width: auto;
    }

    .menu-toggle {
        display: block;
    }
}

@media (max-width: 1110px)
{
    .nav-items a
    {
        padding: 0.5rem 1rem;
        margin: 0 1rem;    
    }
}






.modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
}

.modal-obsah {
  background-color: #2E3532;
  margin: auto;
  padding: 30px 20px;
  border-radius: 12px;
  width: 320px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  color: #fdcc04;
  position: relative;
}

.modal-header {
  font-size: 22px;
  font-weight: bold;
  color: #fdcc04;
  margin-bottom: 15px;
  display: block;
}

.zavrit-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #fdcc04;
  color: #2E3532;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.zavrit-btn:hover {
  background-color: #e6b800;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;   /* zarovnání na střed horizontálně */
    text-align: center;    /* zarovnání textu na střed */
  }

  .footer-left,
  .footer-right {
    padding: 1rem 0;
    min-width: auto;       /* aby se přizpůsobily šířce */
    flex: none;            /* zruší flex 1, aby nesnažily roztáhnout */
    width: 100%;           /* full width */
  }

  .footer-icons {
    justify-content: center; /* zarovnat ikonky na střed */
  }
}
