/* Mobile Design */

@media only screen and (max-width: 1300px) and (min-width: 771px){
    .card-content h3{
        font-size: 20px;
    }
    .card-content p{
        font-size: 13px;
    }
}

@media only screen and (max-width: 992px){
    #nav-link-download{
        display: block !important;
    }
}

@media only screen and (max-width: 1100px) and (min-width: 771px){
    #download{
        display: none
    }
    .card-holder{
        overflow: visible;
        margin-top: -20% !important;
        height:770px;
    }
    .card{
        width: 42.5%;
        margin-left: 5%;
        margin-top: 5% !important;
    }
    .card-content h3{
        font-size: 28px;
    }
    .card-content p{
        font-size: 16px;
    }
    .mission{
        margin-top: 150px;
    }
    .about-cube .container img{
        margin-left: 20%;
        width: 80%;
    }
    .about-cube .container h1,p{
        margin-right: 20%;
    }
    .footer .section{
        width: 100% !important;
    }
    .footer .section:not(:first-of-type){
        margin-top: 20px;
    }
    .cube-holder{
        width: 100%;
        overflow: visible;
    }
    .cube-holder > div:last-of-type{
        flex-direction: column;
    }
    .cube-level-ribbons{
        width: 85%;
        height: 80px;
        padding: 15px;
        display: flex;
        justify-content: center;
        border-right: none;
        border-bottom-left-radius: 0px;
        border-top-right-radius: 20px;
    }
    .ribbon{
        width: 125px;
        margin: 0;
        float: left;
        left: 0;
        border-radius: 5px;
        text-align: center;
    }
    .ribbon:before, .ribbon:after{
        display: none;
    }
    .ribbon:first-of-type{
        margin-left: 0 !important;
    }
    .cube-simulator-title{
        width: 100%;
        margin-left: 0%;
    }
    .cube-simulator{
        width: 85%;
        border-top-right-radius: 0px;
        border-bottom-left-radius: 20px;
    }
    .cube-simulator > *:not(.cube-notation-holder){
        top: -40%;
        left: -10%;
    }
    @keyframes popup-card{
        0%{
            opacity: 0;
        }
        100%{
            opacity: 1;
        }
    }

}

