.psi-card {
    width: 100px;
    height: auto;
    margin: 10px;
    cursor: pointer;
    transition: transform 0.2s;
}

.psi-card:hover {
    transform: scale(1.1);
}

#psi-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

#psi-form {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

#psi-results {
    text-align: center;
    margin-top: 20px;
    font-weight: bold;
}

.location-status {
    padding: 5px 10px;
    margin: 10px 0;
    border-radius: 4px;
    display: inline-block;
    font-size: 14px;
}

.location-granted {
    background-color: #d4edda;
    color: #155724;
}

.location-fallback {
    background-color: #fff3cd;
    color: #856404;
}

/* Target card area - CRITICAL SECTION */
.psi-target-area {
    margin: 30px auto;
    text-align: center;
    min-height: 300px;
}

.psi-target-card-placeholder {
    width: 150px;
    height: 250px;
    background-color: #000 !important;
    border-radius: 10px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.psi-question-mark {
    color: white;
    font-size: 80px;
    font-weight: bold;
}

.psi-target-card-revealed {
    width: 150px;
    height: 250px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.psi-target-card-revealed img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Button styles */
.psi-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin: 20px 0;
    transition: background-color 0.3s;
}

.psi-button:hover {
    background-color: #45a049;
}

.psi-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Feedback styles */
.psi-feedback {
    margin: 20px auto;
    padding: 15px;
    border-radius: 5px;
    max-width: 400px;
}

.psi-result-text {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}

.psi-result-text .correct {
    color: #28a745;
}

.psi-result-text .incorrect {
    color: #dc3545;
}

/* Final results styles */
.psi-final-results {
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
    max-width: 600px;
}

.psi-comparison {
    margin-top: 20px;
    padding: 10px;
    background-color: #eee;
    border-radius: 5px;
}

.psi-bar {
    height: 30px;
    margin: 10px 0;
    color: white;
    line-height: 30px;
    padding: 0 10px;
    border-radius: 3px;
    text-align: left;
    white-space: nowrap;
    overflow: visible;
}

.psi-bar.random {
    background-color: #6c757d;
}

.psi-bar.overall {
    background-color: #17a2b8;
}

.psi-bar.user {
    background-color: #28a745;
}

/* Performance comparison styles */
.performance {
    font-size: 18px;
    padding: 10px;
    margin: 15px 0;
    border-radius: 5px;
}

.performance.better {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.performance.worse {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.performance.equal {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}
