@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
    --bg: rgb(29, 29, 29);
    --color: rgb(243, 243, 243);

    /* --bg: #272727; */
    --accent: #80D39B;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg);
    color: var(--color);
    text-align: center;
    font-family: 'Poppins', sans-serif;
    margin: auto;
    min-width: 100vw;
    min-height: 100vh;
    font-size: 1.125em;
}

.container {
    height: 640px;
    /* border: 1px solid blue; */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 2em;
}

#main {
    width: 15em;
    /* margin-bottom: 1em; */
    display: flex;
    flex-flow: column;
    align-items: center;
    /* padding: 3em 0; */
    /* border: 1px solid white; */
}

#main div {
    width: 100%;
    /* border: 1px solid red; */
    padding: .25em 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
}

#main div label {
    text-transform: capitalize;
}

#main div input {
    width: 4em;
    transition: width 250ms;
}

#main div input:focus-visible {
    width: 4.5em;
}

.error {
    outline: 3px solid red;
}

.total {
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: 1.5em;
}

button {
    font-family: inherit;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    padding: 6px 10px;
    /* margin-top: 2em; */
}

.footnote {
    opacity: .3;
    font-size: 11px;
    font-style: italic;
}



/* body, h1{
  margin: 0;
  font-family: 'Raleway', sans-serif;
} */

/* :root{
  --bg: #272727;
  --accent: #80D39B;
} */

.container {
    background-color: var(--bg);
    color: var(--accent);
    /* height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center */
}

#container {
    position: absolute;
    top: .25em;
    right: .25em;
}

.toggle-container {
    width: 3.5em;
    height: 2em;
    border-radius: 5em;
    position: relative;
    border: 2px solid var(--accent);
    color: inherit;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: 300ms;
    cursor: pointer;
}

.toggle-btn {
    height: 1.5em;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--accent);
    transition: 300ms;
    margin-inline: .125em;
}

.right,
.left {
    position: absolute;
    color: var(--bg)
}

.right {
    right: .3625em;
}

.left {
    left: .5em;
}

.flex-end {
    justify-content: flex-end;
}

.lightmode {
    --bg: #80D39B;
    --accent: #272727;
}

@media(min-height: 600px) {
    .container {
        height: 100vh;
        margin: 0;
    }
}

@media(min-height: 650px) {
    .toggle-container {
        width: 4em;
        height: 2.5em;
        border-radius: 5em;
        border: 4px solid var(--accent);
    }

    .toggle-btn {
        height: 1.5em;
        aspect-ratio: 1;
        border-radius: 50%;
        margin-inline: .25em;
    }

    .right {
        right: .5em;
    }
}