@import url('https://fonts.googleapis.com/css?family=Raleway:400,700&display=swap');

/* ==== Background ==== */
body {
    font-family: 'Raleway', sans-serif;
    background: linear-gradient(135deg, #1e2f5e, #2856a6 90%);
    min-height: 100vh;
    margin: 0;
    color: #eaf2ff;
    overflow-x: hidden;
}

.school-picker-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;      /* middle of screen vertically */
    justify-content: center;
    padding-top: 0;
}


.picker-card {
    background: rgba(29, 44, 84, 0.85);
    border-radius: 26px;
    box-shadow: 0 12px 54px 0 rgba(34, 54, 104, 0.18);
    padding: 52px 44px 54px 44px;
    min-height: 540px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1.5px solid rgba(255, 255, 255, 0.10);
    transition: max-width 0.22s cubic-bezier(.52, 0, .18, 1);
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.picker-card h1,
.picker-card h2 {
    font-size: 2.1rem;
    font-weight: 800;
    margin: 0 0 18px 0;
    color: #eaf2ff;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 14px;
    text-shadow: 0 3px 14px rgba(20, 30, 70, 0.11);
}

.picker-card p {
    font-size: 1.13rem;
    margin-bottom: 30px;
    color: #b7c8f4;
    text-align: center;
}

.school-search-input {
    width: 100%;
    margin-bottom: 22px;
    padding: 0.9rem 1.2rem;
    border-radius: 15px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    font-size: 1.07rem;
    color: #eaf2ff;
    background: rgba(40, 86, 166, 0.22);
    outline: none;
    transition: border 0.17s, background 0.18s;
    box-shadow: 0 2px 10px rgba(40, 86, 166, 0.06);
}

.school-search-input::placeholder {
    color: #b5c7ef;
    opacity: 0.8;
}

.school-search-input:focus {
    border-color: #2856a6;
    background: rgba(40, 86, 166, 0.33);
}

/* ==== Grid Styles ==== */
.school-btn-grid,
.year-btn-grid {
    width: 100%;
    display: grid;
    grid-gap: 1.1rem;
    margin-bottom: 2.3rem;
}

.school-btn-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.year-btn-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

/* ==== Button Styles ==== */
.school-btn,
.year-btn,
.picker-btn {
    font-family: 'Raleway', sans-serif;
    font-size: 1.16rem;
    font-weight: 700;
    color: #eaf2ff;
    background: rgba(34, 54, 104, 0.7);
    border: 1.5px solid rgba(255, 255, 255, 0.13);
    box-shadow: 0 3px 16px rgba(40, 86, 166, 0.13);
    border-radius: 18px;
    padding: 1.05em 1.3em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    outline: none;
    transition:
        background 0.17s,
        color 0.17s,
        border 0.16s,
        box-shadow 0.13s,
        transform 0.15s;
    text-align: center;
    margin: 0 auto;
    min-width: 0;
    min-height: 58px;
    user-select: none;
}

.school-btn i,
.year-btn i,
.picker-btn i {
    font-size: 1.2em;
    color: #95c9fd;
    margin-right: 0.5em;
}

.school-btn:hover,
.year-btn:hover,
.picker-btn:hover {
    background: rgba(40, 86, 166, 0.88);
    color: #fff;
    border-color: #a6c4f7;
    box-shadow: 0 7px 28px rgba(40, 86, 166, 0.18);
    transform: translateY(-2px) scale(1.035);
}

.school-btn:active,
.year-btn:active,
.picker-btn:active {
    background: #214082;
    color: #eaf2ff;
    border-color: #b8d7ff;
    transform: scale(0.97);
}

#year-section {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#year-section h2 {
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2.1rem;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.year-btn-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2.1rem;
    justify-content: center;
    width: 100%;
    margin-bottom: 2.5rem;
}

.year-btn {
    background: rgba(47, 99, 178, 0.22);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
    padding: 1.1rem 2.7rem;
    font-size: 1.33rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: background 0.14s, color 0.13s, border 0.13s;
    cursor: pointer;
    box-shadow: 0 3px 24px 0 rgba(34, 54, 104, 0.10);
}

.year-btn:hover,
.year-btn:focus {
    background: #2856a6;
    color: #e5efff;
    border-color: #4f7cca;
    outline: none;
}

.picker-btn {
    background: rgba(34, 54, 104, 0.19);
    color: #e5efff;
    border: 1.5px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    padding: 1.07rem 2.5rem;
    font-size: 1.13rem;
    font-weight: 700;
    margin-top: 2.6rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    justify-content: center;
    cursor: pointer;
    transition: background 0.13s, color 0.13s, border 0.13s;
    box-shadow: 0 2px 10px 0 rgba(40, 86, 166, 0.08);
}

.picker-btn:hover,
.picker-btn:focus {
    background: #223668;
    color: #b1c8fa;
    border-color: #2856a6;
    outline: none;
}

@media (max-width: 700px) {
    .year-btn-grid {
        gap: 1.15rem;
        flex-direction: column;
        align-items: center;
    }

    #year-section h2 {
        font-size: 1.45rem;
        margin-bottom: 1.2rem;
    }

    .year-btn {
        font-size: 1.09rem;
        padding: 0.8rem 1.2rem;
    }

    .picker-btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.97rem;
    }
}

#backBtn {
    margin-top: 2.1rem;
    font-size: 1.02rem;
    border-radius: 11px;
    background: rgba(30, 47, 94, 0.37);
    padding: 0.77em 1.1em;
    border: 1.5px solid rgba(255, 255, 255, 0.09);
}

#backBtn:hover {
    background: rgba(40, 86, 166, 0.41);
    color: #fff;
    border-color: #7fa6db;
}

/* Make it much wider on large screens */
@media (min-width: 1100px) {
    .picker-card {
        max-width: 780px;
        padding-left: 70px;
        padding-right: 70px;
    }
}

@media (min-width: 1440px) {
    .picker-card {
        max-width: 980px;
        padding-left: 110px;
        padding-right: 110px;
    }
}

@media (max-width: 800px) {
    .picker-card {
        max-width: 95vw;
        padding: 28px 8vw 34px 8vw;
        min-height: 350px;
    }
}

/* === Fix Scrollbar === */
::-webkit-scrollbar {
    width: 11px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4e6ab8 30%, #1e2f5e 90%);
    border-radius: 7px;
    border: 2px solid rgba(255, 255, 255, 0.12);
    min-height: 50px;
    transition: background 0.17s;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7393de 0%, #2856a6 90%);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* === Firefox Scrollbar === */
html {
    scrollbar-color: #4e6ab8 #212f52;
    scrollbar-width: thin;
}

/* === Container Height Update === */
.picker-card {
    min-height: 540px;
    /* make it much taller on desktop */
    padding-top: 52px;
    padding-bottom: 54px;
    /* (keep the rest the same) */
}

@media (max-width: 800px) {
    .picker-card {
        min-height: 350px;
        /* shorter but still not tiny */
        padding-top: 28px;
        padding-bottom: 34px;
    }
}