html {
    scroll-behavior: smooth;
}

body {
    text-align: center;
    font-family: "Varela Round", sans-serif;
    transition: 1s;
    margin-top: 50px;
    margin-bottom: 35px;
}

body.fourthofjuly {
    /* background: rgb(255,255,255);
    background: linear-gradient(230deg, rgba(255,255,255,1) 0%, rgba(52,89,149,1) 49%, rgba(233,25,15,1) 100%); */
    background: #E9190F;
    background: repeating-linear-gradient(to top, #E9190F 0%, #345995 38%, #FFFFFF 100%);
    height: 100%;
    margin: 0;
    margin-top: 50px;
    margin-bottom: 35px;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.fourthofjuly main {
    margin: 5px;
}

body.Christmas {
    /* background: rgb(255,255,255);
    background: linear-gradient(230deg, rgba(255,255,255,1) 0%, rgba(52,89,149,1) 49%, rgba(233,25,15,1) 100%); */
    background: #E9190F;
    background: repeating-linear-gradient(to top, #E9190F 0%, #4caf50 38%, #FFFFFF 100%);
    height: 100%;
    padding: 0px;
    margin: 0;
    margin-top: 50px;
    margin-bottom: 35px;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.row.solution {
    background-color: #fefefe;
    /* background-color: #283618;
    border: 2px solid #606C38; */
    border: none;
    border-bottom: 1px solid #bdbdbd;
    /* color: #fafafa; */
    color: #212121;
    height: 30px;
    width: 100%;
    z-index: 999;
    position: fixed;
    top: 0px;
    left: 0px;
    right: 0px;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.menuBtn {
    height: 25px;
}

.row.guess * {
    text-transform: uppercase;
}

.graph.n0 {
    width: 5%;
}
.graph.n1 {
    width: 10%;
}
.graph.n2 {
    width: 15%;
}

.graph.n3 {
    width: 20%;
}

.graph.n4 {
    width: 25%;
}

.graph.n5 {
    width: 30%;
}

.graph.n6 {
    width: 35%;
}

.graph.n7 {
    width: 40%;
}

.graph.n8 {
    width: 45%;
}

.graph.n9 {
    width: 50%;
}

.graph.n10 {
    width: 55%;
}

.row {
    padding: 5px;
    border: 2px solid #212121;
    width: 75%;
    margin: auto;
    transition: 2s;
}

.row.guess {
    letter-spacing: 20px;
}

div.scrollContainer {
    overflow: auto;
    max-height: 63vh;
    scroll-behavior: smooth;
}

.row.solution .text {
    width: 100%;
}

.row.solution .text, .row.solution .text * {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.row.solution * {
    display: none;
}

.row.solution.open {
    text-transform: uppercase;
}

.row.solution.open * {
    display: flex;
}

.keyboard {
    margin-top: 20px;
}

.keyboard button {
    background-color: #E0E0E0;
    border: none;
    border-radius: 10px;
    padding: 1em;
    margin: 1px;
    font-family: 'Maven Pro', 'Open Sans', sans-serif;
    font-weight: bold;
    text-transform: uppercase;
    color: #212121;
}

.keyboard button i {
    font-size: 1em;
}

.keyboardRow {
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    margin: 5px;
}

button.classicx {
    position: absolute;
    top: 5px;
    right: 5px;
    border: none;
    background-color: transparent;
    color: #212121;
    cursor: pointer;
}

button.classicminus {
    position: absolute;
    top: 5px;
    right: 40px;
    border: none;
    background-color: transparent;
    color: #212121;
    cursor: pointer;
}

button.classicx::before {
    font-family: "Material Icons";
    content: "close";
    font-size: 30px;
}

button.classicminus::before {
    font-family: "Material Icons";
    content: "minimize";
    font-size: 30px;
}

.playedArea {
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.playedArea div {
    margin: 5px;
}

.graphPeice {
    display: flex;
    flex-direction: row;
    justify-content: start;
}

.row.guess.notActive {
    opacity: 0.4;
}

button {
    background-color: #BC6C25;
    border: none;
    padding: 10px;
    border-radius: 20px;
    margin: 5px;
    color: #fafafa;
    cursor: pointer;
}
body.fourthofjuly button:not(.key, .classicx, .btn, .correct, .inword, .question) {
    background-color: #E9190F;
    border: none;
    padding: 10px;
    border-radius: 20px;
    margin: 5px;
    color: #fafafa;
    cursor: pointer;
}

.graph {
    text-align: right;
    width: 50%;
    background-color: gray;
    color: #fafafa;
    margin: 5px;
    padding: 3px;
    font-weight: bold;
}

.graph.active {
    background-color: #4caf50;
}

@media screen and (min-width: 500px) {
    .keyboard button {
        font-size: 1.1em;
    }
}
@media screen and (max-width: 500px) {
    .row {
        width: 95%;
    }
}

.answers .peg {
    border: 1px solid #212121;
    border-radius: 20px;
    width: 10px;
    height: 10px;
    display: inline-block;
}

.answers {
    flex-wrap: wrap;
    display: inline-flex;
    width: 25px;
}

.row.guess h1 {
    display: inline-block;
}

.answers .peg.correct {
    border: 1px solid #b71c1c;
    background-color: #e53935;
}

.answers .peg.inword {
    border: 1px solid #757575;
    background-color: #bdbdbd;
}

.key.correct, button.correct, #alert.correct {
    background-color: #b71c1c !important;
}

.key.question, button.question, #alert.question {
    background-color: #fbc02d !important;
    color: #212121 !important;
}

.key.inword, button.inword, #alert.inword {
    background-color: #757575 !important;
}

.row.guess h1 span.correct {
    color: #b71c1c !important;
}

.row.guess h1 span.question {
    color: #fbc02d !important;
}

.row.guess h1 span.inword {
    color: #757575 !important;
}

.row.guess h1, button.key {
    user-select: none;
}

#alert a {
    color: #fafafa;
}


div#statusAlert.correct {
    background-color: #4caf50 !important;
}

div#statusAlert.wrong {
    background-color: #b71c1c !important;
}

div#statusAlert.correct::before {
    content: "check_circle";
    font-family: "Material Icons";
    color: #1b5e20;
    font-size: 20px;
    vertical-align: middle;
}

