@media (orientation: portrait) {
    
/* regole per login verticale */

    .login img {
        margin-bottom: -10vh;
    }

    .login-form {
        position: fixed;
        top: 20vh;
        left: 3vw;
        right: 3vw;
    }

    .login-form input {
        width: 100%;
        font-size: 1.25em;
    }

    .login-form button {
        width: 75%;
        font-size: 1.5em;
    }


/* regole per home */

    .logo {
        height: auto;
        width: 70%;
    }



/* regole per statistiche */

    .stats-logo img {
        max-width: 65%;
    }

    .stats-button {
        width: 60px;
        height: 60px;
    }

    .stats-car {
        width: 60px;
    }


    .stats-content {
        /*width: 60%;
        top: 15vh;*/
        width: 100%;
        /*top: 100px;
        left: 0;
        right: 0;
        padding: 5%;
        height: 85vh;
        overflow-y: scroll;*/
    }

    .progressbar {
        width: 90%;
        margin: 40px 5% 20px 5%;
    }

    .stats-car {
        transform: translateX(0%) translateY(50%);
    }

    
    /*
    .stats-avatar {
        transform: translateY(70%);
        position: absolute;
        bottom: 10vh;
        right: 0;
        left: 0;
        top: auto;
        width: 100%;
        height: auto;
    }
    */
    .stats {
        align-items: flex-start;
        overflow: auto;
    }
    .stats-wrapper {
        display: block; 
        height: auto; 
        margin-top: 100px;
        overflow-x: hidden;
        overflow-y: auto;
    }
    .stats-avatar {
       position: relative;
       right: auto;
       left: auto;
       height: auto;
       width: 65%;
       margin: auto;
    }
    
    #stats-avatar-nickname {
        font-size: 21px;
        color: #f97802;
        text-transform: uppercase;
        font-weight: bold;
    }

    .stats-copy {
        z-index: 99;
        position: fixed;
        /*left: 1vh;
        right: 1vh;
        bottom: 1vh;*/
        width: 100%;
    }




/* regole per policy/disclaimer */

    .disclaimer-content {
        width: 70%;
    }

    .disclaimer-content p {
        font-size: 1.25em;
    }

    .disclaimer-girl {
        position: fixed;
        right: 5px;
        height: 50%;
    }

    .disclaimer-content button {
        padding: 15px 30px;
        font-size: 20px;
    }

}

@media (orientation: portrait) and (min-width: 767px) {

    .login-form input {
        font-size: 1.75em;
    }

    .login-form button {
        font-size: 2em;
    }

    .login-reset {
        font-size: 1.25em;
    }

    .login-copy {
        font-size: 1.25em;
    }

    .stats-logo img {
        height: 70px;
        width: auto;
        max-width: fit-content;
    }

    /*
    .stats-content {
        position: absolute;
        top: 120px;
        bottom: 20px;
        height: 85vh;
        overflow-y: scroll;
    }
    */

    /*
    .stats-avatar {
        position: absolute;
        right: 0px;
        left: 0px;
        transform: translateY(15%);
        max-width: 100%;
        height: 60%;
    }
    */
}




@media (orientation: portrait) and (max-height: 800px) {
    .disclaimer-content p {
        font-size: 18px;
    }
}


@media screen and (orientation: portrait) and (max-width: 428px) {

    /*
    .stats {
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        align-content: flex-start;
    }
    */

    .stats-logo {
        position: absolute;
    }

    /*
    .stats-content {
        position: absolute;
        height: 80vh;
        overflow-y: scroll;
        overflow-x: hidden;
        width: 100%;
        font-size: 18px;
    }
    */

    .stats-content p {
        margin-block-start: 0.5em;
        margin-block-end: 0em;
    }

    .stats-car {
        width: 60px;
    }

    /*
    .stats-avatar {
        position: absolute;
        right: 0px;
        left: 0px;
        transform: translateY(0%);
        max-width: 100%;
        height: 32%;
    }
    */

    .stats-result {
        font-size: 16px !important;
    }

}

@media screen and (orientation: portrait) and (max-width: 388px) and (max-height: 690px) {

    .login-form {
        top: 15vh;
    }

    .stats-content p {
        font-size: 16px;
    }

    .stats-result {
        font-size: 16px !important;
    }
}

@media screen and (orientation: protrait) and (max-height: 668px) {
    /*
    .stats-content {
        height: 75vh !important;
    }
    */
}