#games {
    border-radius: 15px;
    border: none;
    background-color: #F24949;
    color: white;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    margin: 1rem auto 1rem auto;
    width: max-content;
}

#games:hover {
    background-color: #f37c7c;
}

#games:active {
    background-color: #1C1C1C;
    color: #F24949;
}

#page-header {
    font-size: 2.5rem;
    text-align: center;
    color: white;
    margin: 0 0 1rem 0;
}

#container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    box-sizing: border-box;
    background-color: #2C2C2C;
    border-radius: 15px;
    padding: 1rem 1.5rem 2.5rem 1.5rem;
    box-shadow: 0 0 5px 1px rgba(242, 73, 73, 0.5);
    max-width: 800px;
    min-width: 400px;
    color: white;
    text-align: center;
    margin: 1rem 0;
    width: 100%;
    align-items: center;
    justify-content: center;
}

.breath-trainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 2rem 5vw;
    color: white;
    min-height: 70vh; /* keeps footer at bottom for short content */
    box-sizing: border-box;
}

.trainer-controls {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 1rem 2rem;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
}

.trainer-controls label {
    font-weight: 600;
    margin-right: 0.5rem;
    margin-left: 1rem;
}

#settings label:first-child {
    margin-left: 0;
}

.trainer-controls select,
.trainer-controls input[type="number"] {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #F24949;
    background-color: #1C1C1C;
    color: #F24949;
    font-family: "Nunito", sans-serif;
    font-size: 1rem;
}

.trainer-controls button {
    padding: 0.6rem 1.2rem;
    border: none;
    border-radius: 6px;
    background-color: #F24949;
    color: #1C1C1C;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trainer-controls button:hover {
    background-color: #ffffff;
    color: #F24949;
    transform: scale(1.05);
}

.trainer-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.circle-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
}

.countdown-circle {
    transform: rotate(-90deg); /* starts at top */
    width: 100%;
    height: 100%;
}

.countdown-circle circle:nth-child(1) {
    stroke: #444444; /* background circle */
}

.countdown-circle circle:nth-child(2) {
    stroke: #F24949; /* progress circle */
    stroke-linecap: round;
    transition: stroke-dashoffset 0.2s linear;
}

.cue-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Nunito", sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    color: #F24949;
}

.time-remaining {
    font-family: "Nunito", sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 500;
    text-align: center;
}

#control-buttons button {
    margin: 0.25rem;
    width: 5rem;
    height: 2rem;
    text-align: center;
    padding: 0;
}

@media (max-width: 600px) {
    .trainer-display {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 1rem;
    }

    .countdown-circle {
        width: 100%;
        height: 100%;
        display: block;
    }

    .cue-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        font-size: 1.5rem;
        text-align: center;
        color: #F24949;
    }

    .time-remaining {
        margin-top: 1rem;
        font-size: 1.2rem;
        color: white;
        text-align: center;
    }

    .trainer-controls {
        flex-direction: column;
        gap: 1rem;
    }

    #settings {
        display: flex;
        flex-direction: column;
    }

    #control-buttons button {
        margin: 0.25rem;
    }
}