    * {
        box-sizing: border-box;
        padding: 0;
        margin: 0;
        font-family: 'cubanoregular', sans-serif;
        font-size: 30px;
        color: darkblue;
        text-align: center;
    }
    
    html {
        background-color: #1a0354;
        overflow: hidden;
    }
    
    @font-face {
        font-family: 'cubanoregular';
        src: url(./font/cubano-webfont.woff2) format('woff2'), url(./font/cubano-webfont.woff) format('woff');
        font-weight: normal;
        font-style: normal;
    }
    
    main {
        width: 1024px;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        background: url(./img/mainBG.svg) no-repeat center center;
        background-size: cover;
        overflow: hidden;
    }
    
    .board {
        display: flex;
        justify-content: center;
        flex-flow: row nowrap;
        visibility: hidden;
    }
    
    .keyPad {
        display: grid;
        grid-template-columns: repeat(autofit, minmax(150px, 1fr));
        justify-content: center;
    }
    
    #win-ani,
    #ultiwin-ani {
        position: absolute;
        width: 1024px;
        height: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        visibility: hidden;
        z-index: 200;
    }

    #lose-ani {
        position: absolute;
        width: 1024px;
        height: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        visibility: hidden;
        z-index: 200;
    }
    
    #winBG,
    #ultiwinBG, #loseBG {
        position: absolute;
        mix-blend-mode: multiply;
        width: 1024px;
        height: auto;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        visibility: hidden;
        z-index: 200;
    }
    
    #scoreSystem {
        color: white;
        text-align: right;
        font-family: 'cubanoregular', sans-serif;
        font-style: normal;
        font-weight: 400;
        position: absolute;
        visibility: hidden;
    }

    #timer {
        color: white;
        text-align: right;
        font-family: 'cubanoregular', sans-serif;
        font-style: normal;
        font-weight: 400;
        position: absolute;
        visibility: hidden;
    }

    .timericon {
        position: absolute;
        width: 25px;
        top: 2.9%;
        right: 4%;
        visibility: hidden;
    }
    
    .introscreen {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        z-index: 200;
    }
    
    #skipbtn {
        position: absolute;
        right: 30px;
        top: 25px;
        height: auto;
        z-index: 200;
        cursor: pointer;
    }

    /* how to play */
    #howtoplay {
        width: 100%;
        height: 100%;
        position: absolute;
        z-index: 1000;
        left: 50%;
        top: 55%;
        transform: translate(-50%, -50%);
        display: none;
    }

    #howtoplay-x {
        color: white;
        top: 3%;
        position: absolute;
        left: 76%;
        font-size: 16pt;
    }

    #howtoplay-x:hover {
        cursor: pointer;
    }

    #howtoplay-bg {
        width: 100%;
        height: 100%;
        background-color: #515151;
        mix-blend-mode: multiply;
        position:absolute;
        display: none;
        z-index: 100;
    }

    #howtoplay img {
        width: 60%;
        height: auto;
    }

    #howtoplay-icon {
        width: 30px;
        height: auto;
        position: absolute;
        bottom: 6.3%;
        right: 5%;
    }

    #howtoplay-icon:hover {
        cursor: pointer;
    }

    /******************* FOR DESKTOP *******************/
    
    @media only screen and (min-width: 769px) {
        main {
            width: 900px;
            height: auto;
        }

        .displayAnswer {
            margin-top: 5%;
            padding: 0px 30px;
        }
        .letters {
            width: 56px;
            height: 56px;
            margin-top: -100%;
            margin-left: -35%;
        }
        .lines {
            width: 56px;
            height: 56px;
            margin-top: 70%;
            margin-left: -35%;
        }
        #box {
            margin-right: -80%;
        }
        .answerletter {
            margin-right: -80%;
        }
        .keyPad {
            gap: 30px 15px;
            margin-top: 15%;
            margin-left: 10%;
            padding-bottom: 20px;
            width: 80%;
        }
        .keyPad {
            display: flex;
            flex-wrap: wrap;
        }
        .keys {
            width: 40px;
            height: 60px;
            cursor: pointer;
            visibility: hidden;
        }
        .buttons {
            display: flex;
            flex-flow: row nowrap;
            justify-content: end;
            width: 92%;
            visibility: hidden;
        }
        .btnStyle {
            cursor: pointer;
            padding: 0 50px 0 0;
            margin-top: 5%;
            margin-bottom: 6%;
        }
        #btn {
            width: 18%;
            height: 18%;
            margin-left: 70%;
        }
        #catBtn {
            width: 25%;
            height: 25%;
        }
        .category {
            display: flex;
            flex-flow: row nowrap;
            justify-content: center;
            width: 70%;
            margin-left: 5%;
        }

        .category h1 {
            position: absolute;
            top: 0;
            left: 0;
            color: white;
            font-family: 'cubanoregular';
            font-weight: normal;
            font-size: 18pt;
            left: 50%;
            top: 7.5%;
            transform: translate(-50%, -50%);
        }

        .catStyle {
            cursor: pointer;
            margin-top: -90%;
            margin-left: 25%;
            height: 20%;
        }
        .catStyle1 {
            width: 120%;
            height: auto;
            position: relative;
        }
        .catStyle2 {
            margin-top: -8%;
            width: 120%;
            height: auto;
        }
        #gamelogo {
            width: 25%;
            height: 25%;
            margin-top: 5%;
            visibility: hidden;
        }
        #catName {
            width: 25%;
            height: 25%;
            margin-top: 5%;
            visibility: hidden;
        }
        #scoreSystem {
            right: 30px;
            top: 55px;
            font-size: 20pt;
        }
        #timer {
            right: 70px;
            top: 20px;
            font-size: 20pt;
        }
        .introscreen {
            width: 1200px;
            height: auto;
        }
        #skipbtn {
            width: 80px;
        }
    }
    /******************* FOR TABLET *******************/
    
    @media only screen and (min-width: 601px) and (max-width: 768px) {
        main {
            width: 100%;
            height: 100%;
        }

        .category h1 {
            position: absolute;
            top: 0;
            left: 0;
            color: white;
            font-family: 'cubanoregular';
            font-weight: normal;
            font-size: 18pt;
            left: 50%;
            top: 10%;
            transform: translate(-50%, -50%);
        }
        
        .displayAnswer {
            margin-top: 5%;
            padding: 0px 2px;
        }
        .letters {
            width: 80px;
            height: 80px;
            margin-top: -100%;
        }
        .lines {
            width: 80px;
            height: 80px;
            margin-top: 70%;
        }
        .keyPad {
            gap: 30px 15px;
            margin-top: 10%;
            margin-left: 10%;
            padding-bottom: 20px;
            width: 80%;
        }
        .keyPad {
            display: flex;
            flex-wrap: wrap;
        }
        .keys {
            width: 40px;
            height: 60px;
            cursor: pointer;
            visibility: hidden;
        }
        .buttons {
            display: flex;
            justify-content: center;
            width: 100%;
            visibility: hidden;
            margin-top: 5%;
        }
        .btnStyle {
            cursor: pointer;
            padding: 0 50px 0 0;
            margin-top: 10%;
            margin-bottom: 6%;
        }
        #btn {
            width: 25%;
            height: 25%;
            margin-left: 5%;
        }
        #catBtn {
            width: 36%;
            height: 36%;
        }
        .category {
            display: flex;
            justify-content: center;
            width: 100%;
            margin-top: -10%;
        }
        .catStyle {
            cursor: pointer;
            margin-top: -590px;
            height: 100%;
        }
        .catStyle1 {
            margin-top: 10%;
            width: 60%;
            height: auto;
            position: relative;
        }
        .catStyle2 {
            margin-top: -4%;
            width: 60%;
            height: auto;
        }
        #gamelogo {
            width: 35%;
            height: auto;
            margin-top: 6%;
            visibility: hidden;
        }
        #catName {
            width: 40%;
            height: auto;
            margin-top: 12%;
            visibility: hidden;
        }
        #scoreSystem {
            right: 30px;
            top: 55px;
            font-size: 20pt;
        }

        #timer {
            right: 68px;
            top: 20px;
            font-size: 20pt;
        }

        .timericon {
            position: absolute;
            width: 30px;
            top: 2.1%;
            right: 4%;
            visibility: hidden;
        }

        .introscreen {
            position: absolute;
            width: 210%;
            height: 100%;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            z-index: 200;
        }
        #skipbtn {
            width: 80px;
        }

        #howtoplay-x {
            color: white;
            top: 6%;
            position: absolute;
            left: 85%;
            font-size: 14pt;
        }
    
        #howtoplay img {
            margin-top: 5%;
            width: 80%;
            height: auto;
        }

    }
    /******************* FOR MOBILE *******************/
    
    @media only screen and (max-width: 600px) {
        main {
            width: 100%;
            height: 100%;
        }

        .category h1 {
            position: absolute;
            top: 0;
            left: 0;
            color: white;
            font-family: 'cubanoregular';
            font-weight: normal;
            font-size: 12pt;
            left: 50%;
            top: 10%;
            transform: translate(-50%, -50%);
        }

        .displayAnswer {
            margin-top: 10%;
            padding: 0px 2px;
        }
        .letters {
            width: 40px;
            height: 40px;
            margin-top: -100%;
        }
        .lines {
            width: 40px;
            height: 40px;
            margin-top: 70%;
        }
        .keyPad {
            display: grid;
            gap: 18px 15px;
            grid-template-columns: repeat(autofit, minmax(150px, 1fr));
            margin-top: 15%;
            margin-left: 10%;
            width: 80%;
            justify-content: center;
        }
        .keyPad {
            display: flex;
            flex-wrap: wrap;
        }
        .keys {
            width: 25px;
            height: 40px;
            cursor: pointer;
            visibility: hidden;
        }
        .buttons {
            display: flex;
            justify-content: center;
            width: 92%;
            visibility: hidden;
        }
        .btnStyle {
            cursor: pointer;
            padding: 0 50px 0 0;
            margin-top: 12%;
            margin-bottom: 6%;
        }
        #btn {
            width: 35%;
            height: 35%;
            margin-left: 8%;
        }
        #catBtn {
            width: 46%;
            height: 46%;
        }
        .category {
            display: flex;
            justify-content: center;
            width: 100%;
        }
        .catStyle {
            cursor: pointer;
            margin-top: -120%;
            height: 100%;
        }
        .catStyle1 {
            width: 70%;
            height: auto;
            position: relative;
        }
        .catStyle2 {
            margin-top: -4%;
            width: 70%;
            height: auto;
        }
        #gamelogo {
            width: 35%;
            height: auto;
            margin-top: 14%;
            visibility: hidden;
        }
        #catName {
            width: 45%;
            height: auto;
            margin-top: 10%;
            visibility: hidden;
        }
        #scoreSystem {
            right: 20px;
            font-size: 11pt;
            top: 35px;
        }
        #timer {
            right: 45px;
            font-size: 11pt;
            top: 15px;
            visibility: hidden;
        }

        .timericon {
            position: absolute;
            width: 18px;
            top: 2.1%;
            right: 5.3%;
            visibility: hidden;
        }
        
        .introscreen {
            width: 260%;
            height: 100%;
        }
        #skipbtn {
            width: 60px;
        }


        #howtoplay-icon {
            width: 22px;
            height: auto;
            position: absolute;
            bottom: 5.2%;
            right: 8%;
        }

        #howtoplay-x {
            color: white;
            top: 11%;
            position: absolute;
            left: 88%;
            font-size: 12pt;
        }
    
        #howtoplay img {
            margin-top: 15%;
            width: 90%;
            height: auto;
        }
    }