body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    justify-content: space-between;
    overflow: auto; /* Allow scrolling for the whole screen */
}

.top-bar {
    background-color: #1c2347; /* Blue color */
    color: white;
    text-align: center;
    padding: 20px 0; /* Adjusted to match footer size */
    display: flex;
    justify-content: flex-end; /* Align the content to the right */
    padding-right: 20px; /* Add padding to the right */
}

.language-selector {
    display: flex;
    align-items: center;
}

.language-selector span {
    background-color: #1c2347; /* Dark blue background */
    border: none;
    color: white; /* White text color */
    font-size: 14px; /* Smaller text size */
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
}

.language-selector span:hover {
    background-color: #0d1626; /* Darker blue on hover */
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: auto; /* Allow scrolling for the whole container */
}

.content {
    display: flex;
    flex: 1;
    padding: 20px;
    overflow: visible; /* Allow scrolling for the content */
    flex-direction: row; /* Ensure horizontal layout for large screens */
}

.left-box {
    flex: 1;
    padding-right: 10px;
    overflow: visible; /* Allow scrolling for the text area */
    text-align: justify; /* Justify the text to align it uniformly */
    align-self: flex-start; /* Align text to the top */
}

.right-box {
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.desktop-image {
    display: none; /* Hide desktop image by default */
}

.mobile-image {
    display: block; /* Show mobile image by default */
}

.right-box img {
    width: 100%;
    max-width: 600px; /* Ensure image fits into the screen */
    height: auto;
    object-fit: contain; /* Resize the image to fit into the box */
}

.social-links {
    text-align: center;
    padding: 10px 0;
    display: flex; /* Keep icons horizontal */
    justify-content: center;
}

.social-links a {
    margin: 0 10px;
    color: #1c2347;
    text-decoration: none;
    font-size: 18px;
}

.social-links a:hover {
    text-decoration: underline;
}

.social-links i {
    margin-right: 5px;
}

.footer {
    background-color: #1c2347; /* Blue color */
    color: white;
    text-align: center;
    padding: 20px 0; /* Adjusted to match top bar size */
}

/* Media Queries for responsiveness */
@media (min-width: 769px) {
    .content {
        flex-direction: row; /* Horizontal layout for large screens */
        align-items: flex-start; /* Align items to the top */
    }
    
    .desktop-image {
        display: block; /* Show desktop image on large screens */
    }

    .mobile-image {
        display: none; /* Hide mobile image on large screens */
    }
}

@media (max-width: 768px) {
    .content {
        flex-direction: column-reverse; /* Reverse order to place image above text */
        align-items: center;
    }

    .left-box, .right-box {
        width: 100%;
        padding: 10px;
    }

    .desktop-image {
        display: none; /* Hide desktop image on small screens */
    }

    .mobile-image {
        display: block; /* Show mobile image on small screens */
    }

    .social-links {
        justify-content: center; /* Keep icons horizontal */
    }
}
