/* Fonts */
@font-face {
    font-family: "Inria";
    src: url('/fonts/InriaSerif-Regular.ttf')  format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Inria";
    src: url('/fonts/InriaSerif-Italic.ttf')  format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "Inria";
    src: url('/fonts/InriaSerif-Bold.ttf')  format('truetype');
    font-weight: 700;
    font-style: normal;
}

/* General Style */

body {
    font-family: Inria;
    margin: 0;
    text-align: center;
    background-color: #f2f2f2;
    color: #70765E;
}

.heading2 {
    font-size: 50px;
    font-weight: bold;
    margin: 30px 0;
}


/* Banner Section */
#banner_id {
    position: relative;
    height: 100vh;
    background: url('images/greenhouse.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;

}

.banner .banner_overlay {
    background: rgba(112, 118, 94, 0.7); /* #70765E99; */
    padding: 2rem;
    border-radius: 8px;
    flex-basis: 600px;
    margin: 20px;
}


input[type=text], select {
    font-family: Inria, sans-serif;
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    background-color: #f2f2f2;
    font-size: 1rem;
  }
  
button {
    font-family: Inria, sans-serif;
    width: 100%;
    background-color: #f2f2f2; /* #4CAF50;*/
    /* color: white;*/
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    color: #70765E;
}

button:hover {
    background-color: rgba(112, 118, 94, 0.9); /*#45a049;*/
    color: white;
}

#password_page {
    display: block;
}

.date {
    margin-top: -20px;
    font-size: 40px;
}

.emmaundnici {
    font-size: 60px;
}

.countdown-container {
  margin: 0 auto;
  text-align: center;
}

ul {
    padding: 0;
    margin-bottom: -16px;
}

li {
  display: inline-block;
  font-size: 1em;
  list-style-type: none;
  padding: 1em;
  text-transform: uppercase;
}

li span {
  display: block;
  font-size: 2rem;
}

/* Welcome Section */
.welcome {
    position: relative;
    width: calc(100% - 50px);
    max-width: 1000px;
    margin: auto;
}

.welcome p {
    font-size: 1.5rem;
}





/* Timeline Section */
.timeline-section {
    position: relative;
    background-color: #F5F2F1;
    z-index: -2;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: auto;
    padding: 0px;
    z-index: 0;
    /*background-color: blue;*/
}

/* Vertical line */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 4px;
    height: var(--timeline-height, 92%);
    background: #70765E;
    transform: translateX(-50%);
}

/* Timeline item container */
.timeline-item {
    position: relative;
    width: calc(50% - 50px);
    display: flex; /* Enable flexbox */
    align-items: flex-start; /* Vertically center the items (image and text) */
    justify-content: space-between;
    gap: 20px; /* Add space between the image and the text */
    background-color: white;
    border-radius: 8px;
    box-sizing: border-box;
    position: relative; /* Ensure we can control positioning within */
    padding: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Optional soft shadow */
}


/* Position alternating items */
.timeline-item:nth-of-type(odd) {
    left: 0px;
    flex-direction: row-reverse;
    text-align: left;
    margin-left: 25px;
}

.timeline-item:nth-of-type(even) {
    left: 50%;
    flex-direction: row;
    text-align: left;
    margin-left: 25px;
}

/* Timeline content */
.timeline-item img {
    width: 45%;
    max-width: 250px; /* Adjust the size of the image */
    height: 150px; /* Maintain aspect ratio */
    object-fit: cover; /* Ensure the image covers its container */
    border-radius: 8px; /* Optional: for rounded corners */
    box-sizing: border-box; /* Include padding in the element's total size */
}

.timeline-content {
    display: flex;
    flex-direction: column;
    /*flex: 1; /* Allow text to take up remaining space */
    padding: 0px;
    margin-right: 10px;
}

.timeline-item:nth-of-type(odd) .timeline-content{
    margin-left: 10px !important;
}

.timeline-content h3, 
.timeline-content h4 {
    margin: 0; /* Remove margin between elements */
    padding: 0; /* Optionally remove padding as well */
}

.timeline-content p {
    margin-top: 10px;
    margin-bottom: 0px;
}


/* Dots on the vertical line */
.timeline-marker {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    padding: 0px;
    background: #70765E;
    border-radius: 50%;
    transform: translateX(-50%);
}

/* 
document.querySelector('.timeline-marker:nth-child(4)').style.top = '15.1%';
document.querySelector('.timeline-marker:nth-child(5)').style.top = '48.5%';
document.querySelector('.timeline-marker:nth-child(6)').style.top = '81.8%';

*/

/* Position markers on the timeline */
.timeline-marker:nth-child(1) { top: 7.5%; }
.timeline-marker:nth-child(2) { top: 24.2%; }
.timeline-marker:nth-child(3) { top: 40.9%; }
.timeline-marker:nth-child(4) { top: 57.5%; }
.timeline-marker:nth-child(5) { top: 74.3%; }
.timeline-marker:nth-child(6) { top: 90.9%; }

