@import url('https://fonts.googleapis.com/css2?family=Wallpoet&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Graduate&family=Wallpoet&display=swap');

.intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff url('intro.png') center center no-repeat;
    background-size: cover;
    z-index: 9999;
    animation: fadeout 2s forwards;
    animation-delay: 2s;
}

@keyframes fadeout {
    0% {opacity: 1;}
    100% {opacity: 0; display: none;}
}

body {
    background-color: #95c6ff;
    overflow-x: hidden;
    overflow-y: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 20px;
}

.content {
    height: 70%;
    position: relative;
    padding: 0;
    text-align: center;
    color: #FFF;
    margin: 0;
    width: 100%;
}

.footer {
    position: relative;
    height: 20%;
    display: flex;
    color: white;
    justify-content: space-between;
}


#ad-container {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 50px;

    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#nav-ad {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 9999;
    background-color: rgb(0, 0, 0);
    z-index: 100;
}


a {
    text-decoration: none;
    color: rgb(158, 158, 158);
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

* {
    margin: 0;
    padding: 0;
}

.mobile_btn {
    position: absolute;
    top: 3vh;
    left: 3vh;
    z-index: 100;
}

input[id="hamburger"] {
    display: none;
}

input[id="hamburger"]+label {
    display: block;
    width: 5vh;
    height: 3.5vh;
    position: relative;
    cursor: pointer;

}

input[id="hamburger"]+label span {
    display: block;
    position: absolute;
    width: 100%;
    height: 0.5vh;
    border-radius: 30px;
    background: #ffffff;
    transition: all 0.35s;
}

input[id="hamburger"]+label span:nth-child(1) {
    top: 0;
}

input[id="hamburger"]+label span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

input[id="hamburger"]+label span:nth-child(3) {
    bottom: 0;
}

input[id="hamburger"]:checked+label {
    z-index: 99;
}

input[id="hamburger"]:checked+label span {
    background: rgb(117, 0, 163);
}

input[id="hamburger"]:checked+label span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

input[id="hamburger"]:checked+label span:nth-child(2) {
    opacity: 0;
}

input[id="hamburger"]:checked+label span:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

div[class="sidebar"] {
    width: 100%;
    height: 100%;
    background: rgb(0, 0, 0);
    position: fixed;
    top: 0;
    left: -100%;
    z-index: 98;
    transition: all 0.35s;
    opacity: 98%;
}

input[id="hamburger"]:checked+label+div {
    left: 0;
}

.nav_mobile {
    position: absolute;
    width: 100%;
}

.sidebar .nav_mobile li {
    color: rgb(211, 211, 211);
    position: relative;
    float: left;
    width: 100%;
    list-style-type: none;
    font-size: 2vh;
    border-bottom: 1px solid #3d3d3d;
    font-family: 'Noto Sans KR';
    font-weight: bold;
    padding-top: 2vh;
    padding-bottom: 2vh;
    text-align: center;

}

.sidebar a {
    padding: 0;
    text-decoration: none;
    display: block;
}

.sidebar li a {
    display: block;
    font-weight: bold;
    line-height: 3vh;
    margin: 0px;
    padding: 0;
    font-size: 2vh;
    text-align: center;
    text-decoration: none;
    transition: all 0.4s;
}

.sidebar p {
    display: block;
    position: relative;
    color:#bdbdbd;
    top: 2vh;
    text-align: center;
    
    

}

.sidebar li a:hover,
.sidebar ul li:hover a {

    text-decoration: none;
    color: #ffffff;
    padding: 0;
    margin: 0;
    border: 0px;
}

.button-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.controller {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 35%;
    right: 0;
}

.spinner-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8vh;
    height: 8vh;
    background-image: url('JRC_logo_character.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    animation: jump 1s infinite alternate;
}

@keyframes jump {
    0% {
        transform: translate(-50%, -50%) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) translateY(-30px);
    }

    /* 점프 높이 조정 가능 */
    100% {
        transform: translate(-50%, -50%) translateY(0);
    }
}

