.calibration-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 25px;
    background: #007bff;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-weight: bold;
}

.calibration-value {
    position: absolute;
    right: 50px;
    background: #e9ecef;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #dee2e6;
}

.calibration-value .value {
    font-weight: bold;
    color: #007bff;
}

.calibration-value2 {
    position: absolute;
    right: 210px;
    background: #e9ecef;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid #dee2e6;
}

.btnModalStartStop {
    position: absolute;
    right: 370px;
    padding: 5px 15px;
    border-radius: 20px;
}

.calibration-value2 .value {
    font-weight: bold;
    color: #007bff;
}

#configModal .form-label {
    font-weight: 500;
    color: #2c3e50;
}

#configModal .modal-content {
    border-radius: 15px;
}

#configModal .btn-primary {
    background-color: #3498db;
    border-color: #3498db;
}

#configModal .btn-primary:hover {
    background-color: #2980b9;
}

#iframeJogo {
    pointer-events: auto !important;
}

#canvas {
    cursor: pointer !important;
}

.modal-superwide {
    max-width: 75vw;
    width: 75vw;
}

.custom-card-img {
    height: 260px;
    object-fit: cover;
    width: 100%;
}

.card-body {
    min-height: 220px;
}

.card {
    min-width: 22rem;
}

.modal-dialog.modal-xl {
    max-width: 90vw;
    height: calc(100vh - 40px);
    margin: 20px auto;
    display: flex;
    flex-direction: column;
}

.modal-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-body {
    flex: 1 1 auto;
    padding: 0;
    position: relative;
    overflow: hidden;
    height: 100%;
}

#iframeJogo {
    width: 100%;
    height: 100%;
    border: none;
    z-index: 0;
}

.fullscreen-iframe {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    border: none !important;
    background: white;
}

#modalJogo.fullscreen-active .modal-body {
    height: 100vh;
}

#modalJogo.fullscreen-active iframe {
    height: 100%;
}

.custom-modal {
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.95);
    /* fundo translúcido */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    padding: 1rem;
}

.modal-title {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
}

.countdown-text {
    font-size: 3rem;
    font-weight: 600;
    color: #0d6efd;
    /* cor primária do Bootstrap */
}

.custom-progress {
    height: 20px;
    border-radius: 10px;
    background-color: #e9ecef;
    overflow: hidden;
}

.custom-progress .progress-bar {
    background: linear-gradient(90deg, #0d6efd, #66bfff);
}