
:root {
    --shadow : 0px 0px 2px #121212;
    --setting-bg: #fff;
}
body {
    width: 100%;
    height: 100vh;
    overflow:hidden;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    box-sizing: border-box;
}
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    font-family: inherit;
    box-sizing: inherit;
}
#canvas{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #121212db;
}
#collisionCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}


.container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding:1rem;
    color: #fff;
}

.score-container {
    z-index: 23;
    text-shadow: 2px 2px 3px #ff0000;
}
h2 {
    -webkit-user-select: none; /* Safari */
    -ms-user-select: none; /* IE 10 and IE 11 */
    user-select: none; /* Standard syntax */
}
/* setting css  */
.gear-container {
    /* position: absolute;
    top: 2rem; 
    right: 1rem;*/
    z-index: 12; 
}
#gear {
    font-size: 1.5rem;
    text-shadow: 0px 0px 3px #ff0000;
}

.gear-spin {
    animation: spin 1.5s 1s forwards infinite linear;
}

.setting {
    position: absolute;
    top: 4rem;
    right: 1rem; 
    z-index: 12;
    background-color: var(--setting-bg);
    border-radius: 5px;
    width: 200px;
    box-shadow: var(--shadow);
    /* display: none; */
    max-height: 0;
    overflow: hidden;
    transition: max-height 1s ease-in-out;
}

.setting-toggle {
    max-height: 250px;
}
.box-container {
    display: flex;
    justify-content: space-between;
    margin:1rem;
}
.box-container:first-of-type {
    margin-top:2rem;
}

.box-container:last-of-type {
    margin-bottom: 2rem;
}
.box-container label {
    font-size: 1.1rem;

}

input[type="checkbox"] {
    position: relative;
    background-color: #ffffff;
    -webkit-appearance: none;
    width:50px;
    height: 25px;
    border-radius: 15px;
    box-shadow: inset 0px 0px 5px #121212;
    transition: background-color 0.5s ease-in-out;
    box-shadow: 0px 0px 2px #121212;
    transition: background-color 0.5s ease-in;
}
input[type="checkbox"]::before {
    content: " ";
    position: absolute;
    top:0;
    left: 0;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: #121212;
    transition: left 0.5s ease-in;
    cursor: pointer;
}


input[type="checkbox"]:checked {
    background-color: #00B0FF;
}
input[type="checkbox"]:checked::before {
    left: calc(100% - 25px);
}

button {
    width: 100%;
    background: transparent;
    border: none;
    padding:0.3rem 0;
    font-size: 1.1rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    border-radius: 2px;
}

button:hover {
    background-color: #121212;
    color: #fff;
}
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}