body {
    background-color: bisque;    
}

.main {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Keeps .links at the top */
    gap: 20px;
    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    
    flex-direction: row; /* Default: side-by-side layout */
}

.links {
    font-family:Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: larger;
}

.links .mail {
    padding: 20px;
}

.links .mail img {
    max-width: 200px;
    min-width: 150px;
    width: 100%;
}

.main .image img{
    min-width: 350px;
    max-width: 500px;
    width: 100%;
}


/* Media Query for Small Screens */
@media (max-width: 600px) {
    .main {
        display: flex;
        justify-content: center;
        align-items: flex-start; /* Keeps .links at the top */
        gap: 20px;

        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center content */
        text-align: center; /* Align text in .links */

        width: 80%;
        min-height: 60vh; /* Allows the div to expand as needed */
        padding: 20px; /* Adds spacing to prevent overflow */
    }

    .links {
        max-width: 60%;
    }

    .main .image img {
        min-width: 45%;
        max-width: 80%; /* Prevents image from being too large */
    }

    .links .mail img {
        min-width: 45%;
        max-width: 90%;
    }
}

