@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, #ff7cbf, #fff2da);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    text-align: center;
    text-shadow: 1px 1px #ff66fd;
    max-width: 100%;
}

.container {
    position: relative; /* Necessário para posicionar o tooltip */
    background-color: rgb(255 255 255 / 30%);
    padding: 40px 60px;
    border-radius: 15px;
    box-shadow: 1px 4px 6px 0px rgba(0, 0, 0, 0.1);
}

h1 {
    font-weight: 600;
    font-size: 2.5em;
    margin-bottom: 0;
}

h2 {
    margin-top: 0;
}

#timer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    cursor: pointer; /* Muda o cursor para indicar interatividade */
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.time-unit:hover {
    background-color: #2a2a2a;
}

.time-unit span {
    font-size: 3em;
    font-weight: 600;
}

.time-unit .label {
    font-size: 0.9em;
    font-weight: 300;
}

#tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9em;
    z-index: 10;
    visibility: hidden; /* Escondido por padrão */
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    white-space: nowrap;
    /* Posicionamento será feito via JavaScript */
}

#tooltip.visible {
    visibility: visible;
    opacity: 1;
}