/* Стилі для розміщення кнопок біля таймера */
#timer-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex: 1; /* Займає 1/3 ширини */
    margin-left: auto; /* Притуляє контейнер вправо */
}

#timer {
    margin-right: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #ff9900;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
    min-width: 60px;
    text-align: center;
}

#restart-container {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    display: flex;
    align-items: center;
}

#restart-container .btn-group {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

/* Стилі для десктопу */
@media (min-width: 769px) {
    #timer-container {
        flex-direction: row-reverse; /* Міняємо місцями таймер і кнопки */
    }
    
    #restart-container .btn-group {
        flex-direction: row;
        margin-right: 10px; /* Додаємо відступ між кнопками і таймером */
    }
    
    #timer {
        margin-right: 0; /* Видаляємо відступ справа для таймера */
    }
    
    body.debates-mode #restart-container,
    body.fun-mode #restart-container {
        top: auto !important;
        right: auto !important;
    }
}

/* Стилі для мобільних пристроїв */
@media (max-width: 768px) {
    #restart-container {
        display: none !important;
    }
    
    #timer {
        font-size: 18px;
        min-width: 50px;
        padding: 3px 8px;
    }
}
