:root {
    --background: #02042d;
    --control-panel-color: #1b1111;
    --control-panel-height: 100vh;
    --control-panel-width: 432px;
    --control-panel-title-size: 50px;
    --control-panel-subtitles-size: 40px;
    --control-panel-subtexts-size: 30px;
    --control-panel-shortcuts-subtext-size: 25px;
    --control-panel-grid-slider-height: 20px;
    --control-panel-grid-slider-width: 400px;
    --control-panel-grid-slider-color: #37495a;
    --control-panel-grid-slider-circle-height: 30px;
    --control-panel-grid-slider-circle-width: 30px;
    --control-panel-grid-text: 20px;
    --control-panel-circles-color: #0c1f3d;
    --control-panel-colors-rectangles-height: 43px;
    --control-panel-colors-rectangles-width: 200px;
    --control-panel-colors-background-color: #02042d;
    --big-container-height: 100vh;
    --big-container-width: calc(100vw - 432px);
    --how-to-play-title-size: 50px;
    --how-to-play-text-size: 32px;
    --text-color: #fff;
    --btn-color: #fee715;
    --btn-shadow: 0 0 20px 6px #d6c316;
    --btn-hover-text-color: #fee715;
    --btn-width: 272px;
    --btn-height: 76px;
    --btn-text-color: #101820;
    --btn-text-size: 50px;
    --btn-radius: 6px;
    --sketch-container-width: 900px;
    --sketch-container-height: 900px;
    --sketch-container-background: #101820;
    --sketch-container-shadow: 0 0 5px 2px #d6c316;
}

* {
    box-sizing: border-box;
    font-family: mclaren, helvetica, monospace, sans-serif;
}

body {
    display: flex;
}

.menu {
    background: var(--control-panel-color);
    width: var(--control-panel-width);
    min-height: var(--control-panel-height);
    color: var(--text-color);
}

.menu-1 h1 {
    margin-left: 54px;
    margin-right: 73px;
    font-size: var(--how-to-play-title-size);
    white-space: nowrap;
}

.menu-1 p {
    font-size: var(--how-to-play-text-size);
    margin-top: 2.6em;
    line-height: 1.4;
    margin-left: 0.5em;
}

.menu-1 button {
    font-size: var(--btn-text-size);
    width: var(--btn-width);
    min-height: var(--btn-height);
    background-color: var(--btn-color);
    color: var(--btn-text-color);
    box-shadow: var(--btn-shadow);
    border-radius: var(--btn-radius);
    border: none;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s;
}

.menu-1 button:hover {
    color: var(--btn-hover-text-color);
    background-color: var(--btn-text-color);
    cursor: pointer;
}

.menu-1 .clicked-btn#got-it-btn {
    background-color: var(--btn-hover-text-color);
    color: var(--btn-text-color);
    cursor: default;
}

.menu-1 #got-it-btn {
    margin-top: 70px;
}

.menu-2 {
    display: none;
}

.menu-2 h1 {
    text-align: center;
    font-size: var(--control-panel-title-size);
    margin-right: 0.5em;
}

.menu-2 h2 {
    font-size: var(--control-panel-subtitles-size);
    font-weight: 400;
    margin-left: 1rem;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
}

.menu-2 span {
    font-size: 25px;
    display: block;
}

.menu-2 #grid-slider {
    appearance: none;
    display: block;
    max-height: var(--control-panel-grid-slider-height);
    width: var(--control-panel-grid-slider-width);
    background: var(--control-panel-grid-slider-color);
    border-radius: 10px;
    margin: auto;
    outline: none;
    opacity: 0.5;
    transition: 0.2s;
}

.menu-2 #grid-slider:hover {
    opacity: 1;
}

.menu-2 #grid-slider::-webkit-slider-thumb {
    appearance: none;
    background: var(--control-panel-circles-color);
    min-height: var(--control-panel-grid-slider-circle-height);
    width: var(--control-panel-grid-slider-circle-width);
    border-radius: 50%;
}

.menu-2 #grid-slider::-moz-range-thumb {
    appearance: none;
    background: var(--control-panel-circles-color);
    min-height: var(--control-panel-grid-slider-circle-height);
    width: var(--control-panel-grid-slider-circle-width);
    border-radius: 50%;
    border: none;
}

.menu-2 .current-grid-text {
    display: block;
    text-align: center;
    margin-top: 0.4em;
    font-size: 20px;
}

.menu-2 .background,
.squares-color {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.menu-2 .subtext {
    font-size: var(--control-panel-subtexts-size);
    width: 192px;
}

.menu-2 .background .background-color,
.square-color {
    background: var(--control-panel-colors-background-color);
    min-height: var(--control-panel-colors-rectangles-height);
    width: var(--control-panel-colors-rectangles-width);
    border: none;
    outline: none;
    cursor: pointer;
}

.menu-2 .enabled {
    margin-right: 70px;
}

.menu-2 .enabled,
.disabled {
    display: inline-flex;
    gap: 5px;
    align-items: center;
    user-select: none;
}

.menu-2 .sketching .circle {
    background: var(--control-panel-circles-color);
    height: 37px;
    width: 37px;
    border-radius: 50%;
    margin-left: 18px;
    cursor: pointer;
}

.menu-2 .sketching .disable-circle {
    background: #fee715;
}

.menu-2 .shortcuts .shortcuts-keys {
    margin-left: 20px;
    line-height: 1.6;
}

.big-container {
    background-color: var(--background);
    min-height: var(--big-container-height);
    width: var(--big-container-width);
    display: grid;
    place-content: center;
}

.big-container .sketch-container {
    min-height: var(--sketch-container-height);
    width: var(--sketch-container-width);
    background: var(--sketch-container-background);
    box-shadow: var(--sketch-container-shadow);
}

.big-container .sketch-container .transparent-squares {
    background: transparent !important;
}

.fade-out {
    opacity: 0;
    animation: fadeOut 1.5s;
    user-select: none;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.fade-in {
    opacity: 1;
    animation: fadeIn 1.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
