.main-page{
    display: flex;
    margin: 40px 100px 0px 100px;


}

.main-left{

    flex: 1;

    height: 100%;

    font-size: 24px;
    font-family: Georgia;
}

.main-middle{
    margin-right: 120px;
}

.text-info{
    font-size: 16px;
    font-family: Georgia;


}



.main-welcome .welcome-heading{
    position: absolute;
    left: 4%;
    top: 50%;
}

.welcome-heading{
    font-size: 64px;
    color: white;


    font-family: Georgia;
    font-weight: 700;


}


.mars-image{
    width: 100%;

}


.main-right{
    display: grid;
    justify-content: center;
    height: 100%;

    font-size: 24px;

}

.main-left ul {

    padding: 0;

}
.main-left ul li{

    margin-bottom: 40px;

}

.profile-photo{
    margin-top: 100px;
    height: 400px;
    border-radius: 20px;

}

.photo-text{
    display: flex;
    justify-content: center;

}

.link-text {
    
    font-size: 24px;
    font-family: Georgia;
    text-decoration: none;
    color: black; 
}
  
.link-text:hover {
text-decoration: underline; 
}
  

.video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Default layout: 2x2 */
    gap: 40px; /* Space between video containers */
    margin-left: 20px;
    margin-right: 20px;
}
.video-container {
    text-align: center;
}
video {
    width: 100%; /* Video adjusts to container width */
    height: auto; /* Maintains aspect ratio */
}
.video-note {
    font-style: italic;
    color: gray;
    margin-top: 8px;
}

/* Grid layout for images */
.image-grid {
    display: flex; /* Use flexbox for layout */
    justify-content: center; /* Center items in the row */
    align-items: stretch; /* Make all items the same height */
    gap: 80px; /* Space between images */
    max-width: 1200px; /* Max width for the grid */
    margin: 0 auto; /* Center the grid */
    margin-top: 60px;
}

/* Image and text container */
.image-container {
    display: flex; /* Use flexbox for alignment */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center children horizontally */
    justify-content: center; /* Center children vertically */
    text-align: center; /* Center text */

    width: 300px; /* Fixed width for uniformity */
}

/* Center the image */
.image-container img {
    width: 100%; /* Make image responsive to container width */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Cover the entire area of the container */
}

/* Text styling */
.image-text {
    padding: 10px; /* Space between text and image */
    font-size: 16px; /* Font size for text */
    font-family: Arial, sans-serif; /* Font family for text */
}


@media only screen and (max-width: 800px) {
    .profile-photo{
        height: 180px;
        border-radius: 5px;
        
    }

    .main-page{
        display: flex;
        margin-top: 16px;
        margin-right: 20px;
        margin-left: 20px;
        text-decoration: none;

    }
    .main-middle{
        margin-right: 40px;
    }
    .welcome-heading{
        font-size: 32px;

    }

    .main-left{
        font-size: 16px;
        margin-right: 24px;
        text-decoration: none;
    }

    .photo-text{
        font-size: 12px;
    }

    .main-right{
        margin-top: 40px;
    }
    .mars-image{

        height: 800px;
        display: none;
        
    
    }
    .main-welcome{
        height: calc(100vh - 4rem);
        background-size: cover;
        background-image:  linear-gradient(to bottom, rgba(0,0,0,0), rgba(0, 0, 0, 0.8)), url("../images/mars.png");
    }

    .main-welcome .welcome-heading{


        top: 60%;
    }

    .link-text {
    
        font-size: 16px;
        font-family: Georgia;
        text-decoration: none;
        color: black; 
    }
      
    .link-text:hover {
    text-decoration: underline; 
    }

    .video-grid {
        grid-template-columns: 1fr; /* 4x1 layout for small screens */
    }
    
    .image-grid {
        flex-direction: column; /* Stack images vertically */
        align-items: center; /* Center items horizontally */
    }

    .image-container {
        width: 80%; /* Make containers full width */
        max-width: 500px; /* Optional: limit max width for mobile */
    }

      

}