@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');

:root {
    --bg--color: rgba(214, 214, 214);
    --bt--bg: rgb(0, 0, 0);
    --box--shadow--color: #474343;
    --dark--mode: #474343;
    --white: #fff;
}


html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background-color: var(--bg--color);
    scroll-behavior: smooth;
    transition: .2s;
}

body.dark {
    background-color: var(--box--shadow--color);
}



header {
    width: 62rem;
    height: 3.5rem;
    gap: 1rem;
    margin-top: 1rem;
    margin-inline: 9rem;
}

.theme-mode {
    width: 62rem;
    height: 3.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.color-picker {
    width: 5rem;
    height: 2rem;
    margin-left: 2.5rem;
    border: none;
    cursor: pointer;
    outline: none;
}

.toggle-container {
    width: 8rem;
    height: 3rem;
    border-radius: 20px;
    background-color: var(--white);
    position: relative;
    padding-left: 1rem;
    margin-left: 15rem;
    cursor: pointer;
}

.toggle-container.dark {
    background-color: #333;
}

.toggle-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 50px;
    background: black;
    position: absolute;
    left: 1;
    top: 0.5rem;
}

.toggle-btn.dark {
    left: 6rem;
    background-color: #fff;
}

.container {
    height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem;
}

.display {
    width: 62rem;
    height: 30dvh;
    border: none;
    padding: 1rem;
    transition: 0.2s;
    outline: none;
    font-size: 26px;
    box-shadow: 7px 7px 10px var(--box--shadow--color),
        -5px -5px 10px var(--white);
}

.display.dark {
    background-color: var(--dark--mode);
    color: var(--white);
    box-shadow: 7px 7px 10px #fff0f0, -1px -1px 2px var(--box--shadow--color);
}

.keys-container {
    order: 2;
    background-color: transparent;
    border-radius: 10px;
    overflow: hidden;
    padding: 0 1rem 1rem 0.5rem;
}

.keys-container.dark {
    background-color: var(--box--shadow--color);
}

.row {
    width: 100%;
    height: 3.75rem;
}

.one,
.two,
.three,
.four,
.five {
    margin: 10px 0 0 0;
}

button {
    all: unset;
    color: black;
    width: 3.438rem;
    height: 3.438rem;
    border: none;
    background: var(--bg--color);
    box-shadow: 7px 7px 10px var(--box--shadow--color), -5px -5px 10px var(--white);
    font-size: 20px;
    font-family: "Nunito", sans-serif;
    border-radius: 20px;
    outline: none;
    margin-left: 0.5rem;
    text-align: center;
    cursor: pointer;
    transform: translate(2px, 5px);
    transition: all 0.03s ease-in-out;
}

button:hover {
    background-color: rgb(133, 127, 127);
}

button.dark {
    box-shadow: 7px 7px 10px #fff0f0, -1px -1px 2px var(--box--shadow--color);
    background-color: #333;
    color: var(--white);
}

button.dark:hover {
    background-color: var(--white);
    color:  rgb(12, 1, 1);
}



.space {
    width: 25rem;
}

.other {
    width: 5.125rem;
}

.shift {
    width: 9.375rem;
}

.enter {
    width: 8.438rem;
}

.caps {
    width: 7rem;
    position: relative;
}

.caps.activated {
    text-transform: uppercase;
}

.caps-on-indicator {
    width: 0.4rem;
    height: 0.4rem;
    background: green;
    position: fixed;
    border-radius: 50px;
    top: 0.6rem;
    right: 0.5rem;
    display: none;
}

.caps-on-indicator.dark {
    background-color: #e71515;
}

.backspace {
    width: 7.188rem;
}

.slash {
    width: 5.313rem;
}

.tab {
    width: 5.313rem;
}