@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    /* background-color: #000000; */ /* Removed black background */
    color: #d7e0ff;
}

.container {
    text-align: center;
    width: 100%;
    padding: 10px 0;
}

.timer {
    display: inline-block;
    padding: 10px;
    width: 600px;
    box-sizing: border-box;
}

main {
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    text-align: center;
    margin: 0 auto;
    margin-bottom: 2rem;
}

h1 {
    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: #151932;
    box-shadow: 20px 20px 42px #414145, -20px -20px 42px #4f4f52;
}

.pomodoro::before {
    content: "";
    position: absolute;
    border: 10px solid rgb(134, 134, 136);
    border-radius: 50%;
    width: 22rem;
    height: 22rem;
}

.time {
    font-size: 5rem !important;
    margin: 20px auto;
}

.button-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.button {
    background-color: #2e325a;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 5px;
    cursor: pointer;
    transition: all .2s ease-in;
}

.button.active, .button:hover {
    background-color: #020323;
}

.hidden {
    display: block;
}

.timer-display {
    font-size: 5rem;
    margin-top: 20px;
    font-weight: bold;
}

.buttons {
    margin-top: 20px;
}

#start, #stop {
    background-color: #2e325a;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    margin: 10px;
    cursor: pointer;
    transition: all .2s ease-in;
}

#stop:hover {
    background-color: tomato;
}

#start:hover {
    background-color: #219a52;
}

#timer-message {
    color: white;
    background-color: rgba(174, 34, 34, 0.574);
    display: none;
    padding: .5rem;
    font-size: 1rem;
    text-align: center;
    border-radius: 1rem;
}

/* Responsiveness */
@media screen and (min-width: 320px) and (max-width: 600px) {
    .container {
        transform: scale(0.9)
    }

    .timer {
        width: 500px;
    }
}

/* === NEW Video Background CSS === */
#background-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -1;
    object-fit: cover;
}

/* Keep all content above the video */
body, .container, .timer, #timer-message {
    position: relative;
    z-index: 1;
}

/* Slight background to help readability */
.container, #timer-message {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    padding: 20px;
}
