html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.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 #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.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;
}
/* Nova's Puzzle Den branding */

.site-header {
    background: linear-gradient( 135deg, #ff5a1f 0%, #ff7a3d 55%, #f7a987 100% );
    margin-bottom: 2rem;
}

    .site-header .navbar {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

.site-logo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid white;
}

.brand-name {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.1;
}

.brand-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.site-header .nav-link {
    color: white !important;
    font-weight: 600;
}

    .site-header .nav-link:hover {
        color: #fff3e8 !important;
    }

@media (max-width: 576px) {
    .site-logo {
        width: 52px;
        height: 52px;
    }

    .brand-name {
        font-size: 1.05rem;
    }

    .brand-subtitle {
        font-size: 0.75rem;
    }
}

/* Games page hero */

.nova-hero {
    background: linear-gradient( 135deg, #fff1e7 0%, #ffd6c0 100% );
    border-radius: 18px;
    padding: 2.5rem 3rem;
    overflow: hidden;
}

    .nova-hero h1 {
        font-size: 2.5rem;
        font-weight: 800;
        color: #7a2e12;
        margin-bottom: 1rem;
    }

.nova-hero-label {
    color: #ff5a1f;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin-bottom: 0.4rem;
}

.nova-hero-mascot {
    width: 190px;
    height: 190px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid white;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {

    .nova-hero {
        padding: 2rem;
    }

        .nova-hero h1 {
            font-size: 2rem;
        }
}
/* Nova game cards */

.nova-game-card {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 5px solid #35aee2;
}

    .nova-game-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
    }

    .nova-game-card .card-title {
        color: #7a2e12;
        font-weight: 700;
    }

.nova-game-button {
    background-color: #ff5a1f;
    color: white;
    border: 0;
    border-radius: 20px;
    padding: 0.5rem 1.1rem;
    font-weight: 600;
}

    .nova-game-button:hover {
        background-color: #e94b12;
        color: white;
    }
#gameSearch {
    border: 2px solid #35aee2;
    border-radius: 12px;
}

    #gameSearch:focus {
        border-color: #ff5a1f;
        box-shadow: 0 0 0 0.2rem rgba(255, 90, 31, 0.15);
    }
/* Individual game page */

.nova-level-finder {
    border: 0;
    border-left: 5px solid #ff5a1f;
    border-radius: 14px;
    background-color: #fff8f3;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

    .nova-level-finder h2,
    .nova-level-finder h4 {
        color: #7a2e12;
        font-weight: 700;
    }

    .nova-level-finder input {
        border: 2px solid #35aee2;
        border-radius: 10px;
    }

        .nova-level-finder input:focus {
            border-color: #ff5a1f;
            box-shadow: 0 0 0 0.2rem rgba(255, 90, 31, 0.15);
        }

.nova-range-button {
    border: 2px solid #35aee2;
    color: #167fae;
    background-color: white;
    border-radius: 18px;
    font-weight: 600;
}

    .nova-range-button:hover,
    .nova-range-button:focus {
        background-color: #35aee2;
        border-color: #35aee2;
        color: white;
    }

.nova-level-button {
    border: 1px solid #f08aaa;
    color: #a8325c;
    background-color: white;
    border-radius: 15px;
}

    .nova-level-button:hover {
        background-color: #f08aaa;
        border-color: #f08aaa;
        color: white;
    }
/* Level walkthrough page */

.nova-video {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.14);
    background-color: #000;
}

.nova-walkthrough-nav {
    background-color: #fff8f3;
    border-left: 5px solid #ff5a1f;
    border-radius: 14px;
    padding: 1.25rem;
}

    .nova-walkthrough-nav h2 {
        color: #7a2e12;
        font-weight: 700;
    }

.nova-current-level {
    background-color: #ff5a1f;
    border: 1px solid #ff5a1f;
    color: white;
    border-radius: 15px;
    font-weight: 700;
}

.nova-nav-button {
    border: 2px solid #35aee2;
    color: #167fae;
    background-color: white;
    border-radius: 20px;
    font-weight: 600;
}

    .nova-nav-button:hover {
        background-color: #35aee2;
        border-color: #35aee2;
        color: white;
    }

/* Nova homepage */

.nova-home-hero {
    background: linear-gradient( 135deg, #fff1e7 0%, #ffd6c0 55%, #f7a987 100% );
    border-radius: 22px;
    padding: 3.5rem;
    margin-bottom: 3rem;
    overflow: hidden;
}

    .nova-home-hero h1 {
        color: #7a2e12;
        font-size: 3rem;
        font-weight: 800;
        margin-bottom: 0.5rem;
    }

.nova-home-tagline {
    color: #167fae;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.nova-home-mascot {
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.nova-home-primary {
    background-color: #ff5a1f;
    color: white;
    border: 0;
    border-radius: 24px;
    padding: 0.7rem 1.5rem;
    font-weight: 700;
}

    .nova-home-primary:hover {
        background-color: #e94b12;
        color: white;
    }

.nova-home-secondary {
    background-color: white;
    color: #167fae;
    border: 2px solid #35aee2;
    border-radius: 24px;
    padding: 0.6rem 1.5rem;
    font-weight: 700;
}

    .nova-home-secondary:hover {
        background-color: #35aee2;
        color: white;
    }

.nova-home-help {
    margin: 3rem 0;
}

    .nova-home-help > h2 {
        color: #7a2e12;
        font-weight: 800;
    }

.nova-step-card {
    height: 100%;
    padding: 1.5rem;
    background-color: #fff8f3;
    border-radius: 16px;
    border-top: 5px solid #35aee2;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}

    .nova-step-card h3 {
        font-size: 1.2rem;
        color: #7a2e12;
        font-weight: 700;
    }

.nova-step-number {
    width: 42px;
    height: 42px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-color: #ff5a1f;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

@media (max-width: 767px) {

    .nova-home-hero {
        padding: 2rem;
    }

        .nova-home-hero h1 {
            font-size: 2.2rem;
        }

    .nova-home-tagline {
        font-size: 1.3rem;
    }

    .nova-home-mascot {
        width: 210px;
        height: 210px;
    }
}

/* YouTube section */

.nova-youtube-section {
    margin: 4rem 0 2rem;
    padding: 2.5rem;
    border-radius: 20px;
    background: linear-gradient( 135deg, #fff1e7 0%, #ffd6c0 100% );
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

    .nova-youtube-section h2 {
        color: #7a2e12;
        font-weight: 800;
    }

.nova-youtube-image {
    width: 100%;
    max-width: 340px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
}

.nova-youtube-button {
    background-color: #ff5a1f;
    color: white;
    border: 0;
    border-radius: 24px;
    padding: 0.7rem 1.5rem;
    font-weight: 700;
}

    .nova-youtube-button:hover {
        background-color: #e94b12;
        color: white;
    }

@media (max-width: 767px) {

    .nova-youtube-section {
        padding: 1.75rem;
        text-align: center;
    }
}
/* Footer */

.nova-footer {
    background-color: #7a2e12;
    color: white;
}

.nova-footer-logo {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid white;
}

.nova-footer-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.nova-footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.nova-footer-link {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

    .nova-footer-link:hover {
        color: #ffd6c0;
    }

.nova-footer-copyright {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 767px) {
    .nova-footer {
        text-align: center;
    }

        .nova-footer .d-flex {
            justify-content: center;
        }
}
.nova-game-thumbnail {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
/* Walkthrough video cards */

.nova-video-card {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.09);
    border-top: 5px solid #f08aaa;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .nova-video-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.13);
    }

.nova-video-card h3 {
    color: #7a2e12;
    font-weight: 700;
}
