/* Global Styles */
body {
    background-color: #ebe8e8;  
    font-family: 'Open Sans', sans-serif; 
}

.jspsych-content {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.15); 
    padding: 50px;
    max-width: 900px; 
    border: 3px solid #d9dbde; 
}

.jspsych-btn {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.jspsych-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Audio player distribution */
.reference-container {
    padding: 20px;
    border-radius: 10px;
    border: 3px solid #003366;
    margin-bottom: 30px;
    text-align: center;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.samples-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
}

.sample-box {
    background-color: #fafafa;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #ddd;
    width: 45%;
    text-align: center;
}

/* Attribute matrix */
.attribute-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.attribute-title {
    font-weight: 700;
    font-size: 1.1em;
    width: 20%;
    text-align: left;
}

.btn-group {
    display: flex;
    gap: 10px;
    width: 75%;
}

.btn-group input[type="radio"] {
    display: none;
}

.btn-group label {
    flex: 1;
    padding: 12px;
    border: 2px solid #ccc;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
    color: #555;
    background: white;
}

.btn-group input[type="radio"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f5f5f5;
}

.btn-group input[type="radio"]:disabled + label:hover {
    border-color: #ccc;
    background-color: #f5f5f5;
}

.btn-group label:hover {
    border-color: #888;
    background-color: #f9f9f9;
}

.btn-group input[type="radio"]:checked + label {
    background-color: #003366; 
    color: white;
    border-color: #003366;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* Vertical buttons on the bottom right */
.experiment-wrapper {
    position: relative; 
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 20px;
}

/* .vertical-nav {
    position: absolute;
    left: 850px;
    bottom: 0; 
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
} */

.nav-btn {
    width: 120px;
    padding: 15px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1rem;
    color: white;
    transition: all 0.3s ease;
}

.btn-next { 
    background-color: #003366; 
    font-family: 'Open Sans', sans-serif;
}

.btn-skip { 
    background-color: #607d8b; 
    font-family: 'Open Sans', sans-serif;
}

.btn-exit { 
    background-color: #8B0000; 
    font-family: 'Open Sans', sans-serif;
}

.btn-exit.disabled { 
    background-color: #cccccc; 
    cursor: not-allowed;
    opacity: 0.6;
}

/* Attributes section */
.attributes-section {
    display: flex;
    margin-bottom: 30px;
}

.attributes-header {
    background-color: #003366;
    color: white;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-orientation: mixed;
    padding: 20px 15px;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 2px;
}

.attributes-content {
    flex: 1;
    padding-left: 20px;
}

/* Participant ID box */
.participant-id-box {
    position: absolute;
    top: 100px;
    left: -200px;
    background-color: #f0f4f8;
    border: 1px solid #003366;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #003366;
    z-index: 100;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05);
}
