/* font Akronim */
@import url('https://fonts.googleapis.com/css2?family=Akronim&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3%;
    background: #101720;
    user-select: none;
}

header {
    position: relative;
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin-block-start: 3%;
    color: #fff;
}

header h2 {
    font-size: 30px;
    font-family: "Akronim", system-ui;
    letter-spacing: 2px;
}

img {
    height: 45px;
}

.score-area {
    position: relative;
    width: 90%;
    display: flex;
    justify-content: space-around;
    margin-block-start: 2%;
    font-size: 24px;
}

.score-area::after {
    content: '';
    position: absolute;
    bottom: 0px;
    height: 2px;
    width: 60%;
    background: #121b25ee;
}

.score {
    position: relative;
    height: 75px;
    width: 80px;
    display: flex;
    padding-inline: 5px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #17212e;
    border: 2px solid #121b25;
    border-radius: 10px;
    box-shadow: 0px 0px 8px #ffffff41;
    font-size: 18px;
    text-align: center;
}


.game-area {
    position: relative;
    min-width: 50%;
    display: flex;
    justify-content: space-between;
}

.game-area img {
    position: relative;
    height: 200px;
}

.game-area img:nth-child(1) {
    rotate: 90deg;
}

.game-area img:nth-child(2) {
    rotate: -90deg;
}

.game-area.animated img:nth-child(1) {
    animation: lefthand 1s linear 3;
}

.game-area.animated img:nth-child(2) {
    animation: Righthand 1s linear 3;
}

@keyframes lefthand {

    0%,
    100% {
        rotate: 90deg;
    }

    50% {
        rotate: 45deg;
    }
}

@keyframes Righthand {

    0%,
    100% {
        rotate: -90deg;
    }

    50% {
        rotate: -45deg;
    }
}

.result h2 {
    font-size: 30px;
    font-family: 'Aladin', cursive;
    color: #fff;
    letter-spacing: 2px;
}

.user-choose {
    position: relative;
    height: 100px;
    width: 300px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.user-choose button {
    position: relative;
    height: 60px;
    width: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    outline: none;
}

.user-choose button:nth-child(1) {
    background: #c403c4;
    box-shadow: 0px 0px 5px 5px #c403c4;
    border: 2px solid #a305a3;
}

.user-choose button:nth-child(1):hover,
.user-choose button:nth-child(1):focus {
    background: #a305a3;
    box-shadow: 0px 0px 10px 10px #c403c4;
}

.user-choose button:nth-child(2) {
    background: #fa7e7e;
    box-shadow: 0px 0px 5px 5px #fa7e7e;
    border: 2px solid #d66767;
}

.user-choose button:nth-child(2):hover,
.user-choose button:nth-child(2):focus {
    background: #d66767;
    box-shadow: 0px 0px 10px 10px #fa7e7e;
}

.user-choose button:nth-child(3) {
    background: #6d85ee;
    box-shadow: 0px 0px 5px 5px #6d85ee;
    border: 2px solid #536feb;
}

.user-choose button:nth-child(3):hover,
.user-choose button:nth-child(3):focus {
    background: #536feb;
    box-shadow: 0px 0px 10px 10px #6d85ee;
}

.user-choose button img {
    height: 45px;
}

.tooltip {
    position: fixed;
    z-index: 4;
    height: 24px;
    display: grid;
    align-items: center;
    padding-inline: 5px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    white-space: nowrap;
    border-radius: 4px;
    pointer-events: none;
    animation: fade 200ms linear forwards;
}

.blur {
    filter: blur(10px);
}


.over {
    position: fixed;
    height: 100vh;
    width: 100%;
    display: none;
    background: #fff1;
    z-index: 1;
}

.overlay {
    position: fixed;
    width: 100%;
    height: 40%;
    top: 30%;
    display: none;
    justify-content: space-evenly;
    align-items: center;
    flex-direction: column;
    font-family: 'Aladin', cursive;
    color: #fff;
    background-color: #fff5;
    letter-spacing: 3px;
    box-shadow: 0 15px 15px #000, 0 -15px 15px #000;
    z-index: 2;
}

.active {
    display: flex;
}

.overlay h3 {
    position: relative;
    font-size: 36px;
}

.overlay h3:nth-child(2) {
    font-size: 28px;
}

.overlay .all-score {
    position: relative;
    display: flex;
    width: 300px;
    height: 80px;
    justify-content: space-between;
    align-items: center;
    background: #0001;
    border-radius: 10px;
    box-shadow: 2px 5px 5px #000, -2px -5px 5px #000;
    padding-inline-start: 8px;
}

.overlay .all-score h4 {
    position: relative;
    display: flex;
    font-size: 20px;
    flex-direction: column;
    text-align: center;
    height: max-content;
    padding: 10px;
}

.overlay button {
    position: relative;
    font-size: 18px;
    width: 200px;
    padding-block: 10px;
    border-radius: 15px;
    cursor: pointer;
    border: none;
    outline: none;
}

.overlay button:hover,
.overlay button:focus {
    background: #fffa;
    border: 2px solid #000;
    box-shadow: inset 3px 3px 5px #000;
}

@media screen and (max-width:1000px) {
    .game-area {
        min-width: 60%;
    }
}

@media screen and (max-width:900px) {
    .score-area {
        width: 100%;
    }

    .game-area {
        min-width: 65%;
    }
}

@media screen and (max-width:800px) {
    .score-area {
        width: 100%;
    }

    .game-area {
        min-width: 70%;
    }
}

@media screen and (max-width:700px) {
    header {
        width: 60%;
    }

    .score-area {
        width: 100%;
    }

    .game-area {
        min-width: 75%;
    }
}

@media screen and (max-width:600px) {

    header {
        width: 60%;
    }

    img {
        height: 40px;
    }

    .score-area {
        width: 100%;
    }

    .game-area {
        min-width: 80%;
    }
}

@media screen and (max-width:500px) {

    header {
        width: 100%;
    }

    img {
        height: 30px;
    }

    .score-area {
        width: 100%;
    }
    .score{
        font-size: 14px;
    }
    .game-area {
        min-width: 100%;
    }
    .overlay{
        top: 15%;
    }
}