@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #fff8f0;
    color: #5d4037;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
    transition: background-color 0.8s ease;
}

body.work-bg {
    background-color: #fff8f0;
}

body.short-bg {
    background-color: #e8f5e9;
}

body.long-bg {
    background-color: #e3f2fd;
}

.container {
    width : 100%;
    padding: 20px;
    background-color: #fefbf4;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.timer {
    display: inline-block;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

main {
    width: 18rem;
    height: 18rem;
    border-radius: 50%;
    text-align: center;
    margin: 20px auto;
}

h1, h2 {
    font-size: 2rem;
    margin: 20px auto;
}

.button-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.pomodoro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    position: relative;
    margin: 2.5rem 0;
    text-align: center;
    border-radius: 50%;
    background-color: #f1e0ce;
    box-shadow: 10px 10px 25px #d9c1a6, -10px -10px 25px #ead9b8;
}

.pomodoro::before {
    content: '';
    position: absolute;
    border: 8px solid rgba(255, 255, 255, 0.5);
    width: 90%;
    height: 90%;
    border-radius: 50%;
}

.time {
    font-size: 2.5rem !important;
    z-index: 1;
}

.button-container {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.button {
    padding: 8px 15px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    background-color: #d4b09c;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease-in;
}

.button.active, .button:hover {
    background-color: #a67c5b;
}

.hidden {
    display: block;
}

.timer-display{
    font-size: 2rem;
    margin-top: 15px;
    font-weight: bold;
}

.buttons {
    margin-top: 20px;
}

.test-btn {
    display: block; 
    margin: 15px auto 0;
    background: transparent;
    border: 1px solid #d4b09c;
    color: #5d4037;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.test-btn:hover {
    background-color: #d4b09c;
    color: white;
}

#start, #pause, #reset {
    background-color: #d4b09c;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    padding: 10px 20px;
    margin: 10px;
    transition: background-color 0.3s ease-in;
}

#start:hover {
    background-color: #a67c5b;
}
#pause:hover {
    background-color: #a67c5b;
}
#reset:hover {
    background-color: #5d4037;
}

#timer-message {
    font-size: 1.2rem;
    margin-bottom: 30px; 
    max-width: 500px;
    width: 90%; 
    background-color: #d6bfa8;
    padding: 10px 20px;
    border-radius: 50px; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
}



@media screen and (min-width: 320px) and (max-width: 600px) {
    .container {
        transform: scale(0.9);
        margin: 20px auto;
        text-align: center;
    }

    .timer {
        width: 100%;
    }

    main {
        width: 15rem;
        height: 15rem;
    }

    .time {
        font-size: 2rem !important;
    }
   
}