#video-canvas-container {
    height: 100%;
    position: relative;
    padding: 0;
    margin: 0;
    width: 100%;
    display: none;
}

#video-element {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2vh;
    height: 2vh;
    transform: translate(-50%, -50%);
    z-index: 1;
}

#canvas-element {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    z-index: 2;

}

#camera-switch-button {
    position: absolute;
    height: 3vh;
    top: 15px;
    right: 0px;
    z-index: 10;
}

#ready-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 4vh;
    font-weight: bold;
    color: white;
    z-index: 10;
}

#time {
    font-family: 'Wallpoet', cursive;
    font-size: 5vh;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: absolute;
    bottom: 5vh;
    left: 20%;
    transform: translateX(-50%);
    display: none;
    color: white;
    z-index: 10;
}

#time-unit {
    font-family: 'Wallpoet', cursive;
    font-size: 2vh;
    position: absolute;
    bottom: 3vh;
    left: 20%;
    transform: translateX(-50%);
    color: white;
    z-index: 10;
}


#totalJumpCount {
    font-family: 'Graduate', cursive;
    color: #FFF;
    font-size: 6vh;
    animation: jumpCountChange 0.3s;
}

@keyframes jumpCountChange {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.5);
    }

    100% {
        transform: scale(1);
    }
}

#totalJumpCountCircle {
    position: absolute;
    top: 1vh;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    width: 13vh;
    height: 13vh;
    border: 0.8vh solid rgb(135, 186, 253);
    background-color: #95c6ff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    animation: total-jumps-circle 0.5s;
}

@keyframes total-jumps-circle {
    0% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.5);
    }

    100% {
        transform: translateX(-50%) scale(1);
    }
}

#startButton {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10%;
    width: 8vh;
    height: 8vh;
    font-size: 2vh;
    border: 4px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

#stopButton {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10%;
    width: 8vh;
    height: 8vh;
    font-size: 2vh;
    border: 4px solid rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 19;
}

#resetButton {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10%;
    width: 8vh;
    height: 8vh;
    font-size: 2vh;
    border: 4px solid rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 18;
}


#camera-switch-button {
    position: absolute;
    top: 2vh;
    right: 3vh;
    z-index: 10;
    font-size: 3vh;
    background-color: transparent;
    color: #ffffff;
    border: none;
    padding: 0;
    opacity: 90%;
}