div#statusAlert.correct::after {
    content: " You Won!";
    color: #1b5e20;
    font-size: 20px;
}

div#statusAlert.wrong::before {
    content: "cancel";
    font-family: "Material Icons";
    color: #c27f7f;
    font-size: 20px;
    vertical-align: middle;
}

div#statusAlert.wrong::after {
    content: " You Lost";
    color: #fafafa;
    font-size: 20px;
}

.row.solution .text h1 * {
    margin-left: 5px;
}

.overlay {
    background-color: #21212169;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    justify-content: center;
    align-items: center;
}

.message {
    background-color: #fafafa;
    border-radius: 20px;
    padding: 5px;
    width: 90%;
    height: 80%;
    overflow: auto;
    position: relative;
}

.btn {
    background-color: #BC6C25;
    color: #fafafa;
    border: none;
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
}

.row.guess h1, .row.guess h2, .row.guess h3 {
    display: inline-block;
}

body:not(.bigLetters) .row.guess.notActive1 h1 {
    font-size: 20px;
}

body:not(.bigLetters) .row.guess.notActive1 .answers {
    width: 20px;
}

body:not(.bigLetters) .row.guess.notActive1 .answers .peg {
    width: 8px;
    height: 8px;
}

body:not(.bigLetters) .row.guess.notActive h1 {
    font-size: 15px;
}

body:not(.bigLetters) .row.guess.notActive .answers {
    width: 15px;
}

body:not(.bigLetters) .row.guess.notActive .answers .peg {
    width: 5px;
    height: 5px;
}

body.fourthofjuly .btn:not(.key, .classicx, .btn, .correct, .inword, .question) {
    background-color: #E9190F;
    color: #fafafa;
    border: none;
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
}

body.fourthofjuly #alert {
    background: repeating-linear-gradient(to left, #E9190F 0%, #345995 38%, #FFFFFF 100%);
}

#messageSendSpot {
    border: none;
    border-radius: 20px;
    outline: 1px solid #bdbdbd;
    padding: 10px;
    width: 80%;
}

:target {
    display: flex !important;
    z-index: 99999;
}

input[type=checkbox] {
    display: none;
}

input[type=checkbox] + label::before {font-family: "Material Icons";content: "toggle_off";font-size: 64px;}
input[type=checkbox] {
    display: none;
}

input[type=checkbox]:checked + label::before {font-family: "Material Icons";content: "toggle_on";font-size: 64px;}

body.darkmode {
    background: #212121;
    color: #fafafa;
}

body.darkmode .peg {
    border: 1px solid #fafafa;
}

body.darkmode .row.guess {
    border: 1px solid #fafafa;
}

body.darkmode .overlay .message {
    background-color: #212121;
    border: 1px solid #fafafa;
}

body.darkmode .classicx {
    color: #fafafa !important;
}

body.darkmode #alert {
    background-color: #fafafa !important;
    color: #212121 !important;
}

body.darkmode #alert a {
    color: #212121;
}

@media screen and (prefers-color-scheme: dark) {
    body {
        background-color: #212121;
        color: #fafafa;
    }
    
    .peg {
        border: 1px solid #fafafa !important;
    }
    
    .row.guess {
        border: 1px solid #fafafa;
    }
    
    .overlay .message {
        background-color: #212121;
        border: 1px solid #fafafa;
    }
    
    .classicx {
        color: #fafafa !important;
    }
    
    #alert {
        background-color: #fafafa !important;
        color: #212121 !important;
    }

    #alert a {
    color: #212121;
}
}

@media screen and (max-width: 700px) {
    .row.solution button {
        display: none !important;
    }

    .row.solution .menuBtn {
        display: flex !important;
    }
}

@media screen and (max-width: 700px) {
    .keyboard button {
        border-radius: 5px;
        padding: .8em;
    }
}

/* COLOR PALLETE USED FOR NORMAL MODE: https://coolors.co/606c38-283618-fefae0-dda15e-bc6c25 */
/* COLOR PALLETE USED FOR FOURTH OF JULY MODE (MADE BY MYSELF): https://coolors.co/ffffff-345995-e9190f */
/* COOL COLOR PALLETE: https://coolors.co/582f0e-7f4f24-936639-a68a64-b6ad90-c2c5aa-a4ac86-656d4a-414833-333d29 */