:root {
    --primary-color: #3c98cc;
    --primary-color-dark: #245b7b;
    --yellow: #ffd93d;
    --red: #ff3838;
    --gray-dark: #333;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Open Sans", sans-serif;
    background: url("images/bg.jpg") center center no-repeat;
    background-size: cover;
    color: white;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}
/* 
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: -1;
} */

.container {
    text-align: center;
    /* background: rgba(255, 255, 255, 0.15); */
    /* backdrop-filter: blur(15px); */
    border-radius: 25px;
    padding: 50px 40px;
    max-width: 700px;
    width: 100%;
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4); */
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
}

.header-logo {
    margin-bottom: 80px;
}

.cdo-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(2px 2px 8px rgba(0, 0, 0, 0.4));
}

h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.timer-display {
    margin: 20px 0;
}

.time-left {
    font-size: 8rem;
    line-height: 1;
    font-weight: 700;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    letter-spacing: 3px;
}

.time-left.warning {
    /* color: var(--red); */
    animation: pulse 1s infinite;
}

.time-left.change {
    color: var(--primary-color-dark);
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.phase-indicator {
    font-size: 1.6rem;
    font-weight: 600;
    padding: 15px 30px;
    background: var(--white);
    text-transform: uppercase;
    color: var(--primary-color);
    display: inline-block;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

/* .phase-indicator.talk {
    background: #4ecdc4;
}

.phase-indicator.change {
    background: #ffd93d;
    color: #333;
} */

/* Controlli floating rimossi dal layout principale */

.btn {
    padding: 10px 25px;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Open Sans", sans-serif;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 140px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;

    border: 2px solid var(--white);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn:disabled {
    display: none;
}

.btn-start {
    background: white;
    color: var(--primary-color);
}

.btn-pause {
    background: var(--white);
    color: var(--primary-color);
}

.btn-reset {
    background: var(--primary-color);
    color: white;
}

.round-info {
    margin: 25px 0;
    font-size: 1.4rem;
    font-weight: 600;
    /* text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4); */
}

.footer-sponsors {
    margin-top: 50px;
}

.sponsors-logo {
    max-width: 550px;
    height: auto;
    opacity: 0.9;
    margin-top: 20px;
    filter: drop-shadow(1px 1px 3px rgba(0, 0, 0, 0.3));
}

/* Controlli floating nell'angolo */
.floating-controls {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.btn-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-icon:disabled {
    display: none;
}

.btn-icon.btn-start {
    background: var(--white);
    color: var(--primary-color);
}

.btn-icon.btn-pause {
    background: var(--white);
    color: var(--primary-color);
}

.btn-icon.btn-reset {
    background: var(--primary-color);
    color: var(--white);
}

.reset-icon {
    width: 40px;
    height: 40px;
    /* filter: invert(1); */
}

.fullscreen-icon,
.play-icon,
.pause-icon {
    width: 25px;
    height: 25px;
    /* filter: invert(1); */
}

.btn-icon.btn-fullscreen {
    background: var(--primary-color);
    color: var(--white);
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
        margin: 10px;
    }

    .cdo-logo {
        max-width: 250px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .time-left {
        font-size: 4rem;
        letter-spacing: 2px;
    }

    .phase-indicator {
        font-size: 1.3rem;
        padding: 12px 25px;
    }

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

    .btn {
        width: 220px;
        padding: 16px 30px;
        font-size: 1.1rem;
    }

    .instructions {
        text-align: center;
        padding: 25px;
    }

    .instructions ul {
        text-align: left;
        display: inline-block;
    }

    .sponsors-logo {
        max-width: 200px;
    }

    .floating-controls {
        bottom: 20px;
        right: 20px;
        gap: 12px;
    }

    .btn-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}
