@font-face {
    font-family: 'Sailors';
    src: url('fonts/sailors-webfont.woff2') format('woff2');
}

@font-face {
    font-family: 'Quicksand';
    src: url('fonts/quicksand-regular.woff2') format('woff2');
}

html {
    font-size: clamp(14px, 1vw, 18px);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
}

h1, h2, h3, h4, h5, h6, a, button {
    font-family: 'Sailors', sans-serif;
    font-weight: normal;
}

.container {
    max-width: 1300px;
    width: 100%;
    align-items: center;
    justify-self: center;
    justify-content: center;
    background-color: white;
    padding: 30px;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.65s ease-out forwards;
}

.welcome {
    display: grid;
    align-items: center;
    justify-self: center;
    margin: 0 auto;
    width: 100%;
    max-width: 1300px;
    padding: 4rem 3rem 2rem 3rem;
    line-height: 1.5;
    background-color: white;
    border-bottom: 1px dashed black;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 0.65s ease-out forwards;
}

.welcome h1 {
    font-size: 2rem;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navigation Bar */

.navbar {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    position: relative;
    top: 0;
    z-index: 999;
}

.container.navbar {
    display: flex;
    justify-content: space-between;
    height: 80px;
    margin: 0 auto;
    font-weight: bold;
}

#navbar-logo {
    background-color: transparent;
    background-size: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    font-size: 2rem;
    color: black;
}

.web-logo {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 5px 5px;
    max-height: 70px;
    width: auto;
}

.navbar-menu {
    display: flex;
    align-items: center;
    list-style: none;
    text-align: center;
}

.navbar-item {
    height: 80px;
}

.navbar-links {
    color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 0 1rem;
    height: 100%;
}

.navbar-links:hover {
    transition: all 0.5s ease;
    scale: 1.1;
}

@media screen and (max-width: 960px) {
    .container.navbar {
        display: flex;
        justify-content: space-between;
        height: 80px;
        z-index: 1;
        width: 100%;
        padding: 0;
    }

    .navbar-menu {
        display: grid;
        grid-template-columns: auto;
        margin: 0;
        width: 100%;
        position: absolute;
        top: -1000px;
        opacity: 0;
        transition: all 0.5s ease;
        height: 50vh;
        z-index: -1;
    }

    .navbar-menu.active {
        top: 100%;
        opacity: 1;
        transition: all 0.5s ease;
        z-index: 99;
        height: 50vh;
        font-size: 1.6rem;
        background-color: white;
    }

    .navbar-toggle .bar {
        width: 25px;
        height: 3px;
        margin: 5px auto;
        transition: all 0.5s ease-in-out;
        background-color: black;
    }

    .navbar-item {
        width: 100%;
    }

    .navbar-links {
        text-align: center;
        padding: 2rem;
        width: 100%;
        display: table;
    }

    #mobile-menu {
        position: absolute;
        top: 20%;
        right: 5%;
        transform: translate(5%, 20%);
    }

    .navbar-toggle .bar {
        display: block;
        cursor: pointer;
    }
}

/* --- Homepage Classes --- */

.container.homepage {
    display: grid;
    grid-template-columns: 1fr 2fr;
    margin: 50px auto;
    min-height: 90vh;
    line-height: 1;
}

.homepage-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.homepage-btn {
    font-size: 1rem;
    background: #1C847B;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    color: white;
    margin: 2rem 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.homepage-btn a {
    position: relative;
    z-index: 2;
    color: white;
    text-decoration: none;
    background: transparent;
    font-weight: 400;
}

.homepage-btn:after {
    position: absolute;
    content: '';
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: #42B9B3;
    transition: all 0.3s;
    border-radius: 5px;
}

.homepage-btn:hover {
    color: white;
}

.homepage-btn:hover:after {
    width: 100%;
}

.container.homepage-img {
    text-align: center;
}

#homepage-img {
    height: 100%;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 50px black;
}

.container.about-us {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: 50px auto;
}

