html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: #f0f0f0; 
}

.header {
    width: 100%;
    background: linear-gradient(to right, #4298f7, #0f66e8);
    padding: 10px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.logo {
    height: 75px;
    transition: 0.3s;
  }

.logo:hover {
transform: scale(1.1);
}
.layout-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 120px; /* Enough space for the fixed header */
    padding: 0 20px; /* Padding on the sides */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-container {
    width: 90%;
    max-width: 600px;
    margin-bottom: 20px; /* Space between video and content box */
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-container video {
    width: 100%;
    height: auto;
}

.content-container {
    width: 90%;
    max-width: 600px;
    background-color: #b1afaf;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px; /* Space below the content box */
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.terms-box h1, .terms-box p {
    text-align: right;
}

.back-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.back-to-homepage {
    padding: 10px 20px;
    background-color: #4298f7;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.back-to-homepage:hover {
    background-color: #0f66e8;
}

/* Media Queries */

/* Phones in portrait */

@media screen and (max-width: 480px) {
    .layout-container {
        padding: 20px 10px; /* Smaller padding on small screens */
        gap: 10px; /* Smaller gap on small screens */
    }
}

/* Phones in landscape */
@media screen and (min-width: 481px) and (max-width: 767px) {
    .terms-box h1{
        text-align: right;
        font-size: 20px;

    }

    .terms-box p {
        text-align: right;
        font-size: 15px;
    }
    .layout-container {
        padding: 20px 10px; /* Appropriate padding on small screens */
        gap: 10px; /* Smaller gap on small screens */
    }
}

/* Tablets in portrait */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .terms-box h1{
        text-align: right;
        font-size: 20px;

    }

    .terms-box p {
        text-align: right;
        font-size: 15px;
    }
    .layout-container {
        flex-direction: column;
        align-items: center;
        gap: 20px; /* Standard gap for larger screens */
    }
    .video-container, .content-container {
        width: 90%; /* Full width on small screens */
        max-width: 700px; /* Larger max-width for tablets */
    }
}

/* Tablets in landscape */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .terms-box h1{
        text-align: right;
        font-size: 20px;

    }

    .terms-box p {
        text-align: right;
        font-size: 15px;
    }

    .layout-container {
        flex-direction: row;
        justify-content: space-evenly;
        align-items: flex-start;
        gap: 20px; /* Standard gap for larger screens */
    }
    .video-container, .content-container {
        width: 45%; /* Half width for side-by-side layout */
        max-width: 500px; /* Adjust if necessary */
    }
}

@media screen and (min-width: 1025px) {
    .layout-container {
        flex-direction: row;
        justify-content: space-around; /* Centers and spaces children */
        align-items: flex-start; /* Aligns children to the start of the flex container */
        padding: 0 10px;
    }
    .video-container, .content-container {
        width: 45%; /* Gives containers a fixed width */
        margin-bottom: 0; /* Removes margin below containers */
    }
    .video-container video {
        /* Ensures video fills container while maintaining aspect ratio */
        max-width: 100%;
        height: auto;
    }
}
