@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600&family=Inter:wght@400;600&display=swap');

body{
    background-color: #f8f9ff;
    background-image: radial-gradient(#dcdcff 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    color: rgb(0, 0, 0);
    font-family: 'Inter', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    user-select: none;
}
.switch {
    position: absolute;
    display: inline-block;
    width: 60px;
    height: 34px;
    right: 50px;
    top: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #e5e7eb;
    border-radius: 999px;
    transition: 0.3s;
}

.slider::before {
    content: "";
    position: absolute;
    height: 26px;
    width: 26px;
    left: 4px;
    top: 4px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

input:checked + .slider {
    background-color: black;
}

input:checked + .slider::before {
    transform: translateX(26px);
}

.rps-logo{
    cursor: pointer;
    vertical-align: middle;
    margin-right: 10px;
}
.title{
    font-size: 40px;
    font-weight: bold;
    font-family: 'Fredoka', cursive;
}

.move-icon{
    height: 50px;
}
.move-btn{
    background-color: transparent;
    cursor: pointer;
    border: 3px solid rgb(0, 0, 0);
    border-radius: 60px;
    width: 120px;
    height: 120px;
    margin-right: 10px;
    transition: all 0.3s ease;
}
.move-btn:hover{
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
}
.result{
    font-size: 25px;
    font-weight: bold;
    color: rgb(30, 30, 30);
    min-height: 60px;
}
.game-start-msg{
    font-size: 16px;
    color: black;
    min-height: 20px;
    margin-top: 20px;
}
.game-error-msg{
    font-size: 16px;
    color: black;
    min-height: 20px;
    margin-top: 10px;
    display: none;
}
.rounds{
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    color: rgb(50, 50, 50);
    min-height: 25px;
}
.round-msg{
    font-size: 20px;
    color: black;
    margin-bottom: 20px;
}
.input-container{
    font-size: 16px;
    padding: 5px 10px;
    width: 60px;
    border: 1px solid rgb(0, 0, 0);
    outline: none;
}

.score{
    display: none;
}
.reset-score-button{
    display: none;
}
.reset-score-button:hover{
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
}
.player-choice-icon{
    animation: player-move 1s ease;
    
}
.computer-choice-icon{
    animation: computer-move 1s ease;
}
@keyframes player-move {
    0% {transform: translateY(0px);}
    25% {transform: translateY(-20px);}
    50% {transform: translateY(0px);}
    75% {transform: translateY(-10px);}
    100% {transform: translateY(0px);}
}
@keyframes computer-move {
    0% {transform: translateY(0px);}
    25% {transform: translateY(-20px);}
    50% {transform: translateY(0px);}
    75% {transform: translateY(-10px);}
    100% {transform: translateY(0px);}
}

.rounds-input-container{
    margin-bottom: 20px;
}
.rounds{
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    color: rgb(50, 50, 50);
    min-height: 25px;
}
.start-button{
    border: none;
    background-color: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    padding: 8px 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    border: 1px solid rgb(0, 0, 0);
    transition: all 0.3s ease;
}
.start-button:hover{
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
}
.dark-mode{
    background-color: #121212;
    color: #e0e0e0;
    background-image: radial-gradient(#2c2c2c 1.5px, transparent 1.5px);
}
.dark-mode .move-btn{
    border: 3px solid #e0e0e0;
    color: #e0e0e0;
}
.dark-mode .start-button{
    background-color: #ffffff;
    color: #121212;
    border: 1px solid #ffffff;
}
.dark-mode .start-button:hover{
    background-color: #121212;
    color: #ffffff;
}
.dark-mode .move-btn:hover{
    background-color: #ffffff;
    color: #121212;
}
.dark-mode .slider {
    background-color: #444444;
}
.dark-mode input:checked + .slider {
    background-color: #585858;
}
.dark-mode .game-start-msg,
.dark-mode .game-error-msg,
.dark-mode .round-msg,
.dark-mode .rounds,
.dark-mode .result{
    color: #ffffff;
}