@media only screen and (max-width: 770px){
    #download{
        display: none;
    }
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12{
        width: 100%;
    }
    .nav-item{
        margin-left: 10px;
    }
    .wrapper{
        height: 80vh;
    }
    .boxes div:nth-child(2), .boxes div:nth-child(6), .boxes div:nth-child(7) {
        display: none;
    }
    .animediv{
        top: 25%;
    }
    .animetext{
        font-size: 1.8rem;
    }
    .btn-index{
        margin: 5px;
        margin-left: 20px !important;
    }
    .btn-index{
        margin-right: 20px;
        background-color:rgb(230, 228, 201);
        border-radius: 10px;
        height: 3em;
        text-align: center;
        line-height: 50%;
        width: 10em;
    }
    .waves{
        height:40px;
        min-height:40px;
    }
    .card-holder{
        overflow: visible;
        margin-top: -40% !important;
        height: 1540px;
    }
    .card{
        width: 70%;
        margin-left: 15%;
        margin-top: 5% !important;;
    }
    .card-content h3{
        font-size: 22px;
    }
    .card-content p{
        font-size: 14px;
    }
    .mission{
        margin-top: 200px;
        width: 90%;
        margin-left: 5%;
    }
    .about-cube .container{
        width: 100%;
        min-width: 100%;
    }
    .about-cube .container img{
        width: 80%;
        margin-left: 10%;
    }
    .about-cube .container h1, .about-cube-p{
        width: 80% !important;
        margin-top: 20px;
        margin-left: 10% !important;
    }
    .new-cube-btn-holder{
        display: flex;
        align-items: flex-start;
    }
    .new-cube-btn{
        width: 40% !important;
    }
    .wca-content .img-text-wrap{
        width: 100px;
    }
    .wca-content{
        width: 80%;
    }
    .uncompatible{
        display: block;
    }
    .achievements, .rewards{
        width: 100%;
    }
    .reward{
        display: flex;
        flex-direction: column;
        max-width: 400px;
        min-height: 100px;
        max-height: 200px;
        align-items: center;
        text-align: center;
    }
    .reward .classifier{
        height: 150px;
        padding: 0 15px;
        justify-content: center;
    }
    .reward .classifier:last-of-type button{
        margin-right: 0;
    }
    .footer{
        padding-left: 5px;
        padding-right: 5px;
        padding-bottom: 10px;
    }
    .footer .section{
        width: 100% !important;
    }
    .footer .section:not(:first-of-type){
        margin-top: 20px;
    }
    .footer-link{
        margin-left: clamp(10px, auto);
    }
    .footer-link:first-of-type{
        margin-left: 0;
    }
    .footer .section:last-of-type{
        margin-top: 50px;
    }
    .feature-solo-list{
        height: 650px;
    }
    .feature-solo-list .container{
        width: 100%;
        height: 400px;
        float: none;
    }
    .feature-text > *{
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .feature-img img{
        height: 200px;
    }
    .cube-holder{
        width: 100%;
        height: auto;
    }
    .cube-holder > div:last-of-type{
        flex-direction: column;
    }
    .cube-level-ribbons{
        width: 85%;
        height: 250px;
        padding: 5px;
        padding-top: 2px;
        display: flex;
        flex-direction: column;       
        border-right: none;
        border-bottom-left-radius: 0px;
        border-top-right-radius: 20px;
    }
    .ribbon{
        width: 80%;
        margin: auto !important;
        margin-top: 10px !important;
        float: left;
        left: 0;
        border-radius: 5px;
        text-align: center;
    }
    .ribbon:before, .ribbon:after{
        display: none;
    }
    .cube-simulator-title{
        width: 100%;
        margin-left: 0%;
    }
    .cube-simulator{
        height: 600px;
        width: 85%;
        border-top-right-radius: 0px;
        border-bottom-left-radius: 20px;
    }
    .cube-simulator > *:not(.cube-notation-holder){
        top: -40%;
        left: -10%;
    }
    .triangle_down{
        width: 10px;
        height: 10px;
    }
    .know-more label{
        font-size: 16px;
    }
    .error-404 > *{
        width: 100%;
        height: fit-content;
    }
    .sub-content br{
        display: none;
    }
    .sub-content h1{
        font-size: 60px;
    }
    .sub-content h2{
        width: 90%;
        font-size: 24px;
    }
    .error-img{
        margin-top: 50px;
        height: 50vh;
        justify-content: center;
    }
    .error-img img{
        width: fit-content;
    }

    @keyframes popup-card{
        0%{
            opacity: 0;
        }
        100%{
            opacity: 1;
        }
    }
    @keyframes popdown-homebtns{
        0%{
            opacity: 0;
            margin-top: -150px;
        }
        100%{
            opacity: inherit;
            margin-top: 10px;
        }
    }
}

@media only screen and (max-width: 575px){
    .new-cube-btn-holder{
        display: block;
        justify-content: center;
    }
    .new-cube-btn{
        margin-left: 0;
    }
    #new-cube-btn-3{
        margin-right: 0;
    }
    .tos{
        padding: 10px;
    }
    .tos h1{
        font-size: 30px;
    }
    .switch-button{
        width: 320px;
        font-size: 12px;
    }
    .tos .content{
        max-width: 40ch;
        font-size: 16px;
    }
}

@media only screen and (max-width: 350px){
    .logo{
        width: 10em !important;
    }
    .animetext{
        font-size: 1.5rem;
    }
    #download-err{
        width: 200px;
    }
    .animetext{
        font-size: 1.5rem;
    }
    .card-holder h3{
        font-size: 18px;
    }
    .card-holder p{
        font-size: 12px;
    }
    .tos h1{
        font-size: 24px;
    }
    .tos .content{
        font-size: 16px;
    }
    .switch-button{
        width: 275px;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }