/* Global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Didot';
}

body {
    height: 100vh;
    margin: 0; /* Remove default margin to avoid spacing issues */
    scroll-behavior: smooth;
    background: #ECECEC;
}

.page-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Buttons */
.button-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.info-button {
    text-decoration: none;
    background-color: white;
    color: black;
    padding: 10px 15px;
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.info-button:hover {
    background-color: lightgrey;
}

/* Welcome page section */
.welcome-page {
    height: calc(100vh - 80px);
    margin-top: 100px;
    background: url('web-welcome.png') no-repeat left center;
    background-size: contain;
    scroll-snap-align: start;
    background-color: #ECECEC;
    margin-bottom: 160px;
}

/* Příjezdové informace section */
.arrival-section {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    background-color: #ECECEC;
    color: black;
    padding-top: 140px;
}

.arrival-section h1 {
    font-family: 'Didot', serif;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-size: 48px;
  }
  
.map-container {
  position: relative;
  width: 100%;
  height: 700px;
  
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Program section */
.program-section {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; 
    padding: 20px;
    background: #ECECEC;
    color: black;
    padding-top: 160px;
}

.program-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.program-box {
    padding: 40px 30px;
    background-color: #ffffff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.program-box .event {
    display: flex;
    align-items: flex-start;
    gap: 65px;
    margin-bottom: 16px;
}


.program-box .time {
  font-weight: 600;
  font-size: 28px;
  width: 80px;
  flex-shrink: 0;
  font-family: 'Lora', serif;
  text-align: right;
}

.program-box .title {
    font-size: 25px;
    font-weight: 400;
    line-height: 1.4;
    flex: 1;
}


/* FAQ section */
.faq-section {
    height: auto;
    max-height: 100vh;
    overflow-y: auto; 
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #ECECEC;
    color: black;
    padding-top: 160px;
    box-sizing: border-box;
}

.faq-section h1 {
    font-size: 30px;
    margin-bottom: 20px;
}


.faq-section p {
    font-size: 20px;
    opacity: 0.8;
    max-width: 800px;
    margin-bottom: 25px;
    text-align: center;
}

/* Questionnaire section */
.q-section {
    scroll-snap-align: start;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    background: #ECECEC;
    color: black;
    padding-top: 120px;
}

.q-section iframe {
    flex: 1;
    width: 100%;
    height: 100%;
    border: none;
    overflow: auto;
}


/* Responsive adjustments */
@media (max-width: 400px) {
    
    .page-container {
        height: 100vh;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
        padding-bottom: 100px;
    }

    .welcome-page {
        height: calc(100vh);
        background: url('web-welcome-phone-v2.png') no-repeat center bottom;
        scroll-snap-align: start;
        background-size: cover; 
        background-color: #ECECEC;
        background-repeat: no-repeat;
        background-position: left 50px;
        padding-top: 500px;
    }

    .section {
        scroll-snap-align: start;
        padding-top: 160px;
        min-height: 100vh; /* Ensures each section takes up at least the full viewport height */
    }

    .button-container {
        flex-wrap: wrap;
    }

    .q-section, .program-section, .arrival-section {
        padding-top: 180px;
    }

    .program-section h1, .arrival-section h1 {
        margin-bottom: 30px;
        font-size: 35px;
    }

    .program-box {
        padding: 20px 15px; /* reduce padding on small screens */
    }
  
    .faq-section {
      padding: 40px 20px 20px; /* adjust padding for small screen */
      padding-top: 600px;
      padding-bottom: 150px;
      margin-bottom: 100px;
    }
  
    .faq-section h1 {
      font-size: 22px; /* smaller heading */
      margin-bottom: 12px;
    }
  
    .faq-section p {
      font-size: 18px; /* smaller text */
      margin-bottom: 12px;
      max-width: 100%; /* take full width on small screens */
    }

    .program-box .event {
      flex-direction: row;       /* keep time and title in one line */
      gap: 25px;                 /* smaller gap for tighter layout */
      align-items: flex-start;
    }

    .program-box .time {
        font-size: 22px;
        width: 60px;               /* smaller fixed width for time */
        text-align: left;
    }

    .program-box .title {
      font-size: 18px; /* smaller font for the title */
    }

    .map-container {
        height: 300px;
    }

    .directions-button {
        font-size: 20px;
        padding: 12px 18px;
    }
}

@media (max-width: 360px) {
    .welcome-page {
        background-position: center center;
        background-size: 160%;
        padding-top: 500px;
    }
}
