h1 {
    margin: 6% auto 2%;
    font-size: 3rem;
    width: fit-content;
    display: block;
}

.input-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    padding: 2% 0%;
    background-color: var(--color5);
    justify-content: space-evenly;
}

.input-container label {
    font-weight: bold;
    margin-bottom: 5px;
}

.pgn-wrapper {
    margin-top: 1rem;
}

.input-container .pgn-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 18%;
}

.input-container textarea {
    background-color: #171717;
    color: #ffffff;
    resize: none;
    padding: 4px;
    width: 100%;
    height: 200px;

    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

#addPgn,
#start-custom-puzzles,
#shuffle,
#reset {
    color: #ffffff;
    padding: 10px 14px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    margin: 10px 2rem 0px;
    font-weight: bold;
    font-size: 1.1rem;
    background-color: var(--color3);

}

#addPgn:hover,
#start-custom-puzzles:hover,
#shuffle:hover,
#reset:hover {
    background-color: var(--color2);
}

#reset {
    display: none;
}

.but-container {
    width: 100%;
    display: flex;
    justify-content: center;

}

#next,
#reattempt {
    background-color: #171717;
    color: #ffffff;
    padding: 10px 14px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    display: none;
    font-weight: bold;
    font-size: 1.1rem;
}

.piece-417db {
    z-index: 1 !important;
}

.pgn-label {
    display: flex;
    justify-content: space-between;
}

.puzzles-result {
    width: 29%;
    min-height: 594px;
    float: right;
    border: 1px solid var(--color5);
    background-color: var(--color5);
    margin-top: 0.9rem;
    display: none;
}

.indi-puzz {
    width: 100%;
    display: flex;
    overflow-y: scroll;
    margin-top: 1rem;
    padding: 0px 0.5rem;
    height: 260px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

#puzzIndex,
#puzzTime {
    width: 50%;
    list-style: none;
}

#puzzIndex li,
#puzzTime li {
    border-bottom: 1px solid #262626;
    text-align: center;
    margin: 8px 0px;
}

.total-container h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.total-container h3 {
    text-align: center;
    margin-bottom: 1rem;
}

#space {
    width: 0px;
    display: inline-block;
    position: relative;
    right: 0%;
}

#board {
    height: 600px;
    width: 600px;
}

#board_wrapper {
    position: relative;
    margin-left: 26.8%;
}

#primary_canvas,
#drawing_canvas,
#board {
    position: absolute;
    top: 0px;
    left: 0px;
    margin-top: 0.8rem;
}

#primary_canvas,
#drawing_canvas {
    opacity: 0.8;
    padding: 2px;
}

.black-3c85d {
    background-color: #7ac142 !important;
}

.white-1e1d7 {
    background-color: #ffffff !important;
}

.board-b72b1 {
    border-color: #000000;
}

.selected-sqaure {
    box-shadow: inset 0 0 74px 74px rgba(0, 255, 0, 0.7) !important;
}

.highlight1-32417,
.highlight2-9c5d2 {
    box-shadow: inset 0 0 74px 74px rgba(0, 255, 0, 0.7) !important;
}

.legal-move::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 25px;
    background-color: #243B0D;
    border-radius: 50%;
    opacity: 0.7;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.legal-move-capture::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 70px;
    background-color: rgba(36, 59, 13, 0.5);
    border-radius: 50%;
    opacity: 0.7;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.promotion-pieces {
    display: none;
    flex-direction: column;
    position: relative;
    left: 10%;
    top: -510px;
    width: fit-content;
}

.remove-fen {
    cursor: pointer;
}

#next {
    margin: 10px 0px 4rem 64.1vw;
    position: relative;
    top: 2rem;
}

#reattempt {
    margin: 10px 0px 4rem 26.8vw;
    position: relative;
    top: 3rem;

}

#woodpacker-setting {
    margin-left: 27vw;
    cursor: pointer;
}

.settings {
    display: none;
    position: fixed;
    top: 50%;
    z-index: 1;
    background-color: #121212;
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.2rem;
    padding: 1rem 2rem;
    left: 50%;
    width: 30%;
    transform: translate(-50%, -50%);
    box-shadow: 0px 0px 20px var(--color3);
}

#settings-close,
#flip {
    cursor: pointer;
}

#flip {
    rotate: 90deg;
}

.settings select {
    margin-left: 18px;
    width: 40%;
    font-size: 1.1rem;
}

#pieces-theme {
    margin-left: 62px;
}

.settings button {
    background-color: var(--color3);
    border: none;
    outline: none;
    padding: 0.6rem 1rem;
    font-weight: bold;
    border-radius: 6px;
    border: 2px solid var(--color3);
}

.settings button:hover {

    cursor: pointer;
    background-color: #121212;
    color: #ffffff;
}

.note {
    font-size: 0.7rem;
    color: #a8a8a8;
    margin-top: 10px;
}

.attempt-span {
    color: var(--headingColor);
}

/* mobile  */
@media only screen and (max-device-width: 480px) {
    h1 {
        margin-top: 23%;
        font-size: 2rem;
    }

    #addPgn,
    #start-custom-puzzles,
    #shuffle,
    #reset {
        margin: 10px 6px;
    }

    .input-container .pgn-wrapper {
        width: 30%;
    }

    #board_wrapper {
        margin-left: 0%;
    }

    #board,
    #primary_canvas,
    #drawing_canvas {
        width: 100% !important;
        height: 100% !important;
    }

    .puzzles-result {
        width: 100%;
        min-height: unset;
    }

    #next {
        margin: 1rem 0rem 3rem 1rem;
    }

    #reattempt {
        margin: 1rem 0rem 3rem 1rem;
        top: 1.5rem;
    }

    .puzzles-result h1 {
        margin-top: 10%;
    }

    .promotion-pieces {
        flex-direction: row;
        top: 0px;
        left: 0%;
        margin: 0% auto;
    }

    .indi-puzz {
        padding: 0%;
        height: 180px;
    }

    .logo-div {
        position: absolute;
    }

    .settings {
        top: 60%;
        width: 85%;
    }

    #woodpacker-setting {
        margin-left: 0%;
    }

    .legal-move::after {
        width: 15px;
        height: 15px;
    }

    .legal-move-capture::after {
        width: 40px;
        height: 40px;

    }
}

/* TABELT */
@media (min-width: 481px) and (max-width: 1024px) {
    #woodpacker-setting {
        margin-left: 2%;
    }

    .settings {
        width: 60%;
    }

    h1 {
        margin-top: 12%;
        font-size: 2rem;
    }

    #board_wrapper {
        margin-left: 0%;
    }

    #board,
    #primary_canvas,
    #drawing_canvas {
        width: 100% !important;
        height: 100% !important;
    }

    .puzzles-result {
        width: 100%;
        min-height: unset;
    }

    .promotion-pieces {
        flex-direction: row;
        top: 0px;
        left: 0%;
        margin: 0% auto;
    }

    #next,
    #reattempt {
        margin: 1rem 0rem 1rem 2rem;
    }
}