html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(to top, #EDC9C9, #FFFFFF);
    display: flex;
    flex-direction: column;
}


.container {
    color: white; 
    text-align: center;
    max-width: 1440px;
    width: 100%;
    height: 100vh;
    margin: 0 auto; /* Center the container horizontally */
    padding-top: 20px; /* Add space from the top if needed */
    flex: 1;
}

.subcontainer_1, .subcontainer_2, .subcontainer_3 {
    max-width: 1200px;
    margin: 0 auto;
}


.main_header {
    padding-top: 10px;
    display: grid;
    grid-template-columns: 25% 50% 25%;
}



.logo_image {
    max-width: 150px;
    margin-left: 7px;
    margin-right: 7px;
    transition: transform 0.4s ease;
    cursor: pointer;  
}

.logo_image:hover {
    transform: scale(0.9); /* Scales the image down to 90% of its size */
}

.header_pictures {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.mobile_nav {
    display: none;
}

.nav_menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav_menu ul {
    list-style-type: none;
    display: flex;
    justify-content: center;
    padding: 0;
}

.nav_menu ul li {
    margin-right: 7px;
}

.nav_menu ul li a {
    text-decoration: none;
    color: #8B0000; /* Matching the color of "Domov" */
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: 400;
    padding: 10px;
}

.nav_menu ul li a:hover {
    background-color: rgba(139, 0, 0, 0.1); /* Light red hover effect */
    border-radius: 5px;
}

.nav_menu ul li:first-child a {
    background-color: #8B0000;
    color: white;
    border-radius: 5px;
    padding: 10px 15px;
}

.subcontainer_1 {
    width: 100%;
    justify-content: center;
    align-items: center;
}

.subcontainer_2 {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    gap: 20px; /* Space between the columns */
    padding: 20px;
    margin: 1rem auto;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.subcontainer_2.visible {
    animation: fadeIn 0.5s ease-out forwards;
}

.box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid #000;
    border-radius: 10px;
    background-color: white;
    padding: 20px;
    text-align: center;
    position: relative; /* Adjust height as needed */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.box.visible {
    animation: fadeIn 0.5s ease-out forwards;
}

.subcontainer_2 .box img {
    max-width: 50%;
    height: auto;
    margin-bottom: 15px;
}

.box p {
    color:#000;
    bottom: 10px;
    width: 100%;
    font-weight: bold;
    font-size: 18px;
}

.subcontainer_3 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.subcontainer_3 p {
    color: black;
}

.footer {
    color: black;
    padding: 20px;
    font-size: 0.9em;
    flex-direction: column;
    display: grid;
    grid-template-columns: 20% 60% 20%;
    align-items: center;
    background-color: #212130;
}
.footer p {
    margin: 5px 0;
    color: white;
}

.temp {
    justify-content: center;
    color: black;
    margin-bottom: 30px;
}

.temp p {
    display: inline;
    margin: 0;
}

.video2 {
    display: grid;
    grid-template-columns: 50% 50%;
}

#title {
    margin-bottom: 30px;
}

#title p {
    font-size: 32px;
    display: inline;
    margin: 0;
}

#subtext p {
    font-size: 16px;
    display: inline;
}

#footer_logo_div {
    display: flex;
    justify-content: center;
    align-items: center;
}


.footer_logo {
    width: 30%;
    height: auto;
}

.quote-container {
    max-width: 600px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    text-align: center;
    color: #000;
}


.quote-mark {
    font-size: 60px;
    position: absolute;
    color: #000;
}

.left-quote {
    top: 20px;
    left: 20px;
}

.right-quote {
    bottom: 20px;
    right: 20px;
}

.quote-text {
    font-size: 20px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 20px;
}

.author-text {
    font-size: 18px;
    font-weight: bold;
}

.author-text span {
    display: block;
    font-weight: normal;
    margin-top: 5px;
}



@media (max-width: 1368px) {
    .subcontainer_1,.subcontainer_2,.subcontainer_3 {
        width: 100%;
        margin: 0 2rem;
    }


    .container {
        width: 90%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    /* Header adjustments */
    .main_header {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-top: 5px;
        width: 100%;
    }

    .header_pictures {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .nav_menu {
        display: none;
    }

    .mobile_nav {
        display: flex; /* Show mobile navigation */
        flex-direction: column; /* Stack items vertically */
        width: 100%; /* Full width for mobile nav */
        background-color: #8B0000; /* Background color for the nav */
    }

    .mobile_nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%; /* Ensure the list spans the full width */
    }

    .mobile_nav ul li {
        width: 100%; /* Make each list item span the full width */
        margin: 0; /* Remove any margin around list items */
        background-color: #8B0000; /* Background color for buttons */
        border: 2px solid black; /* Add white border around each button */
    }

    .mobile_nav ul li a {
        display: block; /* Make the links behave like block elements */
        text-align: center; /* Center the text */
        text-decoration: none; /* Remove underline */
        padding: 15px 0; /* Add padding for larger clickable areas */
        font-size: 18px; /* Adjust font size */
        font-weight: bold; /* Make the text bold */
        color: white; /* Text color */
        background-color: #8B0000; /* Background color for buttons */
        transition: background-color 0.3s ease; /* Smooth hover effect */
    }

    .mobile_nav ul li a:hover {
        background-color: #A40000; /* Slightly lighter red for hover */
    }
    /* Subcontainer adjustments */

    .subcontainer_2 {
        width: 70%;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }

    .subcontainer_1 {
        margin: 0;
    }

    .subcontainer_2.visible {
        animation: fadeIn 0.5s ease-out forwards;
    }

    .subcontainer_3 {
        padding: 0;
        margin: 0;
    }

    /* Box adjustments */
    .box {
        width: 80%;
        padding: 15px;
        margin: 0;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    }

    .box.visible {
        animation: fadeIn 0.5s ease-out forwards;
    }

    .box img {
        max-width: 80%;
    }

    .quote-container {
        padding: 20px;
    }

    /* Title and Subtext adjustments */
    #title p {
        font-size: 24px;
    }

    /* Footer adjustments */
    .footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #footer_logo_div {
        margin-top: 15px;
    }

    .footer_logo {
        width: 60%;
    }

    /* Quote adjustments */
    .quote-text {
        font-size: 18px;
    }

    .author-text {
        font-size: 16px;
    }
    img, iframe {
        max-width: 100%;
        height: auto;
    }

    img {
        margin:0;
        size: cover;
    }
}

@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  