.checkbox-wrapper-6 {
    position: absolute;
    right: 2vh;
    top: 0vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.checkbox-wrapper-6.toggle-1 {
    position: absolute;
    top: 2vh;
    z-index: 11;

}

.checkbox-wrapper-6.toggle-2 {
    position: absolute;
    top: 6vh;
    z-index: 11;
}


.checkbox-wrapper-6 .tgl {
    display: none;
    z-index: 11;
}

.checkbox-wrapper-6 .tgl,
.checkbox-wrapper-6 .tgl:after,
.checkbox-wrapper-6 .tgl:before,
.checkbox-wrapper-6 .tgl *,
.checkbox-wrapper-6 .tgl *:after,
.checkbox-wrapper-6 .tgl *:before,
.checkbox-wrapper-6 .tgl+.tgl-btn {
    box-sizing: border-box;
}

.checkbox-wrapper-6 .tgl::-moz-selection,
.checkbox-wrapper-6 .tgl:after::-moz-selection,
.checkbox-wrapper-6 .tgl:before::-moz-selection,
.checkbox-wrapper-6 .tgl *::-moz-selection,
.checkbox-wrapper-6 .tgl *:after::-moz-selection,
.checkbox-wrapper-6 .tgl *:before::-moz-selection,
.checkbox-wrapper-6 .tgl+.tgl-btn::-moz-selection,
.checkbox-wrapper-6 .tgl::selection,
.checkbox-wrapper-6 .tgl:after::selection,
.checkbox-wrapper-6 .tgl:before::selection,
.checkbox-wrapper-6 .tgl *::selection,
.checkbox-wrapper-6 .tgl *:after::selection,
.checkbox-wrapper-6 .tgl *:before::selection,
.checkbox-wrapper-6 .tgl+.tgl-btn::selection {
    background: none;
}

.checkbox-wrapper-6 .tgl+.tgl-btn {
    outline: 0;
    display: block;
    width: 6vh;
    height: 1em;
    position: relative;
    right: 1vh;
    bottom: 1vh;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkbox-wrapper-6 .tgl+.tgl-btn:after,
.checkbox-wrapper-6 .tgl+.tgl-btn:before {
    position: relative;
    display: block;
    content: "OFF";
    font-size: 1vh;
    color: #424242;
    width: 50%;
    height: 100%;
    text-align: center;
    line-height: 1.5em
}

.checkbox-wrapper-6 .tgl+.tgl-btn:after {
    left: 0;
}

.checkbox-wrapper-6 .tgl+.tgl-btn:before {
    display: none;
}

.checkbox-wrapper-6 .tgl:checked+.tgl-btn:after {
    position: relative;
    display: block;
    content: "ON";
    font-size: 1vh;
    color: #ff8c8c;
    width: 50%;
    height: 100%;
    left: 50%;
    text-align: center;
    line-height: 1.5em
}

.checkbox-wrapper-6 .tgl-light+.tgl-btn {
    top: 0px;
    right: -5%;
    background: #bdbdbd;
    border-radius: 5%;
    padding: 0.2vh;
    transition: all 0.4s ease;
}

.checkbox-wrapper-6 .tgl-light+.tgl-btn:after {
    border-radius: 15%;
    background: #ffffff;
    transition: all 0.2s ease;
}

.checkbox-wrapper-6 .tgl-light:checked+.tgl-btn {
    background: #e389ff;
}

.toggle-container {
    position: relative;
    height: 2.2em;
    margin-top: 2vh;
}

.toggle-label {
    position: absolute;
    font-size: 1.5vh;
    right: 100%;
    top: 22%;

    transform: translateY(-50%);
    z-index: 11;
}

.tgl {
    position: absolute;
    right: 0;
    top: 0%;
    transform: translateY(-50%);
    z-index: 10;
}

.slidecontainer {
    position: absolute;
    right: 0vh;
    top: 14vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slider {
    -webkit-appearance: none;
    width: 70%;
    height: 0.5vh;
    background: #db66ff;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .1s;
    transition: opacity .1s;
}

.slider:hover {
    opacity: 1;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 2vh;
    height: 2vh;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

#sensitivity-text {
    margin-top: 0.5vh;
    font-size: 1vh;

}

.slider::-moz-range-thumb {
    width: 2.5vh;
    height: 2.5vh;
    background: #797979;
    cursor: pointer;
}

@media screen and (orientation: landscape) {
    body {
        flex-direction: row;
    }

    .header {
        height: 100vh;
        width: 15%;

    }

    .content {
        height: 100vh;
        width: 65%;

    }

    .footer {
        height: 100vh;
        width: 20%;
        margin-bottom: 60px;

    }

    .mobile_btn {
        position: absolute;
        size: 10vh;
        top: 10vh;
        left: 10vh;
        z-index: 21;
    }

    input[id="hamburger"] {
        display: none;
    }

    input[id="hamburger"]+label {
        display: block;
        width: 10vh;
        height: 5vh;
        position: relative;
        cursor: pointer;

    }

    input[id="hamburger"]+label span {
        display: block;
        position: absolute;
        width: 100%;
        height: 1vh;
        border-radius: 30px;
        background: #ffffff;
        transition: all 0.35s;
    }

    div[class="sidebar"] {
        width: 100%;
        height: 100%;
        background: rgb(0, 0, 0);
        position: fixed;
        top: 0;
        left: -100%;
        z-index: 98;
        transition: all 0.35s;
        opacity: 98%;
    }
    
    input[id="hamburger"]:checked+label+div {
        left: 0;
    }
    
    .nav_mobile {
        position: absolute;
        top: 15vh;
        width: 100%;
    }
    
    .sidebar .nav_mobile li {
        color: rgb(255, 255, 255);
        position: relative;
        float: left;
        width: 100%;
        list-style-type: none;
        font-size: 3vh;
        border-bottom: 1px solid #3d3d3d;
        font-family: 'Noto Sans KR';
        font-weight: bold;
        padding-top: 4vh;
        padding-bottom: 2vh;
        text-align: center;
    
    }

    .sidebar .nav_mobile li {
        color: rgb(211, 211, 211);
        position: relative;
        float: left;
        width: 100%;
        list-style-type: none;
        font-size: 4vh;
        border-bottom: 1px solid #3d3d3d;
        font-family: 'Noto Sans KR';
        font-weight: bold;
        padding-top: 3vh;
        padding-bottom: 2vh;
        text-align: center;
    
    }
    
    .sidebar li a {
        display: block;
        font-weight: bold;
        line-height: 5vh;
        margin: 0px;
        padding: 0;
        font-size: 4vh;
        text-align: center;
        text-decoration: none;
        transition: all 0.4s;
    }

    #startButton {
        position: absolute;
        top: 40vh;
        left: 10vw;
        transform: translateX(-50%);
        border-radius: 10%;
        width: 16vh;
        height: 16vh;
        font-size: 4vh;
        border: 0.5vw solid white;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 20;
    }

    #stopButton {
        position: absolute;
        top: 40vh;
        left: 10vw;
        transform: translateX(-50%);
        border-radius: 10%;
        width: 16vh;
        height: 16vh;
        font-size: 4vh;
        border: 0.5vw solid white;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 19;
    }

    #resetButton {
        position: absolute;
        top: 40vh;
        left: 10vw;
        transform: translateX(-50%);
        border-radius: 10%;
        width: 16vh;
        height: 16vh;
        font-size: 2vh;
        border: 0.5vw solid white;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 18;
    }

    #totalJumpCount {
        font-family: 'Graduate', cursive;
        color: #FFF;
        font-size: 8vw;
        animation: jumpCountChange 0.3s;
    }

    @keyframes jumpCountChange {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.5);
        }

        100% {
            transform: scale(1);
        }
    }

    #totalJumpCountCircle {
        position: absolute;
        top: 1vw;
        left: 90vw;
        transform: translateX(-50%);
        border-radius: 50%;
        width: 13vw;
        height: 13vw;
        border: 6px solid rgb(108, 172, 255);
        background-color: #95c6ff;
        display: flex;

        z-index: 10;
        animation: total-jumps-circle 0.5s;
    }

    @keyframes total-jumps-circle {
        0% {
            transform: translateX(-50%) scale(1);
        }

        50% {
            transform: translateX(-50%) scale(1.5);
        }

        100% {
            transform: translateX(-50%) scale(1);
        }
    }

    #camera-switch-button {
        position: relative;
        top: 35vh;
        right: 8vh;
        font-size: 7vh;
        background-color: transparent;
        color: #ffffff;
        border: none;
        opacity: 90%;
        z-index: 20;
    }

    #time {
        font-family: 'Wallpoet', cursive;
        font-size: 6vw;
        font-weight: bold;
        letter-spacing: 2px;
        text-transform: uppercase;
        position: absolute;
        top: 40vh;
        left: -72.5vw;
        transform: translateX(-50%);
        display: none;
        color: white;
        z-index: 10;
    }

    #time-unit {
        font-family: 'Wallpoet', cursive;
        font-size: 3vw;
        position: absolute;
        top: 50vh;
        left: -72.5vw;
        transform: translateX(-50%);
        color: white;
        z-index: 10;
    }

    .checkbox-wrapper-6 {
        position: absolute;
        left: 2vh;
        top: 0vh;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .checkbox-wrapper-6.toggle-1 {
        position: absolute;
        top: 65vh;
        z-index: 11;

    }

    .checkbox-wrapper-6.toggle-2 {
        position: absolute;
        top: 75vh;
        z-index: 11;
    }


    .checkbox-wrapper-6 .tgl {
        display: none;
        z-index: 11;
    }

    .checkbox-wrapper-6 .tgl,
    .checkbox-wrapper-6 .tgl:after,
    .checkbox-wrapper-6 .tgl:before,
    .checkbox-wrapper-6 .tgl *,
    .checkbox-wrapper-6 .tgl *:after,
    .checkbox-wrapper-6 .tgl *:before,
    .checkbox-wrapper-6 .tgl+.tgl-btn {
        box-sizing: border-box;
    }

    .checkbox-wrapper-6 .tgl::-moz-selection,
    .checkbox-wrapper-6 .tgl:after::-moz-selection,
    .checkbox-wrapper-6 .tgl:before::-moz-selection,
    .checkbox-wrapper-6 .tgl *::-moz-selection,
    .checkbox-wrapper-6 .tgl *:after::-moz-selection,
    .checkbox-wrapper-6 .tgl *:before::-moz-selection,
    .checkbox-wrapper-6 .tgl+.tgl-btn::-moz-selection,
    .checkbox-wrapper-6 .tgl::selection,
    .checkbox-wrapper-6 .tgl:after::selection,
    .checkbox-wrapper-6 .tgl:before::selection,
    .checkbox-wrapper-6 .tgl *::selection,
    .checkbox-wrapper-6 .tgl *:after::selection,
    .checkbox-wrapper-6 .tgl *:before::selection,
    .checkbox-wrapper-6 .tgl+.tgl-btn::selection {
        background: none;
    }

    .checkbox-wrapper-6 .tgl+.tgl-btn {
        outline: 0;
        display: block;
        width: 15vh;
        height: 4vh;
        position: relative;
        right: 1vh;
        bottom: 1vh;
        cursor: pointer;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }

    .checkbox-wrapper-6 .tgl+.tgl-btn:after,
    .checkbox-wrapper-6 .tgl+.tgl-btn:before {
        position: relative;
        display: block;
        content: "OFF";
        font-size: 1vh;
        color: #424242;
        width: 50%;
        height: 100%;
        text-align: center;
        line-height: 1.5em
    }

    .checkbox-wrapper-6 .tgl+.tgl-btn:after {
        left: 0;
    }

    .checkbox-wrapper-6 .tgl+.tgl-btn:before {
        display: none;
    }

    .checkbox-wrapper-6 .tgl:checked+.tgl-btn:after {
        position: relative;
        display: block;
        content: "ON";
        font-size: 1vh;
        color: #ff8c8c;
        width: 50%;
        height: 100%;
        left: 50%;
        text-align: center;
        line-height: 1.5em
    }

    .checkbox-wrapper-6 .tgl-light+.tgl-btn {
        top: 0px;
        right: -50%;
        background: #bdbdbd;
        border-radius: 5%;
        padding: 0.5vh;
        transition: all 0.4s ease;
    }

    .checkbox-wrapper-6 .tgl-light+.tgl-btn:after {
        border-radius: 15%;
        background: #ffffff;
        transition: all 0.2s ease;
    }

    .checkbox-wrapper-6 .tgl-light:checked+.tgl-btn {
        background: #e389ff;
    }

    .toggle-container {
        position: relative;
        height: 2.5vh;
        margin-top: 2vh;
    }

    .toggle-label {
        position: absolute;
        font-size: 3vh;
        right: 65%;
        top: 100%;
        transform: translateY(-50%);
        z-index: 11;
    }

    .tgl {
        position: absolute;
        right: 0;
        top: 0%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .slidecontainer {
        position: absolute;
        top: 90vh;
        right: 0%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slider {
        -webkit-appearance: none;
        width: 70%;
        height: 0.8vh;
        background: #db66ff;
        outline: none;
        opacity: 0.7;
        -webkit-transition: .1s;
        transition: opacity .1s;
    }

    .slider:hover {
        opacity: 1;
    }

    .slider::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 3vh;
        height: 3vh;
        border-radius: 50%;
        background: #ffffff;
        cursor: pointer;
    }

    #sensitivity-text {
        margin-top: 1.5vh;
        font-size: 1.5vh;

    }

    .slider::-moz-range-thumb {
        width: 2.5vh;
        height: 2.5vh;
        background: #797979;
        cursor: pointer;
    }

}