/********** GLOBAL STYLES **********/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
}

body {
    background-color: var(--bg);
    overflow-x: hidden;
    min-height: 100vh;
    font-size: clamp(14px, 1.2vw, 16px);
    overflow: hidden;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

:root {
    --font-title: "Akaya Kanadaka", system-ui;
    --font-text: "Text Me One", system-ui;
    --font-time: "Audiowide", sans-serif;
    --title: #32cdb6;
    --time: #3434e9;
    --shadow: #00a9bf8b;
    --info-bg: #032a36;
    --main-color: #1e2339;
    --bg: #12141e;
    --circle-size: 480px;
    --stroke-width: 10;
}

/*********** TITLE **********/
.title {
    display: flex;
    justify-content: center;
    font-family: var(--font-title);
    font-size: 10.5rem;
    letter-spacing: 12px;
    margin-bottom: 1rem;
    text-shadow: var(--shadow) -3px 8px 1px;
    color: var(--title);
    position: absolute;
    top: 24px;
    left: 593px;
    gap: 0.2rem;
}



/*********** PROGRESS RING **********/
.progress-ring {
    position: absolute;
    width: 500px;
    height: 500px;
    margin: 0 auto;
    left: 749px;
    z-index: 2;
}


/*********** BACKGROUND CIRCLE **********/
.bg-circle {
    position: absolute;
    width: var(--circle-size);
    height: var(--circle-size);
    border-radius: 50%;
    background-color: var(--main-color);
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/*********** TIMER **********/
.timer {
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    font-family: var(--font-time);
    font-size: 4rem;
    letter-spacing: 8px;
    color: white;
    z-index: 3;
    white-space: nowrap;
}

/*********** QUESTIONS **********/
.questions {
    position: fixed;
    top: 8%;
    left: 97%;
    transform: translate(-64%, -50%);
    font-family: var(--font-text);
    font-size: 1.5rem;
    color: white;
    z-index: 2;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
}

.modal-content {
    position: absolute;
    background-color: var(--info-bg);
    margin: 5% auto;
    left: 1623px;
    padding: 20px;
    border-radius: 18px;
    width: 80%;
    max-width: 275px;
    box-shadow: 0 5px 15px rgba(32, 23, 23, 0.3);
}

.modal-content h2 {
    margin-top: 0;
    font-family: var(--font-title);
    font-size: 2rem;
    color: var(--title);
}

.modal-content p {
    font-family: var(--font-text);
    font-size: 1.2rem;
    line-height: 1.5;
    color: white;
    margin-bottom: 20px;
}

.close {
    color: #11c0a9;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #009090;
}

/*********** TRANSLATE BUTTON **********/
.translate {
    position: fixed;
    top: 8%;
    left: 90%;
    transform: translate(-50%, -50%);
    font-family: var(--font-text);
    font-size: 1.5rem;
    color: white;
    z-index: 2;
}

/*********** CONTROLS **********/
.controls {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    left: 56px;
    gap: 1rem;
    top: 352px;
}

.relax img {
    margin: -12px -41px;
    width: 224%;
    height: 135%;
    object-fit: contain;
    display: block;
}

button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-right: 35px;
}

.controls button:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 10px var(--shadow));
}

button:active {
    transform: scale(0.9);
}

svg {
    width: 100%;
    height: 100%;
}

/*********** FOOTER **********/
a {
    color: white;
    text-decoration: none;
}

footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-family: var(--font-text);
    font-size: 1.2rem;
    color: white;
}

