/* For tablets and below */
@media (max-width: 768px) {
    body{
        margin-left: 30px;
        overflow-x:  hidden;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .header > a {
        margin-left: 60px;
        font-size: 60px;
    }

    nav ul {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
        margin-top: 40px;
        
    }

    .socials {
        margin-right: 20px;
        margin-top: 20px;
        margin: 20px 20px 0 110px;
    }

    .main-container {
        flex-direction: column;
        align-items: center;
    }

    .wrapper1, .wrapper2 {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }

    .wrapper1 {
        order: 1;
    }

    .wrapper2 {
        order: 2;
    }

    .wrapper1 h1 {
        font-size: 40px;
        
    }

    .wrapper1 p {
        font-size: 26px;
        margin-top: 20px;
    }

    .wrapper2 img {
        transform: translateY(-50px);
        width: 80%;
    }

    .featured{
        transform: translateX(-40px);
    }
    .what-if {
        width: 100%;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        padding: 20px;
        flex-direction: column;
        align-items: center;
    }
    .what-if img {
        width: 100%;
        height: auto;
        max-width: 300px;
    }
    .what-if-logo {
        width: 100%;
        height: auto;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
        margin-top: 20px;
    }
    .what-if p {
        position: static;
        width: 100%;
        font-size: 16px;
        transform: none;
        margin: 20px 0;
        text-align: center;
    }
    .what-if a {
        position: static;
        margin: 20px 0;
        display: block;
        text-align: center;
    }
    .review-collections {
        width: 100%;
        padding: 20px;
        margin-left: auto;
        margin-right: auto;
    }
    .reviews {
        flex-direction: column;
        gap: 20px;
    }
    .review-card {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
    .review-card img {
        width: 80px;
        height: 80px;
        margin: 10px auto;
    }

    .about-us, .mission {
        flex-direction: column;
        margin: 30px;
    }
    .about-text, .mission-text {
        width: 90%;
        margin-left: 0;
        margin-right: 0;
        font-size: 16px; /* Adjust font size if needed */
    }
    .avengers-logo {
        width: 180px;
        height: 180px;
        margin-left: 0;
    }
    .marvel-group {
        width: 80vw;
        height: auto;
        margin: 2vw 2vw 0 2vw;
    }

    .parent-container {
        flex-direction: column;
        align-items: center;
    }

    .cards {
        width: 90%;
        margin: 20px 0;
    }

    .footer {
        flex-direction: column;
        align-items: center;
    }

    .footer > div {
        margin: 10px 0;
    }

    .card {
        width: 80%;
        margin: 20px 0;
    }

    .copyright {
        margin-left: 0;
        text-align: center;
    }
}

/* For mobile devices */
@media (max-width: 480px) {
    body{
        overflow-x: hidden;
        transform: translateX(-23px);

    }
    .header{
        transform: translateX(-8px);
    }
    .header > a {
        font-size: 25px;
    }

    nav ul a {
        font-size: 16px;
    }

    .wrapper1 h1 {
        font-size: 30px;
    }

    .wrapper1 p {
        font-size: 14px;
    }
    nav ul li .dropdown-content{
        right:0;
    }
    #parent-container{
        transform: translateX(-10px);
    }
    .socials{
        margin-left: 120px;
    }

    button {
        font-size: 15px;
    }

    .featured h2 {
        font-size: 20px;
    }

    .what-if {
        padding: 30px;
        width: 79% !important;
        margin-right: 20px !important;
        margin-left: 10px !important;

    }
    .what-if img {
        max-width: 500px !important;
        max-height: 270px !important;
        margin-left: 30px !important;
    }
    .what-if-logo {
        max-width: 180px;
        margin-top: 10px;
        transform: translateX(10vw) !important;
    }
    .what-if p {
        font-size: 18px !important;
        transform: translateY(-5vw) !important;
    }
    .what-if a {
        margin: 0 40px 40px 50px !important;
        padding: 10px;
        transform: translateY(3vw) !important;
    }
    .review-collections{
        max-width: 84%;
        margin-right: 10px !important;
        margin-left: 10px !important;
    }
    .review-card {
        max-width: 80%;
        margin-left: 20px !important;
    }
    .review-card img {
        width: 80px;
        height: 80px;
        margin: 10px 90px;
    }

    .about-us, .mission {
        flex-direction: column;
        margin: 20px;
    }
    .about-text {
        width: 300px !important;
        margin: 50px 70px !important;
        font-size: 14px; 
    }
    .mission-text{
        width: 300px !important;
        margin: 40vh 70px 0 70px !important;
        font-size: 14px; 
    }
    .avengers-logo {
        width: 150px;
        height: 150px;
        margin-left: -20px !important;
        margin-top: -40px !important;
    }
    .marvel-group {
        width: 72vw !important;
        height: 40vw !important;
        margin: 10vw 1vw 0 2vw !important;
        transform: translateY(-60vh);
    }

    .cards {
        width: 100%;
    }

    .card__title {
        font-size: 20px;
    }

    .card__content {
        font-size: 12px;
    }

    .card__form input {
        padding: 0.5em;
    }

    .card__form button {
        padding: 0.6em;
    }

    .copyright h4 {
        font-size: 20px;
    }
}

/* for screens larger than 1500px */
@media (min-width: 1500px){
    .exclusive-collections{
        margin-left: 28vw;
    }
    .main-container{
        margin-left: 3vw;
    }
    
}

@media (max-width: 411px) and (max-height: 731px) {
    .header > a {
        font-size: 22px;
    }

    nav ul a {
        font-size: 14px;
    }

    .socials{
        transform: translateX(-15px);
    }

    #hr{
        transform: translateY(-8px);
    }

    .main-container{
        transform: translateX(8px);
    }

    .review-collections{
        width: 60%;
        transform: translateX(-65vw);
    }
    .review-collections h2{
        font-size: 20px;
    }
    .review-card{
        width: 93%;
    }
    .review-card img{
        transform: translateX(-10px);
        width: 80px;
        height: 80px;
    }
    .review-card h3, p{
        font-size: 14px;
    }
    .review-card p{
    
        font-size: 12px;
    }
    

  }

@media (min-width: 768px) and (max-width: 1024px) {
    .what-if {
        width: 80%;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        flex-direction: column;
        padding: 20px;
    }
    .what-if img {
        width: 100%;
        height: auto;
        margin-bottom: 20px;
    }
    .what-if-logo {
        width: 80% !important;
        height: auto !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .what-if p {
        top: auto;
        left: 50%;
        transform: translateX(-50%) translateY(0);
        width: 80% !important;
        margin-left: auto; 
        margin-right: auto; 
    }
    .what-if a {
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        margin-top: 20px;
        margin-left: auto; 
        margin-right: auto; 
    }
}

@media (max-width: 768px) {
    .what-if {
        width: 95%;
        height: auto;
        margin: 20px auto;
        flex-direction: column;
        overflow-x: hidden;
    }
    .what-if img, .what-if-logo {
        width: 90%;
        height: auto !important;
        margin: 0 auto;
        transform: translateX(-15px);
    }
    .what-if-logo {
        margin-top: 20px !important;
        width: 60% !important;
    }
    .what-if p{
        position: relative;
        width: 90% !important;
        margin: 45px 0 0 0;
        font-size: 16px;
        padding: 10px;
    }
    .what-if a{
        width: 40%;
        position: relative;
        margin-left: 60px;
        left: 0;
        transform: translateY(-20vw);
    }
}

