body {
    font-family: 'Press Start 2P', cursive;
    background-color: darkslategray;
    color: #3f3f3f;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
}

.container {
    text-align: center;
    border: 2px solid #ff6f61;
    background: palegoldenrod;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 550px;
    box-sizing: border-box;
}

h2 {
    font-family: 'Public Pixel', sans-serif;
    font-size: 24px;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 40px;
    flex-wrap: wrap;
}

.left {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#timer-display {
    font-family: 'Public Pixel', sans-serif;
    font-size: 48px;
    border: 4px solid #ff6f61;
    padding: 20px;
    margin-bottom: 20px;
}

.settings {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.settings label {
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    width: 150px;
}

.settings input {
    width: 50px;
    text-align: center;
    margin-left: 10px;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.controls button {
    margin: 10px;
    padding: 10px 20px;
    background-color: #ff6f61;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Public Pixel', sans-serif;
    font-size: 12px;
}

@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
        gap: 20px;
        align-items: center; /* center items when stacked */
    }

    h2 {
        font-size: 20px;
    }

    #timer-display {
        font-size: 36px;
        padding: 15px;
    }

    .settings label {
        width: 120px;
        justify-content: space-between;
    }

    .settings input {
        width: 45px;
    }

    .controls button {
        padding: 8px 16px;
        font-size: 10px;
    }

    .main-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 18px;
    }

    #timer-display {
        font-size: 30px;
        padding: 12px;
    }

    .settings label {
        font-size: 10px;
        width: 100px;
    }

    .settings input {
        width: 40px;
    }

    .controls button {
        padding: 6px 12px;
        font-size: 8px;
    }

    .container {
        padding: 10px;
    }
}