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

html {
    font-size: 16px;
}

body {
    background-color: #266643;
    display: grid;
    place-content: center;
    min-height: 100vh;
    font-family: system-ui, sans-serif;
}

#canvas {
    box-shadow: 0 0 1rem 0 #0008;
}

#ui {
    width: 20%;
    min-width: 204px;
    height: 640px;
    background-color: #2b2b2b;
    border: 2px solid #111111;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 6%;
    border-radius: .25rem;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 2rem;
    user-select: none;
    color: #fcfcfc;
}

#playing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#right-ui {
    width: 20%;
    min-width: 204px;
    height: 640px;
    background-color: #2b2b2b;
    border: 2px solid #111111;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 6%;
    border-radius: .25rem;
    padding: .25rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    font-size: 2rem;
    user-select: none;
    color: #fcfcfc;
}

#title-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.name-wrapper {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

input[type="text"] {
    width: 90%;
    height: 2.5rem;
    border-radius: .25rem;
    border: none;
    background-color: #161616;
    color: #fcfcfc;
    font-size: 1.5rem;
    padding: 0 .5rem;
}

.row-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem
}

.dropdown {
    height: 2.5rem;
    font-size: 1.5rem;
    border-radius: .25rem;
    background-color: #161616;
    color: #fcfcfc;
    text-align: center;
    cursor: pointer;
}

#time-mode-dropdown {
    width: 60px;
}

.startish-btn {
    padding: 1rem;
    width: 80%;
    margin-top: 1rem;
    border: 2px solid #640603;
    border-radius: .35rem;
    font-size: 1.5rem;
    color: #fcfcfc;
    background-color: #ca0300;
    cursor: pointer;
}

.backish-btn {
    width: 60%;
    padding: .5rem;
    font-size: 1rem;
    border-radius: .35rem;
    background-color: #141414;
    color: #fcfcfc;
    border: 2px solid #777;
    cursor: pointer;
}

button:active {
    transform: scale(.95);
}

#move-list-section {
    width: 100%;
    height: 50%;
    background-color: #161616;
    border-radius: .25rem;
    padding: 0 .4rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}

#move-list-section p {
    font-size: 1.25rem;
}

#move-list {
    font-size: .85rem;
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .5rem ;
    overflow: auto;
}

.move-span {
    display: flex;
    gap: .4rem;
    background-color: #0a0a0a;
    padding: .25rem;
    border-radius: 2px;
}

.white-span {
    font-weight: 600;
}

#time-section {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    color: #000;
    gap: 1rem;
}

.color-time-wrapper {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.color-time {
    background-color: #fafafa;
    width: 40%;
    display: grid;
    place-content: center;
    border-radius: .25rem;
}

#restart-btn {
    padding: 1rem;
    background-color: #fff;
    border-radius: .5rem;
    font-size: 1.5rem;
    margin-top: 1rem;
    cursor: pointer;
}

#turn {
    font-size: 3.5rem !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

#practice-section {
    display: flex;
    flex-direction: column;
    justify-content: space-around   ;
    height: 100%;
    width: 100%;
}

.practice-icons {
    width: 80%;
    align-self: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    place-content: center;
    place-items: center;
    background-color: #afafaf;
    border-radius: .25rem;
}

.practice-icon {
    cursor: pointer;
}

#current-practice-icon {
    width: 4.5rem;
    height: 4.5rem;
    background-color: #afafaf;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: .25rem;
    outline: 4px solid #121212;
}

#current-practice-icon img {
    width: 100%;
}

img {
    -webkit-user-drag: none;
}

.hidden {
    display: none !important;
}

@media(max-width: 1340px) {
    #ui, #right-ui {
        display: none;
    }
}