@import url('https://fonts.googleapis.com/css2?family=Bevan&family=Libre+Franklin:wght@400;700&display=swap');

:root {
    --green: #538d4e;
    --yellow: #b59f3b;
    --gray: #3a3a3c;
    --background: #121213;
    --darkgray: #202020;
    --darkred: #9e2020;
}

body {
    background-color: var(--background);
    font-family: 'Libre Franklin', Verdana, Geneva, Tahoma, sans-serif;
    font-weight: bold;
    margin: 0px;
}

.header {
    margin: 0px;
    margin-bottom: 30px;
    border-bottom: 1px solid #3a3a3c;
    height: 65px;
}

.header h1 {
    font-family: 'Bevan';
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    padding-bottom: 15px;
    margin: 0px;
}

.switch-container {
    width: 100%;
    text-align: center;
}

.switch {
    display: inline-block;
    position: relative;
    top: -9px;
}

.switch input[type="checkbox"] {
    opacity: 0;
    height: 0px;
    width: 0px;
    position: absolute;
    top: 0;
    z-index: 1;
    margin: 0px;
}

.switch-inner {
    color: #fff;
    margin: 0px;
    width: 160px;
    height: 40px;
    background: var(--darkgray);
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
    display: block;
    cursor: pointer;
}

.switch-inner:before {
    content: "";
    position: absolute;
    top: 7px;
    right: 20px;
    line-height: 26px;
}

.switch-inner:after {
    content: attr(data-off);
    width: 80px;
    height: 26px;
    line-height: 26px;
    background: var(--green);
    position: absolute;
    left: 2px;
    top: 2px;
    text-align: center;
    transition: all 0.3s ease;
    padding: 5px 0px;
}

.switch input[type="checkbox"]:checked + .switch-inner:after {
    content: attr(data-on);
    left: 78px;
    background: #3c3c3c;
}

.switch input[type="checkbox"]:checked + .switch-inner:before {
    content: "";
    right: auto;
    left: 20px;
}

.hard-mode-container {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hard-mode-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
}

.hard-mode-toggle input {
    position: absolute;
    left: 0;
    top: 0;
    width: 25px; 
    height: 25px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.hard-mode-checkmark {
    display: inline-block;
    width: 25px;
    height: 25px;
    background-color: var(--darkgray);
    border: 2px solid var(--darkgray);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hard-mode-toggle input:checked + .hard-mode-checkmark,
.hard-mode-container input:checked ~ .hard-mode-checkmark {
    background-color: var(--green);
}

.hard-mode-checkmark::after {
    content: "";
    display: block;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg) translateY(-1px);
    transform-origin: center;
    opacity: 0;
}

.hard-mode-toggle input:checked + .hard-mode-checkmark::after {
    opacity: 1;
}

.hard-mode-container > span {
    color: #fff;
    user-select: none;
    margin: 0;
    align-self: center;
    line-height: 1;
}

.hard-mode-spacer {
    padding-bottom: 25px;
}

ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    row-gap: 5px;
    align-items: center;
    flex-direction: column;
}

.word {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: 70px;
    grid-template-columns: repeat(5, 70px);
    column-gap: 5px;
}

.letter {
    display: inline-flex;
    font-weight: bold;
    text-align: center;
    font-size: 2rem;
    justify-content: center;
    align-items: center;
    text-transform: uppercase;

    background-color: var(--gray);
    color: #ffffff;

    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.green {
    background-color: var(--green);
}

.yellow {
    background-color: var(--yellow);
}

.buttons {
    width: 300px;
    margin: auto;
    display: flex;
    justify-content: center;
    gap: 5px;
}

.control-btn {
    border: 0px;
    color: #fff;
    text-align: center;
    padding-top: 10px;
    padding-bottom: 10px;
    flex: 1;
    font-size: 16px;
    margin: auto;
    margin-bottom: 15px;
    cursor: pointer;
}

.next-word {
    background-color: var(--darkgray);
}

.reset {
    background-color: var(--darkred);
}

.container {
    text-align: center;
}
