body {
    font-family:'Dancing Script', 'Comfortaa', cursive;
    font-size: 22px;
    text-align: center;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

h1 {
    color: #333;
    font-family: 'Dancing Script', cursive;
}

#timer {
    font-size: 130px;
    font-family: 'Pacifico', cursive;
    margin: 20px 0;
    color: #fff;
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.controls button,
.background-options button {
    background-color: rgba(255, 255, 255, 0.1);
    font-family: 'Comfortaa', cursive;
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 10px 25px;
    margin: 10px;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.controls button:hover,
.background-options button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

#breakIndicator {
    font-size: 24px;
    color: #0077cc;
    margin-bottom: 20px;
    z-index: 2;
    position: relative;
}

#sidePanel {
    position: fixed;
    top: 0;
    right: -380px;
    width: 340px;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    backdrop-filter: blur(8px);
    transition: right 0.4s ease;
    z-index: 5;
    padding: 20px;
}

#sidePanel.open {
    right: 0;
}

#togglePanel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 6;
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#togglePanel:hover {
    background-color: rgba(255, 255, 255, 0.25);
}

#panelSounds {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.panel-button {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    flex-shrink: 0;
}

.panel-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.rounds {
    margin-top: 18px;
    font-size: 24px;
    z-index: 2;
    position: relative;
}

/* Smooth Background Transition */
.background-layer {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-size: cover;
background-position: center;
z-index: -1;
opacity: 0;
transition: opacity 1s ease-in-out;
}

#background1 {
z-index: -1;
}

#background2 {
z-index: -2;
}

h1, #timer, .controls, .rounds, #breakIndicator {
position: relative;
z-index: 1;
}

