@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Patrick+Hand&display=swap');

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #fdfdfd;
  color: #333;
  font-family: 'Patrick Hand', cursive;
  font-size: 1.25rem;
}

main {
  flex: 1;
}

h1, h2, h3, .navbar-brand, .btn-check + .btn, .btn-primary, .btn-success, .quiz-title {
  font-family: 'Fredoka One', cursive;
}

/* Hipster Highlighter Effect */
.highlighter-wrap {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.highlighter-effect::after {
    content: "";
    position: absolute;
    left: -5px;
    right: -5px;
    bottom: 5px;
    height: 40%;
    background-color: rgba(255, 235, 59, 0.6);
    z-index: -1;
    transform: rotate(-1deg) skew(-5deg);
    border-radius: 5px;
}

.highlighter-effect-blue::after {
    background-color: rgba(135, 206, 250, 0.5);
}

/* Card Styling */
.card {
    border: 3px solid #333;
    box-shadow: 8px 8px 0px #333 !important;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 10px 10px 0px #333 !important;
}

/* Button Styling */
.btn {
    border-width: 2px !important;
}

.btn-primary {
    background-color: #ff7043;
    border-color: #333 !important;
    color: white;
}

.btn-primary:hover {
    background-color: #f4511e;
    color: white;
}

.btn-outline-primary, .btn-outline-success, .btn-outline-warning, .btn-outline-danger, .btn-outline-info {
    border-color: #333 !important;
    color: #333 !important;
}

.btn-check:checked + .btn-outline-primary { background-color: #e3f2fd !important; } /* Mixed - light neutral blue */
.btn-check:checked + .btn-outline-success { background-color: #b8e44b !important; } /* Div - Green */
.btn-check:checked + .btn-outline-warning { background-color: #ffdd4d !important; } /* Sub - Yellow */
.btn-check:checked + .btn-outline-danger { background-color: #ff5d7d !important; }  /* Add - Pink */
.btn-check:checked + .btn-outline-info { background-color: #70d9ff !important; }    /* Mul - Blue */
.btn-check:checked + .btn-outline-dark { background-color: #e9ecef !important; color: #333 !important; } /* Fixed Numbers - Light Grey */
.btn-check:checked + .btn-outline-secondary { background-color: #e9ecef !important; color: #333 !important; } /* Any - Light Grey */

/* Difficulty Selected States */
.btn-check:checked + .btn-outline-success[for="diffEasy"] { background-color: #c8e6c9 !important; }
.btn-check:checked + .btn-outline-primary[for="diffNormal"] { background-color: #e3f2fd !important; }
.btn-check:checked + .btn-outline-danger[for="diffHard"] { background-color: #ffcdd2 !important; }
.btn-check:checked + .btn-outline-dark[for="diffNightmare"] { background-color: #333 !important; color: white !important; }

.navbar {
    border-bottom: 3px solid #333 !important;
    margin-bottom: 2rem !important;
}

.footer {
    border-top: 3px solid #333 !important;
    background-color: #fff;
    font-size: 1rem;
}

.navbar-brand {
    font-size: 1.8rem;
    color: #333 !important;
}

.form-range::-webkit-slider-thumb {
    background: #ff7043;
    border: 2px solid #333;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #333;
  border-color: #333;
}

html {
  min-height: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}