* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  display: flex;
  height: 100vh;
  align-items: center;
  justify-content: center;
  background-image: url('../img/Fondo\ visual\ moderno.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.container {
  display: flex;
  max-width: 900px;
  background: transparent; /* Changed from white */
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  border-radius: 10px;
  overflow: hidden;
}

.login-box {
  flex: 1;
  padding: 40px;
  background: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
  border-radius: 10px;
}

.login-box h1 {
  margin-bottom: 10px;
  color: #333;
}

.login-box p {
  margin-bottom: 20px;
  color: #666;
}

.login-box a {
  color: #d33;
  text-decoration: none;
}

form label {
  display: block;
  margin-top: 15px;
  color: #020202;
  font-weight: 700;
}

form input, form select {
  /*width: 100%;*/
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.20);
}

.registration-form input, .registration-form select {
  width: 100%;
}

.remember {
  margin-top: 15px;
  display: flex;
  align-items: center;
}

button {
  display: block;
  margin: 20px auto;
  width: 50%;
  padding: 12px;
  background: rgb(160, 84, 84);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  background: #b22;
}

.forgot {
  display: block;
  margin-top: 10px;
  text-align: right;
}

footer {
  margin-top: 30px;
  font-size: 12px;
  color: #999;
}

footer a {
  color: #999;
  margin: 0 5px;
}

.illustration {
  flex: 1;
  background: transparent; /* Changed from #222 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Modal Styles */
.alert-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
}

.alert-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #888;
    width: 80%;
    max-width: 450px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    font-size: 1.1em;
}

.alert-modal-content.success {
    border-left: 6px solid #28a745;
}

.alert-modal-content.error {
    border-left: 6px solid #dc3545;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Styles from course/index.php */
.course-body {
    display: block;
    height: auto;
}
.course-container {
    max-width: 850px;   
    width: 90%;
    margin: 40px auto; 
    padding: 40px;
    background: rgba(0,0,0,0.55);
    border-radius: 14px;
}

/* New styles for course content */
.modulo {
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.modulo h2 {
  background-color: #f0f0f0;
  padding: 15px 20px;
  margin: 0;
  cursor: pointer;
  font-size: 1.2em;
  color: #333;
  border-bottom: 1px solid #ddd;
}

.modulo h2:hover {
  background-color: #e0e0e0;
}

.contenido {
  padding: 20px;
  display: none; /* Hidden by default */
  background-color: #fff;
}

.contenido p {
  margin-bottom: 10px;
  line-height: 1.6;
  color: #555;
  text-align: justify;
}

.contenido strong {
  color: #333;
}

.frase {
  font-style: italic;
  color: #777;
  border-left: 4px solid #d33;
  padding-left: 10px;
  margin-top: 20px;
}

.intro-text {
  font-size: 1.15em;
  color: #444;
  margin-bottom: 30px;
  line-height: 1.8;
  text-align: justify;
  padding: 0 10px;
}

.btn-exam {
  display: inline-block;
  width: 50%;
  padding: 10px;
  font-size: 0.9em;
  background: #d33;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  margin-top: 20px;
}

.btn-exam:hover {
  background: #b22;
}

/* Exam page specific styles */
.exam-body {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px 0;
}


.question {
    background: rgba(255, 255, 255, 0.45);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.question p {
    margin-bottom: 18px;
    font-weight: 600;
    font-size: 17px;
    color: #ffffff;
}

.options {
    list-style-type: none;
    padding-left: 0; /* Ensure no default padding pushes content */
}

.options li {
    margin-bottom: 20px; /* Space between options */
    display: flex;
    align-items: center; /* Align radio button and text vertically centered */
    text-align: left; /* Align option text to the left */
    word-wrap: break-word; /* Ensure long words break and wrap */
    color: #fff;
}

.options li input[type="radio"] {
  /* margin-right: 10px; /* Increased space between radio button and text */
    flex-shrink: 0; /* Prevent radio button from shrinking */
}

.options li label:has(input:checked) {
    color: #90EE90; /* Light Green */
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: rgba(187, 34, 34, 0.192); /* Rosa institucional */
  color: rgb(0, 0, 0); /* Letras blancas */
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;

  /* Centrado horizontal */
  margin: 0 auto;
  display: block;
  text-align: center;
}
