/*CSS used by the entire game*/
/*https://www.fontspace.com/captain-falcon/jet-set*/
@font-face {
    font-family: 'jetset';
    src: url('../fonts/jet_set-webfont.woff') format('woff');
}

body {
    font-family: 'jetset';
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.landing-page {
    background-image: url('../images/2067120.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-color: rgb(159, 209, 252);
}

.landing-buttons {
    margin-top: 60vh;
    margin-left: auto;
    margin-right: auto;
    width: 200px;
}

.level-select-page {
    background-image: url('../images/bg-level-1.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    background-color: rgb(159, 209, 252);
}

.levels {
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    height: 90vh;
    padding-top: 5vh;
    overflow: auto;
}

/* width */
.levels::-webkit-scrollbar {
    width: 0.7vw;
}

/* Track */
.levels::-webkit-scrollbar-track {
    background: rgb(153, 157, 163);
}

/* Handle */
.levels::-webkit-scrollbar-thumb {
    background: rgb(83, 141, 187);
}

/* Handle on hover */
.levels::-webkit-scrollbar-thumb:hover {
    background: rgb(43, 55, 80);
}

.single-level {
    float: left;
    margin: 10px;
    margin-left: 2vw;
    border: 8px solid rgba(43, 55, 80, 0.8);
    background-color: rgba(83, 141, 187, 0.8);
    color: rgb(235, 186, 22);
    border-radius: 5%;
    width: 30vw;
    text-align: center;
}

.single-level:nth-child(odd) {
    margin-left: 8vw;
}

.locked {
    background-color: rgba(153, 157, 163, 0.8);
    border: 8px solid rgba(245, 245, 245, 0.8);
    color: rgb(245, 245, 245);
}

.single-level p {
    margin-top: 4px;
    font-size: 2em;
    margin-bottom: 0.5em;
}

.single-level .star {
    position: relative;
    top: -10px;
    margin-bottom: 4px;
}

.single-level .star:nth-child(1) {
    height: 8vw;
    width: 8vw;
    margin-bottom: -1vw;
    transform: rotate(-25deg) scale(0.8);
}

.single-level .star:nth-child(2) {
    height: 10vw;
    width: 10vw;
    margin-top: -1vw;
    margin-left: -2vw;
    margin-right: -2vw;
    transform: rotate(0deg) scale(0.8);
}

.single-level .star:nth-child(3) {
    height: 8vw;
    width: 8vw;
    margin-bottom: -1vw;
    transform: rotate(25deg) scale(0.8);
}

.legal {
    margin-left: 10%;
    margin-right: 5%;
    padding: 2%;
    margin-top: 5vh;
    width: 80%;
    height: 80vh;
    padding-top: 5vh;
    border: 8px solid rgba(43, 55, 80, 0.8);
    background-color: rgba(83, 141, 187, 0.4);
    color: white;
    border-radius: 5%;
    text-align: left;
}

.legalAtt{
    height:75%;
    background-color: rgba(164, 208, 242, 0.5);
    overflow: auto;
    padding: 2%;
    border-top: 1px solid white;
    border-bottom: 1px solid white;
}

/* width */
.legalAtt::-webkit-scrollbar {
    width: 0.7vw;
}

/* Track */
.legalAtt::-webkit-scrollbar-track {
    background: rgb(153, 157, 163);
}

/* Handle */
.legalAtt::-webkit-scrollbar-thumb {
    background: rgb(83, 141, 187);
}

/* Handle on hover */
.legalAtt::-webkit-scrollbar-thumb:hover {
    background: rgb(43, 55, 80);
}

.legal button{
    margin-left: auto;
    margin-right: auto;
}

button {
    font-family: 'jetset';
    font-size: 2em;
    background-color: rgb(235, 186, 22);
    border: 4px solid rgb(185, 146, 16);
    color: white;
    text-align: center;
    text-decoration: none;
    display: block;
    width: 8em;
    height: 2.5em;
    margin: 8px -25px;
    border-radius: 12px;
}

button:active {
    background-color: rgb(185, 146, 16);
    transform: translateY(2px);
}

p, p::after, p::before {
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-app-region: no-drag;
    cursor: default;
}

#settings {
    position: absolute;
    bottom: 3vw;
    left: 2vw;
    z-index: 2;
}

#settings img {
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

.star {
    user-drag: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

#gear {
    z-index: 1;
    height: 10vw;
    width: 10vw;
}

#setting-details {
    width: 8vw;
    height: 30vw;
    margin-left: 1vw;
    transition: height 1s;
    overflow-y: hidden;
}

#setting-details.in-level {
    height: 50vw;
}

#setting-details.is-inactive {
    height: 0;
}

#setting-details img {
    height: 8vw;
    width: 8vw;
    padding-bottom: 2vw;
}

@media only screen and (min-width: 880px) {
    .single-level {
        width: 20vw;
        margin-left: 3vw;
    }

    .single-level:nth-child(odd) {
        margin-left: 3vw;
    }

    .single-level:nth-child(3n+1) {
        margin-left: 10vw;
    }

    .single-level .star:nth-child(1) {
        height: 6vw;
        width: 6vw;
    }

    .single-level .star:nth-child(2) {
        height: 7vw;
        width: 7vw;
        margin-left: -1.5vw;
        margin-right: -1.5vw;
    }

    .single-level .star:nth-child(3) {
        height: 6vw;
        width: 6vw;
    }

    #gear {
        z-index: 1;
        height: 6vmax;
        width: 6vmax;
    }

    #setting-details {
        width: 6vmax;
        height: 18vmax;
        transition: height 1s;
        overflow-y: hidden;
    }

    #setting-details.in-level {
        height: 30vmax;
    }

    #setting-details.is-inactive {
        height: 0;
    }

    #setting-details img {
        height: 4vmax;
        width: 4vmax;
        padding-bottom: 2vmax;
    }
}