* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Fenwick', sans-serif;
    font-size: 30px;
    text-align: center;
    color: #3e4244;
}

body {
    background-color: #ffe7b8;
    overflow: hidden; /* Hide scrollbars */
}

h3 {
    color: #005494;
    margin: 0px;
    font-family: fenwick,sans-serif;
    font-weight: 700;
    font-style: normal; 
}

/* Transparent background behind pop-up */
#popupOverlayHTML {
    display: flex;
    visibility: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: rgba(62, 66, 68, 0.5);
    width: 100%;
    height: 100%;
    opacity: 0.8;
    z-index: 100;
}

/* styles for actual pop-up container div */
#popupHTML {
    visibility: hidden;
    top: 50%;
    left: 50%;
    position: absolute;
    background: #9ad5ea;
    width: 500px;
    height: 275px;
    margin-left: -250px; /*Half the value of width to center div*/
    margin-top: -138px; /*Half the value of height to center div*/
    z-index: 200;
    border-radius: 25px 0px 25px 0px;
    border: 7px solid #114064;
    text-align: center;
}

/* styles for div inside pop-up container div */
.popupcontent {
    display: flex;
    width: 85%;
    height: auto;
    /* margin-top: -25px; */
    margin: 0 auto;
    justify-content: center;
    flex-direction: column;
    flex-wrap: nowrap;
    padding: 0px;
    text-align: center;
}

/* Holds the div that holds the X to close winning pop up */
.popupXContainer {
    width: 100%;
    height: 55px;
    flex-wrap: nowrap;
    flex-direction: row;
    padding: 0;
    margin: 0;
}

/* styles for the X to close pop-up */
#popupcloseHTML {
    width: 100%;
    height: 55px;
    padding: 5px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    justify-content: center;
    max-width: 100%;
    order: 1;
    margin: -15px 0px;
}

/* styles for header in the winning pop-up */
.popupcontent h1 {
    padding: 0px;
    margin: 7px;
    color: #005494;
    order: 2;
}

/* div containing buttons in winning pop-up */
.popupButtons {
    display: flex;
    width: 100%;
    margin: 0px auto;
    margin-top: -2%;
    padding: 0px;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: center;
    order: 3;
}

/* changes images in the winning pop-up screen */
.popupButtons img {
    width: 75%;
    max-width: 200px;
    margin: 5%;
    /* cursor: pointer; */
}

/* Gives buttons in the winning pop-up a mouse change */
.winningbtnStyle {
    cursor: pointer;
}

/* Popup styles for HELP function */
/* Transparent background behind pop-up */
#helpPopupOverlayHTML {
    display: flex;
    visibility: hidden;
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: rgba(62, 66, 68, 0.5);
    width: 100%;
    height: 100%;
    z-index: 100;
}

/* styles for actual pop-up container div */
#helpPopupHTML {
    visibility: hidden;
    top: 50%;
    left: 50%;
    position: absolute;
    background: #e7e6f4;
    width: 500px;
    height: 500px;
    margin-left: -250px; /*Half the value of width to center div*/
    margin-top: -250px; /*Half the value of height to center div*/
    z-index: 200;
    border-radius: 25px 0px 25px 0px;
    border: 7px solid #5c3ce5;
    text-align: center;
    padding: 5px;
}

/* styles for div inside pop-up container div */
.helpPopUpContent {
    width: 97%;
    height: auto;
    margin: 0 auto;
    padding: 2%;
    justify-content: center;
    flex-wrap: nowrap;
    text-align: center;
}

.helpPopUpContent h2 {
    font-family: fenwick, sans-serif;
    font-size: 16pt;
    text-align: left;
    font-weight: 700;
    color: #22548f;
    margin: 0px;
}

.helpPopUpContent p {
    font-size: 12pt;
    margin: 10px 12px;
    text-align: left;
}

.helpPopUpContent i {
    font-size: 12pt;
    margin: 0px;
}

