:root {
    --title-color: rgb(54, 85, 1);
    --body-color: rgb(0, 187, 255);
    --main-color: rgb(173, 215, 230);
    --modal-background: rgba(0, 0, 0, 0.2);
    --info-background: rgb(255, 255, 255);
    --text-shadow: drop-shadow(0em 0em 0.25em rgba(0, 0, 0, 0.2));
    --modal-border: 0.5em solid rgba(255, 182, 193, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 16px;
    font-family: 'Courier New', Courier, monospace;
}

body {
    margin: auto;
    height: 100%;
    width: 100%;
    background-color: var(--body-color);
    position: relative;
}

main {
    height: 100%;
    width: 90%;
    margin: auto;
    position: relative;
    border-radius: 10%;
    background-color: var(--main-color);
    box-shadow: 0.5em 0.5em 2em rgba(0, 0, 0, 0.2);
}

header {
    margin: 0em 0.5em 0.5em 0.5em;
    padding-top: 1em;
    border: 0.5em;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
}

footer {
    margin: 1em;
}

h1, h2, h3 {
    text-transform: capitalize;
}
h2 {
    font-size: 1.8em
}

svg {
    filter: drop-shadow(0.5em 0.5em 2em rgba(0, 0, 0, 0.2));
}
#mascot-1 {
    margin: 0em 4.7em 0em auto;
    transform: scale(-1,1);
}
#mascot-1-branch {
    display: flex;
    justify-content: right;
    margin: -10em -4em 2em auto;
    opacity: 0.8;
}
#mascot-2 {
    margin: 0em 1em 1.6em 4.7em;
}
#mascot-2-branch {
    margin: -6em auto 2em -7em;
    opacity: 0.8;
}

#birdle-title {
    align-self: center;
    font-weight: bolder;
    color: var(--title-color);
    filter: var(--text-shadow);
}
#birdle-title > sub {
    font-size: 3em;
}
#birdle-title > sup {
    font-size: 3em;
}

.modal-header {
    align-self: flex-end;
    margin: -2em 1em 0.2em 0.5em;
}
.modal-button-color {
    background-color: inherit;
    border: none;
    outline: none;
    cursor: pointer;
}
.modal-container {
    display: none;
    position: absolute;
    z-index: 1;
    justify-content: center;
    align-items: center;
    padding: 1em auto 1em;
    top: 0%;
    left: 0%;
    height: 100%;
    width: 100%;
    background-color: var(--modal-background);
}

#smiley {
    transform: translate(0%, 25%);
    filter: var(--text-shadow);
}

#rules {
    cursor: pointer;
}
.rules-modal {
    margin-bottom: 20em;
    height: 35em;
    width: 35em; 
    border: var(--modal-border);
    background-color: var(--info-background);
}
#rules-close {
    font-size: 1.5em;
    height: 2em; 
    width: 1.5em;  
    cursor: pointer;
}
#rules-text {
    margin: 1em 4em 1em;
}
ul > li {
    margin: 2em auto 2em;
}

#score {
    cursor: pointer;
}
.score-modal {
    margin-bottom: 20em;
    height: 35em;
    width: 35em;
    border: var(--modal-border);
    background-color: var(--info-background);
}
#score-close {
    font-size: 1.5em;
    height: 2em;
    width: 1.5em;
    cursor: pointer;
}

#played {
    grid-area: p;
    font-size: 3em;
    font-weight: bolder;
}
#win {
    grid-area: w;
    font-size: 3em;
    font-weight: bolder;
}
#current {
    grid-area: c;
    font-size: 3em;
    font-weight: bolder;
}
#max {
    grid-area: m;
    font-size: 3em;
    font-weight: bolder;
}
#played-text-one {
    grid-area: pto;
    text-transform: capitalize;
    font-weight: 500;
    font-size: 1.5em;
}
#played-text-two {
    grid-area: ptt;
    text-transform: capitalize;
    font-weight: 500;
    font-size: 1.5em;
}
#win-text {
    grid-area: wt;
    text-transform: capitalize;
    font-weight: 500;
    font-size: 1.5em;
}
#current-text-one {
    grid-area: cto;
    text-transform: capitalize;
    font-weight: 500;
    font-size: 1.5em;
}
#current-text-two {
    grid-area: ctt;
    text-transform: capitalize;
    font-weight: 500;
    font-size: 1.5em;
}
#max-text-one {
    grid-area: mto;
    text-transform: capitalize;
    font-weight: 500;
    font-size: 1.5em;
}
#max-text-two {
    grid-area: mtt;
    text-transform: capitalize;
    font-weight: 500;
    font-size: 1.5em;
}
#score-grid {
    margin: 1em 5em 1em;
    display: grid;
    column-gap: 1em;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: auto;
    grid-template-areas: 
        "p w c m"
        "pto wt cto mto"
        "ptt . ctt mtt";
    justify-content: center;
    align-items: center;
    justify-items: center;    
}

.guess-tally {
    margin: 2em 3em 2em;
}
.guess-tally > div {
    margin: 0.25em;
    text-transform: capitalize;
}
.guess-tally > div > inline {
    margin-left: 2em;
}
.tally-text {
    font-size: 1.2em;
}

#share-area{
    display: flex;
    flex-direction: row;
    justify-content: center;
    margin: 5em auto;
}
#share {
    padding: 0.5em;
    cursor: pointer;
}

