/* Controls Area */
.controls {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: center;

}


.btn-save {
    background-color: #059669;
    color: white;
    margin-left: auto;
}

.btn-danger {
    background-color: var(--danger);
    color: white;
    font-size: 0.8rem;
    padding: 4px 8px;
}

.btn-nav {
    background-color: #9ca3af;
    color: white;
    font-size: 0.8rem;
    padding: 4px 8px;
}


/* Item Container */
#builder-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Individual Cards */
.item-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border-left: 5px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.item-card.type-slide {
    border-left-color: var(--c-primary);
}

.item-card.type-question {
    border-left-color: #8b5cf6;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.card-title {
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #6b7280;
}

.card-actions {
    display: flex;
    gap: 5px;
}

label {
    display: block;

    font-weight: 500;
    font-size: 0.9rem;
}


textarea {
    resize: vertical;
    min-height: 80px;
}

/* Choice List Styling */
.choices-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.choice-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.choice-item input[type="radio"] {
    width: auto;
    transform: scale(1.2);
    cursor: pointer;
}

.add-choice-btn {
    margin-top: 10px;
    font-size: 0.8rem;
}

#builder-container input {
    display: block;
}


:root {
    --primary: var(--c-primary);
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --border: #e2e8f0;
    --correct: rgb(34, 155, 34);
}

.controlsOver {
    display: flex;
    gap: 1rem;
    align-items: center;
    bottom: 0;
    position: absolute;
}


#slide-container {
    flex-grow: 1;
    overflow: scroll;
}

.readable {
    text-align: left;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.readable:hover {
    background: var(--bg);
}

.readable.speaking {
    background: var(--card-bg);
    border-left: 4px solid var(--primary);
}

.choices {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.choice-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.choice-row p {
    margin: 0;
}

.choice-row button {
    transition: all 0.3s;
    width: 25px;
    height: 25px;
    font: 3em sans-serif;
    line-height: normal;
    border-radius: 7px;
    box-shadow: unset;
    border: rgb(231, 231, 231) solid 1px;
    color: transparent;
    line-height: unset;
    padding: 0;
    margin: 0;
    background: #fff;
}

.choice-row button:hover {
    color: rgb(189, 189, 189);
    background: #d8d8d8;
}

.choice-row button:active {
    color: rgb(28, 130, 0);
    background: #c8ffcb;
    font-size: 4em;
}

.quiz-feedback {
    font-weight: bold;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.nav-buttons {
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    margin-top: 1.5rem;
}