.container.about-us h2 {
    font-size: 2rem;
    text-align: center;
    padding: 20px 30px;
}

.container.about-us p {
    font-size: 1rem;
    padding: 0px 40px;
    word-spacing: 3px;
    line-height: 1.35;
}

@media screen and (max-width: 1024px) and (min-width: 768px) {
    .container.homepage {
        display: grid;
        grid-template-columns: auto;
        align-items: center;
        justify-self: center;
        margin: 0 auto;
        background-color: white;
        padding: 0px 30px;
    }

    .homepage-content {
        text-align: center;
        margin-bottom: 4rem;
    }

    #homepage-img {
        height: 100%;
        width: 100%;
        border-radius: 10px;
    }

    .homepage-content h1 {
        font-size: 2.5rem;
        margin-top: 2rem;
    }

    .container.about-us p {
        padding: 0px 20px;
    }
}

@media screen and (max-width: 767px) {
    .container.homepage {
        display: grid;
        grid-template-columns: auto;
        align-items: center;
        justify-self: center;
        width: 100%;
        margin: 0 auto;
        min-height: 80vh;
        background-color: white;
        padding: 0px;
    }

    .homepage-content {
        text-align: center;
    }

    #homepage-img {
        height: 100%;
        width: 100%;
        border-radius: 10px;
    }

    .homepage-content h1 {
        font-size: 2.5rem;
        margin-top: 2rem;
    }

    .container.about-us {
        display: grid;
        grid-template-columns: auto;
        min-height: 100vh;
        width: 100%;
        padding: 0px 10px;
    }

    .container.about-us h2 {
        font-size: 30px;
    }

    .container.about-us p {
        font-size: 15px;
        padding: 20px;
    }
}

/* --- Officer Page Classes --- */

.container.officer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin: 50px auto;
}

.officer-card {
    border: 4px solid white;
    margin: 30px;
    border-radius: 10px;
    align-items: center;
    justify-self: center;
    background-color: #d5ffff;
    box-shadow: 0 0 20px gray;
    overflow: hidden;
    position: relative;
}

.officer-card h1 {
    padding: 15px;
    text-align: center;
    font-size: clamp(1.2rem, 2.5vw, 1.75rem);
    line-height: 1.1;
    word-break: break-word;
}

.officer-card h3 {
    padding: 10px;
    text-align: center;
    font-size: clamp(0.95rem, 1.8vw, 1rem);
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.officer-card.principal {
    border: 4px solid #b3e0dc;
}

.officer-img {
    overflow: hidden;
    width: 100%;
}

.officer-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* --- Schedule Page Classes --- */

.container.schedule {
    display: grid;
    max-width: auto;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    margin: 50px auto;
    padding: 50px;
    gap: 50px;
    border-radius: 10px;
}

.tab {
    background: #42B9B3;
    border: 1px solid black;
    padding: 12px 0;
    font-size: 1.1em;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.65s;
    color: white;
}

.tab:hover {
    background-color: #1C847B;
}

.tab.active {
    background-color: #1C847B;
    color: white;
}

.day {
    grid-column: 1 / -1;
}

.day-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  width: 100%;
}

.day-tabs .tab {
    width: 100%;
    text-align: center;
}

.day-content {
    display: none;
    grid-column: 1 / -1;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 50px 30px;
    box-shadow: 0 4px 20px gray;
    animation: fadeIn 0.3s ease;
}

.day-content.active {
    display: block;
}

.mileage-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    text-align: center;
}

.assigned-officer-img {
    width: 100%;
    border: 1px solid black;
}

.assignments {
    text-align: center;
}

.assignments h2 {
    margin-bottom: 0.75rem;
}

.assignments h3 {
    margin-bottom: 1rem;
}

.split-front-back {
    display: grid;
    text-align: center;
    grid-template-columns: 1fr 1fr;
    border-top: 2px dotted black;
    gap: 5px;
}