/*********** MEDIA QUERIES **********/
@media (max-width: 800px) {
    .title {
        font-size: 4rem;
        top: 108px;
        left: 52%;
        transform: translateX(-50%);
    }

    .progress-ring {
        width: 320px;
        height: 309px;
        left: 52%;
        transform: translateX(-50%);
    }

    .bg-circle {
        width: 300px;
        height: 300px;
    }

    .timer {
        font-size: 2.5rem;
    }

    .questions {
        top: 5%;
        left: 90%;
    }

    .translate {
        top: 5%;
        left: 69%;
    }

    .controls {
        top: 300px;
        left: 43%;
        transform: translateX(-50%);
    }

    .controls svg {
        width: 79%;
        height: 85%;
    }

    .relax img {
        position: relative;
        left: 24px;
        margin: -12px -41px;
        width: 167%;
        height: 111%;
        object-fit: contain;
        display: block;
    }

    footer {
        position: fixed;
        bottom: 42px;
        width: 100%;
        text-align: center;
        font-family: var(--font-text);
        font-size: 15px;
        color: white;
    }

    .questions {
        position: fixed;
        top: 5%;
        left: 93%;
        transform: translate(-64%, -50%);
        font-family: var(--font-text);
        font-size: 1.5rem;
        color: white;
        z-index: 2;
    }

    .modal {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        margin: 0;
        top: 263px;
        left: 66%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 300px;
    }

    .modal-content h2 {
        margin-top: 0;
        font-family: var(--font-title);
        font-size: 2rem;
        color: var(--title);
    }

    .modal-content p {
        font-family: var(--font-text);
        font-size: 18px;
        line-height: 1.5;
        color: white;
        margin-bottom: 20px;
    }

    .close {
        color: #11c0a9;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }

    .close:hover {
        color: #009090;
    }

}

@media (max-width: 480px) {
    .title {
        font-size: 4rem;
        top: 80px;
    }

    .progress-ring {
        width: 240px;
        height: 232px;
    }

    .bg-circle {
        width: 353px;
        height: 353px;
        top: 54%;
    }

    .timer {
        font-size: 1.8rem;
    }

    .controls {
        top: 250px;
    }
}


/*Laptop*/

@media (max-width: 896px) {
    .title {
        font-size: 4rem;
        top: 108px;
        left: 52%;
        transform: translateX(-50%);
    }

    .progress-ring {
        width: 262px;
        height: 302px;
        left: 49%;
        top: 24%;
        transform: translateX(-50%);
    }

    .bg-circle {
        width: 242px;
        height: 249px;
        top: 41%;
    }

    .timer {
        font-size: 2.5rem;
    }

    .questions {
        top: 5%;
        left: 90%;
    }

    .translate {
        top: 5%;
        left: 69%;
    }

    .controls {
        display: flex;
        position: relative;
        top: 104px;
        left: 54%;
        transform: translateX(-50%);
    }

    .controls svg {
        width: 79%;
        height: 85%;
    }

    .relax img {
        position: relative;
        left: 24px;
        margin: -12px -41px;
        width: 167%;
        height: 111%;
        object-fit: contain;
        display: block;
    }

    footer {
        position: relative;
        display: flex;
        bottom: -173px;
        width: 42%;
        left: -39%;
        text-align: center;
        font-family: var(--font-text);
        font-size: 15px;
        color: white;
    }

    .questions {
        position: fixed;
        top: 5%;
        left: 93%;
        transform: translate(-64%, -50%);
        font-family: var(--font-text);
        font-size: 1.5rem;
        color: white;
        z-index: 2;
    }

    .modal {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-content {
        margin: 0;
        top: 263px;
        left: 66%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 300px;
    }

    .modal-content h2 {
        margin-top: 0;
        font-family: var(--font-title);
        font-size: 2rem;
        color: var(--title);
    }

    .modal-content p {
        font-family: var(--font-text);
        font-size: 18px;
        line-height: 1.5;
        color: white;
        margin-bottom: 20px;
    }

    .close {
        color: #11c0a9;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }

    .close:hover {
        color: #009090;
    }
}

@media (min-height: 1536px) {
    .title {
        display: flex;
        justify-content: center;
        font-size: 9.5rem;
        letter-spacing: 12px;
        margin-bottom: 1rem;
        top: 3px;
        left: 412px;
        gap: 0.2rem;

    }

    .progress-ring {
        width: 310px;
        height: 342px;
        left: 613px;
        top: 30%;
    }

    .bg-circle {
        width: 300px;
        height: 290px;
        top: 58%;
    }

    .timer {
        font-size: 2.5rem;
    }

    .controls {
        display: flex;
        position: relative;
        align-items: center;
        justify-content: center;
        left: 56px;
        gap: 1rem;
        top: 234px;
        width: 239px;
        height: 96px;
    }

    .modal-content {
        position: absolute;
        right: 20px;
        top: 5%;

        background-color: var(--info-bg);
        padding: 20px;
        border-radius: 18px;
        width: 80%;
        max-width: 275px;
        box-shadow: 0 5px 15px rgba(32, 23, 23, 0.3);
    }

    footer {
        position: fixed;
        bottom: 10px;
        width: 100%;
        text-align: center;
        font-family: var(--font-text);
        font-size: 14px;
        color: white;
    }
}