/* =========================================
   RESET
========================================= */

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   BODY
========================================= */

body {

    text-align: center;

    background-color: #c2c5d8;

    padding: 10px 0;

    min-height: 100vh;

    overflow-x: hidden;

    display: flex;
    flex-direction: column;

    justify-content: flex-start;   /* UPPER SIDE */

    align-items: center;

    font-family: Arial, Helvetica, sans-serif;
}

/* =========================================
   HEADINGS
========================================= */

h1{

    font-size: clamp(2rem,5vw,3.5rem);

    margin-top: 1rem;
    margin-bottom: 0.5rem;

    color: #111;

    letter-spacing: 1px;

    animation: fadeDown 0.6s ease;
}

h2{

    font-size: clamp(1.2rem,3vw,2rem);

    margin-bottom: 1rem;

    color: #333;

    animation: fadeUp 0.6s ease;
}

/* =========================================
   START BUTTON
========================================= */

#start-btn {

    padding: 12px 25px;

    font-size: 18px;

    border-radius: 10px;

    background-color: #333;

    color: #fcfbfb;

    border: none;

    cursor: pointer;

    margin-bottom: 20px;

    transition: all 0.3s ease;

    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

#start-btn:hover {

    background-color: #555;

    transform: translateY(-3px);

    box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

#start-btn:active{
    transform: scale(0.96);
}

/* =========================================
   BUTTON CONTAINER
========================================= */

.btn-container {

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 1rem;

    margin-top: 1rem;

    animation: zoomIn 0.7s ease;
}

/* =========================================
   ROWS
========================================= */

.line-one,
.line-two{

    display: flex;

    justify-content: center;

    gap: 1rem;
}

/* =========================================
   GAME BUTTONS
========================================= */

.btn {

    height: clamp(110px, 18vw, 180px);

    width: clamp(110px, 18vw, 180px);

    border-radius: 20%;

    border: 5px solid black;

    cursor: pointer;

    transition: all 0.2s ease;

    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.btn:hover{

    transform: scale(1.05);

    box-shadow: 0 12px 22px rgba(0,0,0,0.28);
}

/* =========================================
   COLORS (UNCHANGED)
========================================= */

.yellow {
    background-color: #ee9a4b;
}

.red {
    background-color: #e76089;
}

.green {
    background-color: #839eec;
}

.purple {
    background-color: #60b3cc;
}

/* =========================================
   FLASH EFFECTS
========================================= */

.flash {

    background-color: white;

    transform: scale(1.08);
}

.userflash {

    background-color: green;

    transform: scale(1.08);
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes fadeDown{

    from{
        opacity: 0;
        transform: translateY(-30px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp{

    from{
        opacity: 0;
        transform: translateY(30px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn{

    from{
        opacity: 0;
        transform: scale(0.8);
    }

    to{
        opacity: 1;
        transform: scale(1);
    }
}

/* =========================================
   TABLETS
========================================= */

@media screen and (max-width: 768px){

    body{
        padding: 20px 0;
    }

    .btn-container{
        gap: 0.8rem;
    }

    .line-one,
    .line-two{
        gap: 0.8rem;
    }

    .btn{
        height: clamp(120px, 24vw, 160px);
        width: clamp(120px, 24vw, 160px);

        border-width: 4px;
    }

    #start-btn{
        padding: 10px 22px;
    }
}

/* =========================================
   MOBILE DEVICES
========================================= */

@media screen and (max-width: 480px){

    body{

        justify-content: flex-start;

        padding-top: 20px;   /* PERFECT MOBILE TOP SPACE */
    }

    .btn-container{
        gap: 0.7rem;
    }

    .line-one,
    .line-two{
        gap: 0.7rem;
    }

    .btn{
        height: 130px;
        width: 130px;

        border-width: 4px;
    }

    #start-btn{
        padding: 10px 20px;
    }
}

/* =========================================
   SMALL MOBILES
========================================= */

@media screen and (max-width: 360px){

    .btn{
        height: 105px;
        width: 105px;
    }

    #start-btn{
        width: 100%;
        max-width: 220px;
    }
}