body {
    margin: 0;
    font-family: Montserrat;
    background-color: #222;
    color: white;
    height: auto;
}

div.mode_select{
    padding: 25px;
    text-align: center;
    font-size: 24px;
    background-color: rgba(255, 255, 255, 0.2);
}

@media only screen and (max-width: 1200px) {
    div.mode_select {
        font-size: 20px;
    }
}

@media only screen and (max-width: 992px) {
    div.mode_select {
        font-size: 18px;
    }
}

@media only screen and (max-width: 768px) {
    div.mode_select {
        font-size: 16px;
    }
}

@media only screen and (max-width: 576px) {
    div.mode_select {
        font-size: 14px;
    }
}

div.footer {
    width: 100%;
    color: white;
    text-align: center;
    margin: 35px 0px 0px 0px;
}

div.ninepanel{
    padding-top: 2%;
    padding-bottom: 2%;
    display: grid;
    --side: min(20vw, 20vh);
    grid-template-columns: var(--side) var(--side) var(--side);
    grid-template-rows: var(--side) var(--side) var(--side);
    justify-content: center;
    gap: 8px;
    background-color: rgba(255, 255, 255, 0.2);
}

div.ninepanel > div.panel{
    place-self: center;
    --side: min(15vw, 15vh);
    font-size: var(--side);
    width: 100%;
    height: 100%;
    background-color: #222;
    text-align: center;
}

.endgame{
    text-align: center;
    background-color: rgba(255, 255, 255, 0.2);
    height:20px;
    padding-bottom: 1%;
}

.switch {
    height: auto;
    line-height: 35px;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.slider {
    background-color: #2b2b2b;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
}

input:checked + .slider {
    background-color: #2b2b2b;
}

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

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

div.reset-container{
    text-align: center;
    background-color: rgba(255, 255, 255, 0.2);
    padding-bottom: 1%;
}

button.reset-button{
    text-align: center;
    background-color: #2b2b2b;
    border: none;
    border-radius: 8px;
    color: inherit;
    font-family: inherit;
    font-size: 24px;
    padding: 8px;
    cursor: pointer;
}

button.reset-button:hover{
    background-color: #3f3f3f;
}