body{
    background-color: black;
    color: white;
    margin: 0;
    font-family: "Montserrat", sans-serif;
}

section{
    width: 80vw;
    margin-left: 10vw;
    margin-bottom: 200px;
}
h3{
    color: #7915BC;
}
h4{
    font-size: 20px;
}
p{
    font-size: 18px;
}

/* -----------------HEADER-----------------*/
header {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background: rgba(0, 0, 0, 0.558);
    z-index: 10;
}
.logo{
    margin-left: 10vw;
}
svg{
    height: 30px;
    fill: #7915BC;
    margin: 5px;
}
.social{

    position: absolute;
    top: 50%;
    right: 10vw;
    transform: translateY(-50%);
}

/* -----------------HERO-----------------*/
.hero {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
    z-index: 3;
}
.hero h1{
    font-size: 60px;
    margin: 0;
}
#main-video {
    top: 0;
    left: 0;
    width: 100%;
    height: 90vh;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
}

/* -----------------SECTIONS 1, 2-----------------*/
.cansat{
    display: flex;
}
.cansat .txt{
    padding-right: 100px;
}
h3{
    font-size: 45px;
}
.cansat .txt p{
    font: italic;
}
.research{
    display: flex;
    justify-content: space-between;
    text-align: right;
}
.research #txt{
    padding-left: 100px;
}
#img img{
    width: 300px;
}
#img{
    margin-top: 40px;
}

#buttons{
    margin-top: 50px;
}
#model, #pdf {
    padding: 10px;
    color: white;
    text-decoration: none;
    border: 1px solid white;
    transition: .3s;
}
#model:hover, #pdf:hover{
    letter-spacing: 3px;
    color: #7915BC;
    border-color: #7915BC;
}

/*------------------MISSIONS--------------------------*/

.primary-mission p, .secondary-mission p{
    font-size: medium;
}
.primary-mission{
    display: flex;
}
.primary-mission img{
    width: 60vw;
    height: 30vh;
}
#graphs{
    width: 100%;
    display: flex;
}
#graphs img{
    height: 50px;
    transition: .3s;
}
#graphs img:hover{
    height: 270px;
}
.secondary-mission{
    display: flex;
    justify-content: space-between;
}
.secondary-mission:hover{
    border: #7915BC 1px;
}
.secondary-mission div{
    margin-top: 20px;
}
#vid{
    height: 80%;
    margin: 40px;
}
#vid video{
    border-radius: 20px;
}


/*--------------CANSAT BODY--------------------*/
.cansat-body{
    display: flex;
    height: 500px;
}

#text{
    padding-right: 40px;
}
.model{
    margin-top: 50px;
    width: 1000px;
}

/*-------------TEAM------------*/
.team{
    height: 40vh;
}

.gallery {
    display: flex;
    margin-top: 100px;
    justify-content: space-between;
    width: 80vw;
}

.gallery div {
    width: 10vw;
    text-align: center;
    margin-right: 10px;
    transition: transform 0.1s ease; /* Adding transition */
}

.gallery div img {
    width: 9vw;
    border-radius: 50%;
    transition: transform 0.1s ease; /* Adding transition */
}

.gallery div h4 {
    font-size: 10px;
    transition: transform 0.1s ease; /* Adding transition */
    margin-bottom: -10px;
}

.gallery div p {
    margin-top: 20px;
    display: none;
    font-size: 7px;
    transition: transform 0.1s ease, opacity 0.1s ease; /* Adding transition */
}

.gallery div:hover {
    transform: scale(1.6);
}

.gallery div:hover p {
    display: block;
    transform: translateY(0);
}


/*--------------VIDEO--------------------*/

.video iframe{
    width: 80vw;
    height: 60vh;
}

/*-----------CONTACT----------------*/
.contact {
    display: flex;
    justify-content: left;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 50px;
    margin-bottom: 100px;
}
.contact h4 {
    width: 100%;
}
.contact-form {
    flex: 1;
    text-align: left;
    border: 1px solid #ccc;
    padding: 20px;
    border-radius: 10px;
    margin-right: 20px;
}
.contact-form label {
    display: block;
    margin-bottom: 10px;
}
.contact-form input[type="text"],
.contact-form textarea {
    width: calc(100% - 20px);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}
.contact-form textarea {
    height: 100px;
}
.contact-form button {
    background-color: #7915BC;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    display: block;
    margin-top: 10px;
}
.secondary-social a svg{
    height: 40px;
    fill: #fff;
    margin-top: -10px;
}
#main-img{
    display: none;
    width: 100vw;
}

/*-----------------FOOTER------------*/

#line-footer{
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 1px;
    background-color: #7915BC;
}
footer{
    padding: 5px 10vw;
    position: absolute;
    right: 0;
    margin-top: -24vh;
}

.logo-bottom img{
    height: 200px;
}

/*--------------SPONSORS----------------*/

.sponsors img{
    width: 80vw;
}
#spthree{
    margin-top: -150px;
}
#sp-vertical{
    display: none;
}
#pt-vertical{
    display: none;
}


/* Additional CSS for mobile responsiveness */

/* Adjustments for smaller screens */
@media screen and (max-width: 768px) {
    body {
        font-size: 16px; /* Adjust the base font size for better readability on smaller screens */
        text-align: center;
    }

    section {
        width: 90vw;
        margin-left: 5vw;
        margin-bottom: 100px; /* Reduce margin bottom for better spacing */
    }

    .hero h1 {
        font-size: 40px; /* Decrease hero heading font size */
    }

    .social {
        right: 5vw; /* Adjust the position of social icons */
    }

    /* Adjustments for header */
    header {
        padding: 10px; /* Reduce padding for header */
    }

    .logo img {
        width: 150px; /* Decrease logo size */
    }

    .social svg {
        height: 20px; /* Decrease social icon size */
    }

    /* Adjustments for sections */
    .cansat {
        flex-direction: column; /* Stack cansat content vertically on smaller screens */
        text-align: center; /* Center align cansat content */
    }
    .research #txt, .cansat .txt{
        padding: 0;
        text-align: center;
    }

    .txt, #img {
        padding: 0; /* Remove padding for text and image in cansat section */
        margin: 20px 0; /* Add margin for better spacing */
    }
    .cansat-body{
        padding: 0;
        padding-left: 20px;
    }
    .primary-mission{
        display: block;
    }
    .primary-mission img{
        width: 100vw;
    }
    .research, .missions, .cansat-body, .team, .video, .sponsors, .contact {
        flex-direction: column; /* Stack content vertically on smaller screens */
    }
    #img, #vid, #graphs, .model, .logo-bottom, .contact-form{
        display: none;
    }
    .team {
        margin-top: 600px;
        height: 230vh;
    }
    .gallery{
        display: block;
        width: 100px;
    }
    .gallery div {
        width: 90vw; /* Set team member width to 100% for stacking */
        margin-bottom: 20px; /* Add margin between team members */
    }

    .gallery div:hover {
        margin-top: 100px;
        margin-bottom: 100px;
    }

    .gallery div img {
        width: 50%; /* Make team member images fill their container */
    }
    .gallery div p:hover{
        width: 50%;
    }
    .video iframe{
        height: 300px;
    }
    .sponsors img{
        width: 90vw;
    }
    #spthree{
        margin-top: -32px;
    }
    #sp{
        display: none;
    }
    #pt{
        display: none;
    }
    #sp-vertical{
        display: block;
    }
    #pt-vertical{
        display: block;
    }
    #main-img{
        display: block;
    }
}


