/* Text selection styling */
::selection {
  color: darkblue;
  background-color: skyblue;
}

/* Base styles */
body {
  background: #eaeaea;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  min-height: 100vh;
  box-sizing: border-box;
  font-family: monospace;
}

/* Apply border-box to all elements */
*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Base paragraph styling */
p {
  color: black;
  font-family: monospace;
}

/* Common section styling - reduces repetition */
.section-header {
  border: 5px outset;
  border-radius: 10px;
  padding: 1px;
  font-family: monospace;
  margin: auto;
  background: orange;
}

/* Apply common section styling */
.about,
.skills,
.quiz,
.contact,
.learning {
  border: 5px outset;
  border-radius: 10px;
  padding: 1px;
  font-family: monospace;
  margin: auto;
  background: orange;
}

/* Prince header */
.prince {
  font-family: monospace;
  margin: auto;
}

.prince:hover {
  box-shadow: 5px 5px 5px;
}

/* About section */
.about-p {
  font-family: monospace;
  margin: auto;
  text-align: justify;
}

/* Link styles */
a:visited {
  color: purple;
}

a:hover,
a:active,
a:focus {
  color: #777777;
}

/* Skills section */
.skills-p {
  font-family: monospace;
  margin: auto;
}

.skills-ul {
  font-family: monospace;
}

/* Quiz section */
.quiz-container {
  background-color: #fff;
  padding: 5px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 500px;
}

#question {
  margin-bottom: 20px;
}

/* Button grid layout */
.btn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

/* Button styling */
.btn {
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background-color: #0056b3;
}

.btn:focus {
  outline: 2px solid #004085;
  outline-offset: 2px;
}

.btn.correct {
  background-color: #28a745;
}

.btn.wrong {
  background-color: #dc3545;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

/* Utility classes */
.hide {
  display: none;
}

/* Controls layout */
.controls {
  display: flex;
  justify-content: space-between;
}

/* Learning section */
.learning-p {
  font-family: monospace;
  text-align: justify;
}
