@import url('https://fonts.googleapis.com/css2?family=Bellefair&family=Kumbh+Sans:wght@100..900&family=League+Spartan:wght@100..900&family=Manrope:wght@200..800&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Bellefair&family=Kumbh+Sans:wght@100..900&family=League+Spartan:wght@100..900&family=Manrope:wght@200..800&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    overflow-x: hidden;
}

.bgImage {
    min-height: 100vh;
    background: url('../starter-code/assets/crew/background-crew-desktop.jpg') no-repeat center center;
    background-size: cover;
    /* overflow-x: hidden; */
}

#crew-content {
    margin: 0;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.crew-content {
    /* border: 1px solid yellow; */
    align-items: center;
    margin: 40px auto;
    width: 50%;
}

.crew-detail {
    margin-left: 50px;
}


.crew-detail > p {
    font-family: "Barlow";
    line-height: 1.5;
    width: 500px;
    margin-bottom: 20px;
    /* border: 1px solid red; */

}

h3, h2{
    text-transform: uppercase;
    width: 70%;
    font-family: "Bellefair";
}

h2 {
    width: 100%;
}
.crew-image > img{
    width: 300px;
    margin-left: 50px;
    height: 300px;
}


.hero{
    position: relative;
    /* bottom: 5px; */
    top: 30px;
    left: 90px;
    color: white;
}

.circle-btn {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #979797;
    border: none;
    cursor: pointer;
    margin: 10px;
}

.circle-btn.active {
    background-color: white;
}

.crew-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    position: fixed;
}

@media screen and (max-width: 1021px) {
    .bgImage {
        background: url('../starter-code/assets/crew/background-crew-tablet.jpg') no-repeat center center;
        background-size: cover;
        min-height: 100vh;
    }

    .hero {
        left: 0;
        padding: 20px;
    }

    #crew-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }

    .crew-content {
        flex-direction: column;
        width: 100%;
        margin: 20px auto;
    }

    .crew-detail {
        margin-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .crew-detail > p {
        width: 100%;
        max-width: 600px;
        text-align: center;
    }

    h3, h2 {
        width: 100%;
        text-align: center;
    }

    .crew-image > img {
        margin-left: 0;
        margin-top: 30px;
        width: 250px;
        height: 250px;
    }

    .crew-buttons {
        position: static;
        margin: 20px 0;
    }
}

/* Mobile Styles */
@media screen and (max-width: 576px) {
    .bgImage {
        background: url('../starter-code/assets/crew/background-crew-mobile.jpg') no-repeat center center;
        background-size: cover;
    }

    .hero {
        top: 0;
        padding: 15px;
    }

    #head {
        font-size: 1.2rem;
        text-align: center;
    }

    .crew-content {
        margin: 10px auto;
    }

    .crew-detail > p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    h3 {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .crew-image > img {
        width: 200px;
        height: 200px;
    }

    .circle-btn {
        width: 15px;
        height: 15px;
        margin: 5px;
    }

    /* Reorder content for mobile */
    #crew-content {
        display: flex;
        flex-direction: column;
    }

    .crew-content {
        display: flex;
        flex-direction: column;
    }

    /* Force order of elements */
    .crew-image {
        order: 1;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .crew-buttons {
        order: 2;
        margin: 15px 0;
    }

    .crew-detail {
        order: 3;
    }
}

/* Extra Small Devices */
@media screen and (max-width: 375px) {
    .crew-image > img {
        width: 150px;
        height: 150px;
    }

    .crew-detail > p {
        font-size: 0.85rem;
        padding: 0 10px;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1rem;
    }

    #head {
        font-size: 1rem;
    }
}

/* Handle very tall mobile devices */
@media screen and (max-height: 700px) and (max-width: 576px) {
    .bgImage {
        min-height: 120vh;
    }

    .crew-image > img {
        width: 180px;
        height: 180px;
    }
}

/* Handle landscape orientation */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .bgImage {
        min-height: 130vh;
    }

    #crew-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
    }

    .crew-image {
        order: 2;
        margin-left: 20px;
    }

    .crew-detail {
        order: 1;
        text-align: left;
        align-items: flex-start;
    }

    .crew-buttons {
        justify-content: flex-start;
    }
}