.hint-section {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    flex-direction: row;
    padding-top: 1em;
    color:rgb(34, 52, 245);
    font-weight: 700;
}

.hint-section>div {
    cursor: pointer;
    text-transform: capitalize;
}

.hint-display-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
    margin: 1em;
}

#display-text {
    margin: 0em 1em;
    text-transform: capitalize;
    font-weight: 700;
    font-size: 1.7em;
    border-radius: 10%;
    filter: var(--text-shadow);
}

#aud {
    margin: 1em;
    border-radius: 10%;
    background-color: lightblue;
    box-shadow: 0 0.15em 0.15em rgba(0, 0, 0, 0.2);
}

#img {
    height: 20em;
    margin: 1em;
    box-shadow: 0 0.15em 0.15em rgba(0, 0, 0, 0.2);
}

.guess-section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin: 1em auto 1em;
    text-transform: capitalize;
}

#guess-record {
    display: flex;
    position: relative;
    margin: 7.5em auto 9em;
    padding-top: 1em;
    flex-direction: column;
    justify-content: center;  
    border: none;
    outline: none;
    opacity: 1;
     
}
#cloud-background {
    position: relative;
}
#cloud-one {
    position: absolute;
    height: 30em;
    /*top: -3.5%;*/
    /* top: -50%; */
    /* left: -71%; */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: var(--text-shadow);
}

#guess-title {
    margin-top: 1em;
    filter: var(--text-shadow);
    margin-right: 33.5em;
}

#guess {
    border: 0.1em solid rgba(1, 85, 17, 0.2);
    box-shadow: 0.25em 0.15em 0.15em rgba(0, 0, 0, 0.2);
    margin: auto auto 1em;
}

.word-bank {
    /* margin: 2em 3em 0.5em; */
    margin: auto;
    font-weight: 400;
    justify-content: flex-start;
}
.word-bank > * {
    margin: auto auto 0.5em;
}

.submit-section {
    display: flex;
    justify-content: center;
}

#submit {
    margin: 1em 1em 3em;
    border: 1em;
    border-radius: 5%;
    padding: 1em;
    background-color: yellow;
    box-shadow: 0 0.15em 0.15em rgba(0, 0, 0, 0.2);
    text-transform: capitalize;
    cursor: pointer;
}

.pass-section {
    display: flex;
    justify-content: center;
}

#pass {
    margin: 1em 1em 3em;
    border: 1em;
    border-radius: 5%;
    padding: 1em;
    background: linear-gradient(90deg, red 20%,lightblue 50%);
    box-shadow: 0 0.15em 0.15em rgba(0, 0, 0, 0.2);
    text-transform: capitalize;
    cursor: pointer;
}

#winner-modal {
    background: rgba(0,0,0,0.4);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    overflow: auto;
    display: none;
}
#winner-modal-textbox {
    border-radius: 30%;
    margin: 15% auto;  
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    outline: none;
}
#winner-message {
    padding: 5%;
    background: linear-gradient( rgb(34, 52, 245), white,  rgb(104, 104, 104));
    border: none;
    outline: none;
    border-radius: 10%;
    color: black;
    text-transform: capitalize;
    font-size: 2em;
    font-weight: bolder;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    box-shadow:  0 0.15em 0.15em rgba(0, 0, 0, 0.2);
}

button:active {
    transform: scale(1.1)
}

/*
.branch {
    height: 100px;
    width: 4px;
    background-color: brown;
    transform: rotate(45deg);
    position: relative;
    left: 50px;
    top: 50px;
  }
  .branch:before {
    content: "";
    height: 80px;
    width: 4px;
    background-color: brown;
    position: absolute;
    top: 20px;
    left: -2px;
  }
  .branch:after {
    content: "";
    height: 60px;
    width: 4px;
    background-color: brown;
    position: absolute;
    top: 40px;
    left: -4px;
    transform: rotate(-45deg);
  }
  .leaf {
    height: 50px;
    width: 50px;
    border-radius: 25px 25px 0 0;
    background-color: green;
    transform: rotate(45deg);
    position: relative;
    top: -25px;
    left: 25px;
  }
  .leaf:before {
    content: "";
    height: 30px;
    width: 30px;
    border-radius: 15px 15px 0 0;
    background-color: green;
    position: absolute;
    top: 10px;
    left: -15px;
    transform: rotate(-45deg);
  }
  .leaf:after {
    content: "";
    height: 20px;
    width: 20px;
    border-radius: 10px 10px 0 0;
    background-color: green;
    position: absolute;
    top: 20px;
    left: -10px;
    transform: rotate(45deg);
  }
  */

#branch-leaf {
    height: 10em;
    width: 10em;
    position: absolute;
}

#canvas {
    display: none;
    background-color: white;
    border: 0.25em solid #000000;
}
@media (max-width: 1058px) {
    html, body {
        overflow-x: hidden;
    }
    #mascot-1 {
        margin: 0em 7.7em 0em auto;
    }
    #mascot-1-branch {
        margin: -10em -2em auto auto
    }
    .hint-display-section {
        flex-wrap: nowrap;
    }
    #img {
        height: auto;
        width: 100%;
        margin: 1em auto 1em;
    }
    #guess-title {
        margin: 0;
    }
    #guess {
        margin: 1em;
    }
    #guess > input {
        width: 100% !important;
    }
    #guess-record > input {
        width: 100% !important;
    }
}