.helpPopUpContent img {
    margin: 0px;
    padding: 0px;
}

/* styles div that holds the div containing the x */
.helpPopupXContainer {
    width: 100%;
    height: 55px;
    flex-wrap: nowrap;
    flex-direction: row;
    padding: 0;
    margin: 0;
}

/* styles for the X to close pop-up */
#helpPopupcloseHTML {
    width: 100%;
    height: 55px;
    padding: 10px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    justify-content: center;
    max-width: 100%;
    order: 1;
    margin: 0px;
}

/* styles for header in the winning pop-up */
.helpPopUpContent h1 {
    padding: 0px;
    margin: 10px;
    color: #2f1792;
    order: 2;
}
/* Changes mouse on category buttons in the main menu */
.categoryMainMenuButtons {
    cursor: pointer;
}

/* For mobile: */
@media only screen and (max-width: 600px) {

    /* mobile logo */
    .logo {
        width: 60%;
        height: auto;
        margin: 5% auto 2% auto;
    }

    .logo img {
        max-width: 425px;
        height: auto;
        margin: 0px auto;
    }

    /* mobile h3 */
    h3 {
        font-size: 25pt;
        color: #005494;
        margin: 0px;
    }
    
    /* mobile board */
    .board {
        display: flex;
        justify-content: center;
        flex-flow: row nowrap;
        visibility: hidden;
    }
    
    .displayAnswer {
        margin-top: 25px;
        padding: 0px 15px;
    }
    
    /* letters attached to mobile Display Answer */
    .letters {
        margin: 0px;
        width: 38px;
        height: 38px;
        padding-top: 15px;
        padding-left: 5px;
    }
    
    .lines {
        margin-top: 0px;
        width: 45px;
        height: 44px;
        position: absolute;
    }
    
    /* Clickable mobile letters go inside this div */
    .keyPad {
        width: 90%;
        display: grid;
        grid-gap: 15px 30px;
        grid-template-columns: repeat(auto-fit, minmax(10px, 50px));
        margin: 15% auto;
    }
    
    /* Clickable mobile letters */
    .keys {
        width: 37px;
        height: 36px;
        padding: 5px;
        cursor: pointer;
        visibility: hidden;
    }

    /* category buttons on main page */
    .catagory {
        display: flex;
        flex-flow: column nowrap;
        width: 100%;
        top: 215px;
        position: absolute;
        margin: 0 auto;
    }

    /* styles mobile buttons on main menu that change categories */
    .catStyle {
        cursor: pointer;
        margin: 0;
    }

    .catdiv img {
        width: 50%;
        max-width: 450px;
        height: auto;
        margin: 1% 5%;
    }

    .howToPlayDiv {
        display: flex;
        flex-flow: column nowrap;
        /* width: 38%; */
        top: 215px;
        position: absolute;
        margin: 0 auto;
    }

    .howToPlayDiv img {
    width: 35%;
    height: auto;
    }
    
/* mobile buttons on left side on game screen */
    .buttons {
        display: flex;
        position: absolute;
        top: 2%;
        left: 3%;
        flex-flow: column nowrap;
        justify-content: center;
        visibility: hidden;
    }

    .btnStyle {
        cursor: pointer;
        width: 55px;
        height: auto;
        margin-bottom: 10px;
    }

    /* styles mobile buttons on the winning pop-up */
    .winningbtnStyle {
        cursor: pointer;
        margin: 0px;
        padding: 0px;
    }

    /* specific styles on mobile for Help button on game screen */
    #helpBtn {
        cursor: pointer;
    }

    /* specific styles on mobile for Skip button on game screen */
    #btn {
        cursor: pointer;
    }
   


} /* Closing for mobile query - DO NOT DELETE */