.assignments h4 {
    padding: 0.5rem;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Card Classes --- */

.container.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(384px, 1fr));
    margin: 50px auto;
    padding: 0px 3rem;
    gap: 30px;
}

.container.card-blurb {
    display: block;
    line-height: 1.5rem;
    padding: 30px 50px;
}

.container.card-blurb h2 {
    margin: 0.75rem 0px;
}

.container.rarities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    margin: 20px auto;
    gap: 30px;
}

.card {
    width: 100%;
    height: auto;
}

.map {
    width: 100%;
    height: auto;
    border-radius: 20px;
    margin-top: 10px;
    border: 3px solid white;
}

.map:hover {
    border: 5px solid #1C847B;
}

.nomap {
    width: 100%;
    height: auto;
    border: 8px solid white;
    border-radius: 20px;
    margin-top: 10px;
    font-size: 1rem;
    padding: 15px;
}

.route-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    justify-self: center;
    margin: 0 auto;
    width: 100%;
    border-radius: 20px;
    padding: 10px;
    gap: 10px;
    color: white;
    font-weight: bold;
    text-align: center;
}

@media screen and (max-width: 767px) {
    .container.cards {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    }
}

.route-info > div:last-child {
    display: grid;
    grid-template-rows: 1fr auto;
    height: 100%;
}

.route-info.common {
    background-color: #7d501f;
    box-shadow: 0 0 30px #7d501f;
}

.route-info.uncommon {
    background-color: #21948a;
    box-shadow: 0 0 30px #21948a;
}

.route-info.rare {
    background-color: #cb8938;
    box-shadow: 0 0 30px #cb8938;
}

.route-info.epic {
    background-color: #854ff1;
    box-shadow: 0 0 30px #854ff1;
}

.route-info.legendary {
    background-color: #ebce3a;
    box-shadow: 0 0 30px #ebce3a;
}

.route-info.golden {
    background: linear-gradient(to right, #e4c568, #c2932c) border-box;
    box-shadow: 0 0 30px lightcoral;
}

@media (min-width: 769px) {
    .route-info.golden {
        max-width: 500px;
        margin: 0 auto;
    }
}

.route-info p {
    line-height: 1.5;
    padding: 8px;
    border: 3px solid white;
    border-radius: 20px;
    overflow-y: auto;
    height: 100%;
    box-sizing: border-box;
    font-size: 0.8rem;
}

@media screen and (min-width: 769px) {
    .route-info p {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}

.route-info figcaption {
    text-align: center;
    margin: 5px;
    font-weight: bold;
    font-size: 0.8rem;
}

.card-group {
    border-radius: 20px;
    text-align: center;
    align-items: center;
    justify-content: center;
    height: 100px;
    display: flex;
    border: 4px solid white;
}

.card-group a {
    text-decoration: none;
    color: white;
    text-shadow: 0 0 2px black;
}

.card-group a:hover {
    scale: 1.1;
    transition: 0.3s ease;
}

.card-group.common {
    background-color: #7d501f;
    box-shadow: 0 0 30px #7d501f;
}

.card-group.uncommon {
    background-color: #21948a;
    box-shadow: 0 0 30px #21948a;
}

.card-group.rare {
    background-color: #cb8938;
    box-shadow: 0 0 30px #cb8938;
}

.card-group.epic {
    background-color: #854ff1;
    box-shadow: 0 0 30px #854ff1;
}

.card-group.legendary {
    background-color: #ebce3a;
    box-shadow: 0 0 30px #ebce3a;
}

.card-group.golden {
    background: linear-gradient(to right, #e4c568, #c2932c) border-box;
    box-shadow: 0 0 30px lightcoral;
}

/* --- Footer Classes -- */

.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: white;
    padding: 50px 0;
    flex-direction: column;
    line-height: 2;
}

.container.footers {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding-top: 30px;
    border-top: 1px dashed black;
    min-height: 50px;
}


.footer-icon {
    width: 50px;
}

.footer-icon:hover {
    transition: 0.3s ease;
    scale: 1.2;
}