/* Resetting some default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* General Body Styling */
body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #3a7bd5, #00d2ff); /* Gradient background */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  color: white;
  overflow: hidden; /* Prevent scroll */
}

/* Container styling for the quiz */
.container {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
  width: 85%;  /* Responsive width */
  height: 90%; /* Ensure it fits in the viewport */
  display: flex;
  flex-direction: column;
  justify-content: space-between;  /* Align content in the available space */
  overflow-y: auto;
}

/* Header Styling */
.header {
  margin-bottom: 20px;
  font-size: 1.2em;
  text-align: center;
}

.header h1 {
  font-size: 2em;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}

.header p {
  margin: 5px 0;
}

/* Line separator */
hr {
  border: 1px solid #fff;
  margin: 15px 0;
}

/* Flex container to create two columns */
.flex-container {
  display: flex;
  justify-content: space-between;
  flex-grow: 1; /* Allow the container to take remaining space */
  margin-bottom: 20px;
  flex-wrap: wrap; /* Allow wrap for smaller screens */
}

/* Styling for the exam information and instructions */
.exam-info, .instructions {
  flex: 1;
  padding: 10px;
  text-align: left;
}

/* Styling for links */
.instructions a {
  color: #ff6347;
  text-decoration: none;
  pointer-events: none; /* Disable link initially */
  cursor: not-allowed; /* Indicate that the link is disabled */
  opacity: 0.5; /* Make the link appear faded (disabled) */
  display: none; /* Hide the link initially */
}

/* Active link style */
.instructions a.active {
  pointer-events: auto; /* Enable clicking */
  color: #ff6347;
  cursor: pointer; /* Change cursor to indicate link is active */
  opacity: 1; /* Full opacity for active links */
  display: block; /* Make the link visible after the exam starts */
}

/* Timer Styling */
#timer {
  background-color: #ff6347;
  color: white;
  padding: 15px;
  font-size: 2em;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Add animation for fade-in effect */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
  .container {
    width: 95%;
    height: 100%;  /* Ensure it still fits on the screen */
  }

  .header h1 {
    font-size: 1.8em;
  }

  .flex-container {
    flex-direction: column;
  }

  .exam-info, .instructions {
    text-align: center;
    margin-bottom: 20px;
  }

  #timer {
    font-size: 1.5em;
  }
}