/* For tablet: */
@media only screen and (min-width: 601px) {
.logo {
    width: 70%;
    height: auto;
    margin: 5% auto 2% auto;
}

.logo img {
    max-width: 425px;
    height: auto;
    margin: 0px auto;
}

h3 {
    font-size: 35pt;
    margin: 0;
}

.board {
    display: flex;
    justify-content: center;
    flex-flow: row nowrap;
    visibility: hidden;
}

.displayAnswer {
    margin-top: 25px;
    padding: 0px 15px;
}

/* letters attached to Display Answer */
.letters {
    margin: 0px;
    width: 50px;
    height: 50px;
    padding-top: 15px;
    padding-left: 10px;
}

.lines {
    margin-top: 0px;
    width: 60px;
    height: 60px;
    position: absolute;
}

/* Clickable letters go inside this div */
.keyPad {
    width: 90%;
    display: grid;
    grid-gap: 15px 30px;
    grid-template-columns: repeat(auto-fit, minmax(10px, 50px));
    margin: 12% 10%;
}

/* Clickable letters */
.keys {
    width: 45px;
    height: 45px;
    padding: 5px;
    cursor: pointer;
    visibility: hidden;
}

.catagory {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    width: 100%;
    top: 265px;
    position: absolute;
    margin: 5% auto;
}

.catStyle {
    cursor: pointer;
    margin: 0;
}

.catdiv img {
    width: 38%;
    max-width: 450px;
    height: auto;
    margin: 2% 5%;
}

.buttons {
    display: flex;
    position: absolute;
    top: 2%;
    left: 3%;
    flex-flow: column nowrap;
    justify-content: center;
    visibility: hidden;
}

.btnStyle {
    cursor: pointer;
    width: 55px;
    height: auto;
    margin-bottom: 10px;
}

.winningbtnStyle {
    cursor: pointer;
    margin: 0px;
    padding: 0px;
}

#catBtn {
    cursor: pointer;
}

#btn {
    cursor: pointer;
}


   
    

} /* Closing for tablet query - DO NOT DELETE */


/* For desktop: */
@media only screen and (min-width: 992px) {
    body {
        background-color: #ffe7b8;
        color: #3E4244;
        overflow: hidden; /* Hide scrollbars */
    }

    .logo {
        width: 60%;
        height: auto;
        margin: 25px auto;
    }

    .logo img {
        width: 475px;
        height: auto;
    }

    h3 {
        font-size: 40pt;
    }
    
    .board {
        display: flex;
        justify-content: center;
        flex-flow: row nowrap;
        visibility: hidden;
    }
    
    .displayAnswer {
        margin-top: 25px;
        padding: 0px 15px;
    }
    
    /* letters attached to Display Answer */
    .letters {
        margin: 0px;
        width: 75px;
        height: 75px;
        padding-top: 15px;
        padding-left: 10px;
    }
    
    .lines {
        margin-top: 0px;
        width: 85px;
        height: 85px;
        position: absolute;
    }
    
    /* Clickable letters go inside this div */
    .keyPad {
        width: 60%;
        display: grid;
        grid-gap: 20px 15px;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        margin: 5% auto;
    }
    
    /* Clickable letters */
    .keys {
        width: 60px;
        height: 60px;
        padding: 5px;
        cursor: pointer;
        visibility: hidden;
    }

    .catagory {
        display: flex;
        flex-flow: row nowrap;
        width: 100%;
        top: 375px;
        position: absolute;
        margin: -5% auto;
    }

    .catStyle {
        cursor: pointer;
        margin: 0;
    }

    .catdiv img {
        width: 38%;
        max-width: 450px;
        height: auto;
        /* margin: 2% 5%; */
    }
    
    .buttons {
        display: flex;
        position: absolute;
        top: 25px;
        left: 25px;
        flex-flow: column nowrap;
        justify-content: center;
        visibility: hidden;
    }

    .btnStyle {
        cursor: pointer;
        width: 78px;
        height: 74px;
        margin-bottom: 50px;
    }

    #catBtn {
        cursor: pointer;
    }

    #btn {
        cursor: pointer;
    }

   


} /* Closing for desktop query - DO NOT DELETE */

