:root {
    --primary-color: #58cc02;
    --secondary-color: #fff;
    --error-color: #ff4b4b;
    --success-color: #58cc02;
    --text-color: #333;
    --background-color: #f7f7f7;
}

@font-face {
    font-family: 'Feather Bold';
    src: url('https://d35aaqx5ub95lt.cloudfront.net/fonts/feather-bold.woff2');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Feather Bold', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--background-color);
}

.app-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

/* Header styling */
.app-header {
    position: relative;
    background: none;
    margin-bottom: 20px;
    text-align: center;
}

.progress-bar {
    max-width: 800px;
    margin: 0 auto;
}

.progress-icons {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
}

.progress-icons span {
    font-size: 1.2rem;
}

/* Main content styling */
.main-content {
    margin-top: 0;
    padding: 0;
}

.level-container {
    text-align: left;
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.level-container h2 {
    color: #4b4b4b;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.level-container h3 {
    color: #333;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
}

/* Quiz modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    background-color: white;
    margin: 40px auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    height: auto;
    min-height: 80vh;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Quiz form styling */
.quiz-form, .binary-quiz-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
}

.input-group {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.input-group label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.input-group input {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    padding: 15px;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    width: 100%;
}

/* Button styling */
.check-btn {
    font-family: 'Feather Bold', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 20px 0;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 0 #58a700;
}

.check-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #58a700;
}

/* Close button styling */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #ff4b4b;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10001;
}

.close-btn:hover {
    background-color: #ff3333;
}

.close-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Pattern quiz specific styling */
.pattern-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.pattern-item {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pattern-operator {
    color: #1cb0f6;
    margin: 0 10px;
}

/* Answer options styling */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: auto;
}

.answer-option {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 1.4rem;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.answer-option:hover {
    transform: translateY(-2px);
}

.answer-option:active {
    transform: translateY(1px);
}

/* Progress bar at top of quiz */
.quiz-progress {
    height: 8px;
    background-color: #e5e5e5;
    border-radius: 4px;
    margin-bottom: 20px;
}

.quiz-progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.level-buttons {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.level-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 0 #58a700;
}

.level-btn:hover {
    transform: translateY(-2px);
}

.level-btn:active {
    transform: translateY(2px);
}

.lesson-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.lesson-btn {
    background-color: #1cb0f6;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 15px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 0 #0084c2;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lesson-btn:hover {
    transform: translateY(-2px);
}

.lesson-btn:active {
    transform: translateY(2px);
}

.lesson-btn .icon {
    font-size: 1.4rem;
}

.lesson-content {
    max-width: 800px;
}

.lesson-text {
    margin: 20px 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

.lesson-text h4 {
    color: #1cb0f6;
    margin: 15px 0 10px 0;
}

.lesson-text p {
    margin-bottom: 10px;
}

.lesson-text code {
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 4px;
    font-family: monospace;
}

/* Add these new styles */
.binary-section {
    margin: 20px 0;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.binary-section h4 {
    color: #1cb0f6;
    margin-bottom: 15px;
}

.binary-quiz-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#binaryNumber, #decimalNumber {
    font-family: monospace;
    font-size: 1.2rem;
    color: #333;
    background-color: #e5e5e5;
    padding: 2px 6px;
    border-radius: 4px;
}

h2, h3, h4 {
    font-family: 'Feather Bold', sans-serif;
    letter-spacing: 0.5px;
}

.new-numbers-btn {
    font-family: 'Feather Bold', sans-serif;
    background-color: #1cb0f6;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 0 #0084c2;
    transition: transform 0.2s;
}

.new-numbers-btn:hover {
    transform: translateY(-2px);
}

.new-numbers-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #0084c2;
}

.new-numbers-btn .icon {
    font-size: 1.4rem;
}

/* Estilos de integración para subneting.html */
.subnetting-app-wrapper {
    background-color: #fff;
    border-radius: 20px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Ajustar los estilos existentes de la app */
.app-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
    background: none;
    box-shadow: none;
}

.app-header {
    position: relative;
    background: none;
    margin-bottom: 20px;
}

.modal {
    z-index: 10000; /* Asegurar que los modales aparezcan sobre todo */
}

/* Ajustar el contenedor principal */
.main-content {
    margin-top: 0;
    padding: 0;
}

/* Ajustar los modales para que no interfieran con el footer */
.modal-content {
    margin: 40px auto;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

/* Asegurar que los botones de cierre estén siempre visibles */
.close-btn {
    z-index: 10001;
}

/* Ajustar el ancho de los contenedores de lecciones y quizzes */
.level-container, 
.lesson-content,
.quiz-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Ajustar el espaciado para el contenido existente */
#content .container {
    position: relative;
}

/* Asegurar que el footer permanezca en su lugar */
.footer {
    position: relative;
    z-index: 1;
}

/* Estilos específicos para la integración en subneting.html */
.subnetting-practice-section {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Ajustes para mantener los márgenes de subneting.html */
.subnetting-practice-section .app-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.subnetting-practice-section .level-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Asegurar que los modales aparezcan sobre el contenido de subneting.html */
.subnetting-practice-section .modal {
    z-index: 9999;
}

/* Ajustar el espaciado del contenido */
.subnetting-practice-section .main-content {
    margin: 0;
    padding: 0;
}

/* Mantener los estilos del header dentro de la sección */
.subnetting-practice-section .app-header {
    position: relative;
    background: none;
    padding: 0;
    margin-bottom: 30px;
}

/* Add this to your existing CSS file */
.main-title {
    background-color: #007bff; /* Blue background */
    color: white; /* White text */
    padding: 15px 30px; /* Increased padding for a larger button effect */
    border-radius: 10px; /* More rounded corners */
    text-align: center; /* Center the text */
    font-size: 1.8rem; /* Increased font size */
    font-weight: bold; /* Bold text */
    margin: 20px auto; /* Center the title with auto margins */
    display: inline-block; /* Make it behave like a button */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Shadow effect */
} 