.timeline-marker:nth-child(7) { top: 15.1%; }
.timeline-marker:nth-child(8) { top: 48.5%; }
.timeline-marker:nth-child(9) { top: 81.8%; }

/* Connecting lines */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 80px;
    height: 4px;
    background: #70765E;
    z-index: -1;
}

.timeline-item:nth-child(odd)::before {
    right: -30px;
}

.timeline-item:nth-child(even)::before {
    left: -30px;
}


/* Other Information Section */
a:link, a:visited {
    color: #70765E;
    text-decoration: underline;
    cursor: pointer;
}

a:link:active, a:visited:active {
    color: #70765E;
}

.adressen a {
    font-size: 1rem;
    margin-top: -18px;
    margin-bottom: 18px;
}



.hline {
    width: 90%;
    margin-inline: auto;
    height:1px;
    background: #70765E;
    margin-top: 50px;
}

.first_hline {
    margin-top: 50px;
}

.info {
    width: calc(100% - 30px);
    max-width: 1000px; /* Limits total width */
    margin: 0px auto; /* Centers section with spacing around */
    padding: 0px; /* Adds spacing inside the section */
    margin-bottom: 20px;
}


.info h3 {
    margin-top: 5px;
    font-size: 1.5rem;
    text-align: center;
}

.info h4 {
    font-size: 1.05rem;
}

.info p {
    font-size: 1rem;
}

.info-grid p {
    margin-top: -18px;
    margin-bottom: 18px;
}

/* Grid Layout */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Two boxes per row */
    gap: 12px; /* Space between boxes */
}

/* Individual Box Styling */
.info-box {
    background: white; /* Light gray background */
    /*border: 2px solid #ccc; /* Edge color */
    border-radius: 8px; /* Rounded corners */
    padding: 20px; /* Space inside each box */
    text-align: left; /* Centers text */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1); /* Optional soft shadow */
}


footer {
    padding: 0.2rem;
    text-align: center;
    background: #333;
    color: #fff;
    font-size: 0.9rem;
}

.family_page {
    display: none;
}

.friends_page {
    display: none;
}

.family_page_timeline{
    display: none;
}

.friends_page_timeline{
    display: none;
}

/* Make sure the boxes adjust to screen size */
@media (max-width: 950px) {
    .timeline-item .timeline-content{
        font-size: 0.9rem;
    }
}


@media (max-width: 790px) {
    .info-grid {
        grid-template-columns: 1fr; /* Stacks boxes in one column on smaller screens */
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-item {
        width: calc(100% - 50px);
        left: 10px !important;
        text-align: left;
        padding-left: 10px;
        margin-bottom: 12px;
    }

    .timeline-marker:nth-child(1) { top: 7.2%; }
    .timeline-marker:nth-child(2) { top: 24.05%; }
    .timeline-marker:nth-child(3) { top: 40.9%; }
    .timeline-marker:nth-child(4) { top: 57.7%; }
    .timeline-marker:nth-child(5) { top: 74.5%; }
    .timeline-marker:nth-child(6) { top: 91.4%; }

    .timeline-marker:nth-child(7) { top: 14.5%; }
    .timeline-marker:nth-child(8) { top: 48.5%; }
    .timeline-marker:nth-child(9) { top: 82.6%; }

    .timeline-marker {
        left: 15px;
    }

    .timeline-item:nth-child(odd)::before {
        left: -20px;
        width: 20px;
    }

    .timeline-item:nth-child(even)::before {
        left: -20px;
        width: 20px;
    }

    .timeline-item {
        justify-content: space-between;
    }

    .timeline-item:nth-child(odd) {
        left: 0px;
        flex-direction: row-reverse;
        text-align: left;
        margin-left: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0px;
        flex-direction: row-reverse;
        text-align: left;
        margin-left: 25px;
    }

    .timeline-item img {
        width: 45%;
        max-width: 225px; /* Adjust the size of the image */
    }

    .timeline-item:nth-child(even) .timeline-content{
        margin-left: 10px;
    }

}

@media (max-width: 470px) {
    .date {
        margin-top: -20px;
        font-size: 30px;
    }
    .emmaundnici {
        font-size: 45px;
    }

    .heading2 {
        font-size: 40px;
        font-weight: bold;
        margin: 25px 0;
    }

    .welcome p {
        font-size: 1.1rem;
    }

    ul {
        max-width: 250px;
        margin: auto;
      }

    .info h3 {
        font-size: 1.3rem;
    }

    .info h4 {
        font-size: 1rem;
    }

    .info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 400px) {
    .timeline-item .timeline-content{
        font-size: 0.8rem;
    }
}

@media (max-width: 370px) {
    .timeline-item .timeline-content{
        font-size: 0.7rem;
    }
}