/* Cardset Activity Styles */

/* Grid Layout (from nosidebar.css) */
.grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
      grid-template-columns: 1fr;
      grid-template-areas: "topnav"
 "main"
 "footer";
}

.topnav {
  -ms-grid-row: 1;
  -ms-grid-column: 1;
  grid-area: topnav;
}

.sidenav {
  grid-area: sidenav;
}

.main {
  -ms-grid-row: 2;
  -ms-grid-column: 1;
  grid-area: main;
}

.footer {
  -ms-grid-row: 3;
  -ms-grid-column: 1;
  grid-area: footer;
}

/* Simple cardset styling - close to original */
.mainCenter {
    margin-left: auto;
    margin-right: auto;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

/* Original card style from cards.css */
.cardBox {
    width: 100%;
    max-width: 600px;
    min-width: 400px;
    height: 300px;
    border: 5px solid #007bff;
    border-radius: 25px;
    margin-left: auto;
    margin-right: auto;
    display: table;
    background-image: url("/img/qbkls.png");
}

.cardBox p {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.4em;
    line-height: 120%;
    letter-spacing: 1px;
    word-spacing: 2px;
    color: #000000;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center; 
    vertical-align: middle;
    display: table-cell; 
}

#question {
    transition: font-size 0.3s ease;
}

.myButton {
    background: #007bff;
    border: none;
    color: white;
    padding: 16px 32px;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
    margin: 15px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
    min-width: 120px;
    white-space: nowrap;
}

.myButton:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.4);
}

.myButton:active {
    background: #004085;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.mode {
    cursor: pointer;
    padding: 4px 8px;
    margin: 0 2px;
    border-radius: 3px;
    transition: all 0.2s ease;
    font-weight: 400;
    color: #6c757d;
    font-size: 14px;
    border: 1px solid transparent;
}

.mode:hover {
    background-color: #f8f9fa;
    color: #495057;
    border-color: #dee2e6;
}

.mode.active {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 500;
    border-color: #adb5bd;
}

.centerAlign {
    text-align: center;
    margin: 20px 0;
}

.controls-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #dee2e6;
    opacity: 0.9;
}

.progress-indicator {
    display: none;
    margin: 20px 0;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: #007bff;
    width: 0%;
    transition: width 0.3s ease;
}

.card-counter {
    font-size: 14px;
    color: #666;
    margin-top: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .mainCenter {
        padding: 15px;
    }

    .cardBox {
        min-width: 300px;
        height: 250px;
    }

    .cardBox p {
        font-size: 2em;
    }

    .myButton {
        padding: 14px 28px;
        font-size: 16px;
        min-width: 100px;
    }

    .mode {
        display: block;
        margin: 3px auto;
        max-width: 180px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cardBox {
        min-width: 250px;
        height: 200px;
    }

    .cardBox p {
        font-size: 1.6em;
    }
}

/* Simple fade animation */
.card-fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Accessibility improvements */
.myButton:focus,
.mode:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
} 

/* ====== Begin styles copied from multi/multi.css for create page consistency ====== */

.page-header {
    padding: 30px 0;
    margin-bottom: 30px;
}

.page-header h1 {
    color: #495057;
    margin-bottom: 25px;
    font-size: 2.2em;
    text-align: center;
}

.version-notice {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    border-radius: 6px;
    padding: 15px 20px;
    margin: 20px 0;
    text-align: center;
}

.version-notice p {
    margin: 0;
    color: #1976d2;
    font-size: 0.95em;
    line-height: 1.4;
}

.version-notice a {
    color: #1565c0;
    text-decoration: underline;
    font-weight: 500;
}

.version-notice a:hover {
    color: #0d47a1;
}

.nav-button {
    display: inline-block;
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background: #5a6268;
    color: #1875d0;
    text-decoration: underline;
}

.workflow-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.step-item {
    color: #6c757d;
    font-size: 0.9em;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.user-status {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-radius: 6px;
    margin-top: 20px;
}

.user-status.logged-in {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.user-status.logged-out {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.status-icon {
    font-size: 1.2em;
    margin-right: 10px;
}

.user-status p {
    margin: 0;
}

.user-status a {
    color: inherit;
    text-decoration: underline;
}

.exercise-creator {
    max-width: none;
    margin: 0;
}

.form-section {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.form-section h2 {
    color: #495057;
    margin-bottom: 20px;
    font-size: 1.5em;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 30px;
    max-width: none;
    margin: 0;
}

.success-message h2 {
    color: #28a745;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 600;
}

.success-message p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.url-display {
    margin: 20px 0;
    padding: 15px;
    background: #fff;
    border: 2px solid #28a745;
    border-radius: 6px;
    display: inline-block;
}

.activity-url {
    color: #007bff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    word-break: break-all;
}

.activity-url:hover {
    color: #0056b3;
    text-decoration: underline;
}

.action-buttons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .create_button {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    color: white;
    border: 2px solid #007bff;
    background: #007bff;
    cursor: pointer;
    font-size: 16px;
}

.action-buttons .create_button.secondary {
    background: #6c757d;
    border: 2px solid #6c757d;
    color: white;
}

.action-buttons .create_button:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.action-buttons .create_button.secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.create_formhead {
    display: block;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 5px;
    color: #333;
}

.create_textinput {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
}

.create_textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: Arial, sans-serif;
    resize: vertical;
    margin-bottom: 15px;
}

.create_button {
    padding: 10px 20px;
    border: 1px solid #007bff;
    background: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    margin-top: 10px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.create_button:hover {
    background: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

.create_button:disabled {
    background: #6c757d;
    border-color: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.error {
    color: #dc3545;
    font-weight: bold;
    margin-top: 10px;
}

.success {
    color: #28a745;
    font-weight: bold;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .workflow-steps {
        gap: 10px;
    }
    .create_button {
        width: 100%;
    }
    .success-message {
        padding: 20px 15px;
    }
    .success-message h2 {
        font-size: 24px;
    }
    .activity-url {
        font-size: 16px;
    }
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    .action-buttons .create_button {
        width: 100%;
        max-width: 300px;
    }
    .form-section {
        padding: 15px;
    }
}

/* ====== End styles copied from multi/multi.css ====== */ 