:root {
    --secondary-color: #fffdb7;
    --primary-color: #fff;
    --white-color: white;
    --white-light-color: #f1f1f1;
    --outline-color: purple;
    --white-bakcground-light: rgba(0, 0, 0, 0.7);
}

.heading {
    text-align: center;
    margin: 2px 2px 10px 2px;
}

h3 {
    margin: 0px 100px 10px 100px;
    text-align: center;
    border-radius: 10px;
    border: 3px solid var(--outline-color);
}

body {
    font-family: 'Shadows Into Light';
    font-size: 22px;
    align-items: center;
    display: grid;
    justify-content: center;
    height: 50vh;
    margin: 10px 2px 2px 2px;
    background-color: var(--secondary-color);
  }

/* PopUp Styles Start */

.logo {
    width: 40px;  
    height: auto;
}

.logo-main-page {
    width: 60px;
    height: auto;
}

/* PopUp Styles End */


/* Game Area Styles Starts */

.game-area {
    text-align: center;
    background-color: var(--white-color);
    border-radius: 20px;
    width: 360px;
    
}

.game-area-tutorial{
    padding: 2rem;
}

.game-area-main{
    padding: 2rem;
}

#board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}

.cell {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 2rem;
    background-color: #ecf0f1;
    box-shadow: 5px 10px 18px #888888;
    
}

.cell:hover {
box-shadow: 3px 7px 10px #888888;
  }

.score-area {
    display: flex;
    justify-content: space-between; 
}

/* Game Area Styles Ends */


/* PopUp Style Starts */

.pop-up {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-bakcground-light);
    z-index: 2;
    align-items: center;
    justify-content: center;
  }
  
.pop-up-content {
    padding: 20px;
    background-color: var(--primary-color);
    border-radius: 10px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
  }
  
.pop-up-button {
    width: 150px;
}

/* PopUp Style Ends */


/** Button Style Starts */

.button {
    font-family: 'Shadows Into Light';
    position: relative;
    width: 150px;
    background-color: var(--secondary-color);
    border: none;
    font-size: 20px;
    color: black;
    padding: 20px;
    border-radius: 50%;
    text-align: center;
    transition-duration: 0.4s;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}

button:hover {
    letter-spacing: 1px;
}

.button:after {
    content: "";
    background: var(--white-light-color);
    display: block;
    position: absolute;
    padding-top: 200%;
    padding-left: 350%;
    margin-left: -20px !important;
    margin-top: -120%;
    opacity: 0;
    transition: all 0.8s
}
  
.button:active:after {
    padding: 0;
    margin: 0;
    opacity: 1;
    transition: 0s
}

.menu-button {
    background-color: var(--primary-color);
    letter-spacing: 2px;
}

.menu-button:hover {
    letter-spacing: 3px;
    background-color:#ecf0f1
}

.main-page-heading {
    font-size: 60px;
    margin-top: 100px
    ;
}
/** Button Style Ends */


/** Tutorial Page Styling Starts */

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

.tutorial > div {
    margin-right: 20px;
}

.how-to-page {
    text-align: center;
    background-color: var(--white-color);
    padding: 2rem;
    border-radius: 20px;
    width: 200px;
}

.board-small{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 1.5rem;
  }

.cell-tutorial {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    font-size: 2rem;
    background-color: #ecf0f1;
    box-shadow: 5px 10px 18px #888888;
  }

.color {
    background-color: var(--secondary-color);
  }

.tutorial-text  {
    text-align: center;
}

.button-tutorial {
    font-family: 'Shadows Into Light';
    position: relative;
    width: 150px;
    background-color: var(--primary-color);
    border: none;
    font-size: 20px;
    color: black;
    padding: 20px;
    border-radius: 50%;
    transition-duration: 0.4s;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}
.button-div {
    display: flex;
    justify-content: center;
    align-items: center;
}

/** Tutorial Page Styling Ends */


/* --------------- Media Queries ---------------*/

@media only screen and (max-width: 768px) {
    body {
        height: 100vh;
    }

    .game-area {
        width: 90%;
        
    }

    .game-area-main{
        padding: 25px 0px 25px 30px
    }

    .game-area-tutorial{
        padding: 16px 30px 16px 20px;
    }

    #board, .board-small {
        gap: 5px;
    }

    .cell, .cell-tutorial {
        width: 60px;
        height: 60px;
    }

    .button, .pop-up-button {
        width: 120px;
    }

    .tutorial {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .tutorial > div {
        margin-right: 20px;
        margin-bottom: 20px;
    }

    .how-to-page {
        width: 80%;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .game-area {
        width: 80%;
        
    }

    .game-area-main{
        padding: 25px 25px 25px 30px
    }

    .game-area-tutorial{
        padding: 20px 45px 10px 20px;
    }

    .cell, .cell-tutorial {
        width: 70px;
        height: 70px;
    }

    .tutorial {
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }

    .tutorial > div {
        margin-right: 20px;
        margin-bottom: 20px;
    }

    .button, .pop-up-button {
        width: 130px;
    }

    .how-to-page {
        width: 70%;
    }
}