/* Round indicator and guess text styling */
.round-indicator {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2563eb;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(to right, #ffffff, #f0f9ff, #ffffff);
    border-radius: 50px;
    margin: 1rem 0;
}

/* Timer container styling */
.timer-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.5rem;
    margin: 1rem 0;
}

.timer-indicator {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ff6b00;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(to right, #ffffff, #fff8f0, #ffffff);
    border-radius: 50px;
}

.score-indicator {
    font-size: 1.6rem;
    font-weight: 600;
    color: #2563eb;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, #ffffff, #f0f9ff, #ffffff);
    border-radius: 50px;
}

.timer-indicator.text-warning {
    color: #ffc107;
    animation: pulse 1s infinite;
}

.timer-indicator.text-danger {
    color: #dc3545;
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        opacity: 1;
    }
}

.guess-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 1.5rem 0;
    padding: 0.5rem;
    letter-spacing: 0.5px;
}

/* Price input container styling */
.price-input {
    max-width: 400px;
    margin: 2rem auto;
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Button groups styling */
.price-input .button-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 1rem 0;
}

/* Individual button styling */
.price-input .button-group .adjust-btn {
    padding: 0.75rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #f1f5f9;
    color: #334155;
}

.price-input .button-group .adjust-btn:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

.price-input .button-group .adjust-btn:active {
    transform: translateY(1px);
}

/* Input field styling */
.price-input input[type="number"] {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.2s ease;
}

.price-input input[type="number"]:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: #ffffff;
}

/* Remove number input spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Submit button styling */
.btn-primary {
    background: #2563eb;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 12px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px -1px rgba(37, 99, 235, 0.3);
}

.btn-primary:active {
    transform: translateY(1px);
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .price-input {
        max-width: 100%;
        padding: 1rem;
    }

    .round-indicator {
        font-size: 1.5rem;
        padding: 0.4rem 1.2rem;
    }

    .guess-text {
        font-size: 1.3rem;
    }

    .price-input .button-group {
        gap: 0.5rem;
    }

    .price-input .button-group .adjust-btn {
        padding: 0.6rem 0;
        font-size: 1rem;
    }

    .price-input input[type="number"] {
        font-size: 1.3rem;
        padding: 0.8rem;
    }
}

/* Car image container */
.car-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.object-fit-cover {
    object-fit: cover;
}

.card-body {
    text-align: center;
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.spec-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.spec-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.3rem;
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 500;
}

.logo {
    width: 100%;
    height: auto;
    display: block;
}

.logo-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

/* Streak container and indicators */
.streak-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.25rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    max-width: 80%;
    margin: 0 auto;
}

.streak-indicator {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c757d;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.streak-indicator.active {
    color: #dc3545;
    background-color: #fff5f5;
    animation: pulse-fire 1.5s infinite;
}

.multiplier-indicator {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c757d;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.multiplier-indicator.active {
    color: #ffc107;
    background-color: #fffbeb;
    animation: pulse-bolt 1.5s infinite;
}

.bonus-indicator {
    font-size: 1.1rem;
    font-weight: 600;
    color: #6c757d;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.bonus-indicator.active {
    color: #28a745;
    background-color: #f0fff4;
    animation: pulse-clock 1.5s infinite;
}

@keyframes pulse-fire {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 5px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

@keyframes pulse-bolt {
    0% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.4); }
    70% { box-shadow: 0 0 0 5px rgba(255, 193, 7, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0); }
}

@keyframes pulse-clock {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 5px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Score feedback styles */
.score-feedback-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 300px;
    animation: slide-in-right 0.5s ease forwards, fade-out 0.5s ease 4.5s forwards;
}

.score-feedback {
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #6c757d;
}

.score-feedback.excellent {
    border-left-color: #28a745;
    background-color: #f0fff4;
}

.score-feedback.good {
    border-left-color: #17a2b8;
    background-color: #f0f8ff;
}

.score-feedback.fair {
    border-left-color: #ffc107;
    background-color: #fffbeb;
}

.score-feedback.poor {
    border-left-color: #dc3545;
    background-color: #fff5f5;
}

.score-feedback .car-name {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.score-feedback .guess-details {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 8px;
    color: #6c757d;
}

.score-feedback .score-value {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.score-feedback .raw-score {
    opacity: 0.7;
}

.score-feedback .multiplier {
    font-weight: bold;
    color: #ffc107;
    margin: 0 5px;
}

.score-feedback .adjusted-score {
    font-weight: bold;
}

.score-feedback .bonus-info {
    font-size: 0.9rem;
    color: #28a745;
    font-weight: 600;
}

@keyframes slide-in-right {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Add script to remove the element after animation */
#score-feedback {
    animation-fill-mode: forwards;
}

/* Time-up popup styling */
.time-up-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fade-in 0.3s ease-in-out;
}

.time-up-content {
    background-color: #ffffff;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    max-width: 90%;
    width: 400px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: pop-in 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.time-up-content h2 {
    font-size: 2rem;
    color: #dc3545;
    margin-bottom: 1rem;
    font-weight: 700;
}

.time-up-content p {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #333;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pop-in {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}