/* styles.css */

/* catppuccin ftw */
@import "/colors.css";

@font-face {
    font-family: "Adwaita Sans";
    src: url("/assets/fonts/AdwaitaSans-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Nerd Font Symbols";
    src: url("/assets/fonts/SymbolsNerdFont-Regular.woff2") format("woff2");
}


* {
    all: unset;  /* an iq too high? */
}

:root {
    background-color: var(--col-bg);
    color:            var(--col-fg);
    transition: background-color 0.15s, color 0.15s;

    font-family: "Adwaita Sans", sans-serif;
}

body {
    margin: 0;
}


.topbar {
    position: sticky;
    left: 0;
    right: 0;
    top: 0;
    height: 3rem;
    z-index: 9999;

    background-color: var(--col-crust);
    box-shadow: 0 0 1rem var(--col-crust);

    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar-title-div {
    margin-left: 2rem;

    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}

.main-div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: start;
}

.form-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 80svh;
    width: 50svh;
    margin: auto;
    padding: 4rem;

    background-color: var(--col-crust);
    box-shadow: 0 0 0.5rem var(--col-charred);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}
.form-input {
    width: 90%;
    padding: 0.5rem 5%;

    transition: border-color 0.15s;

    background-color: var(--col-surface0);
    border-style: solid;
    border-color: transparent;
    border-radius: 0.5rem;
    border-width: 2px;
}
.form-input::placeholder {
    color: var(--col-subtext0);
}
.form-input:focus {
    border-color: var(--col-lavender);
}

.img-bg {
    object-fit: cover;
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;

    mask-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.25) 0%, transparent 100%);
    mask-size: 100% 100%;
}

.title {
    font-size: 4rem;
    font-weight: bold;
}

.subtitle {
    font-size: 1.5rem;
}

.txt-shadow {
    text-shadow: 0 0 0.5rem var(--col-halfblack);
}

.placeholder {
    color: var(--col-subtext0)
}

/* Register Box */
.container-title {
    margin-bottom: auto;
    font-size: 4rem;
    font-weight: bold;
}
.container-subtitle {
    font-size: 2rem;
    font-weight: bold;
}
.container-last {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.home-section {
    width: 67%;  /* 67 */
    height: auto;
    padding: 4rem 16.5%;

    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

/* Main Page Info Card */
.info-card {
    width: 33%;
    height: 16rem;
    padding: 1rem 2rem;
    margin: 0.1rem 0.2rem;

    background-color: var(--col-crust);
    box-shadow: 0 0 0.33rem var(--col-halfblack);
    border-radius: 0.5rem;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;

    transition: transform 0.15s, box-shadow 0.15s, padding 0.15s, margin 0.15s;
}
.info-card:hover {
    padding: 1.1rem 2.2rem;
    margin: 0;

    box-shadow: 0 0.25rem 0.5rem var(--col-halfblack);
    transform: translateY(-0.25rem);
}
.info-card h3 {
    font-size: 1.5rem;
}

/* About Page Stuff */
.about-hero {
    width: 99svw;
    background-color: var(--col-crust);
    color: var(--col-fg);
    padding: 100px 0px;
    text-align: center;
}
.about-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.about-hero p {
    font-size: 1.25rem;
    color: var(--col-yellow);
    letter-spacing: 1px;
}

.about-mission {
    padding: 5rem 2.5rem;
    background-color: var(--col-charred);
}
.mission-container {
    width: calc(99svw - 15rem);
    padding: 0 5rem;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
}
.mission-text {
    flex: 2;
    min-width: 18rem;
}
.mission-text h2 {
    font-size: 2rem;
    color: var(--col-subtext0);
    margin-bottom: 1.25rem;
}
.mission-text p {
    color: color-mix(in srgb, var(--col-surface1), var(--col-subtext0) 75%);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.mission-stats {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 200px;
}
.stat-box {
    background-color: var(--col-bg);
    padding: 2rem;
    text-align: center;
    border-radius: 0.5rem;
    border-left: 0.375rem solid var(--col-green);
}
.stat-box h3 {
    font-size: 36px;
    color: var(--col-fg);
    margin-bottom: 5px;
}

.about-team {
    width: calc(99svw - 5rem);
    padding: 5rem 2.5rem;
    background-color: var(--col-surface0);
    text-align: center;
}

.about-team h2 {
    font-size: 2rem;
    color: var(--col-fg);
    margin-bottom: 2.5rem;
}

.team-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 62.5rem;
    margin: 0 auto;
    flex-wrap: wrap;
}
.team-card {
    background-color: #eff1f5;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0.25rem 1rem var(--col-halfblack);
    flex: 1;
    min-width: 250px;
}
.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 100%;
    margin: 0 auto 1.25rem auto;
    border: 1px solid var(--col-halfblack);
    overflow: hidden;
    box-shadow: 0 0.25rem 0.625rem var(--col-halfblack);
    background-image: url('/assets/images/commitee_placeholder.png');
    background-size: auto 100%;
    background-repeat: no-repeat;
}

.figure-president {
    background-position: 0% 0%; 
}
.figure-coach {
    background-position: 50% 0%; 
}
.figure-captain {
    background-position: 100% 0%; 
}

.team-card h4 {
    font-size: 1.25rem;
    color: #1e1e2e;
    margin-bottom: 5px;
}
.team-card .role {
    color: #45c43b;
    font-weight: bold;
}

/* Footer CSS */
.footer {
    background-color: var(--col-crust);
    padding: 4rem 0 1.5rem 0;
}
.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 99svw;
    margin: 0 auto;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #333;
}
.footer-col{
    margin-bottom: 1.5rem;
    min-width: 16rem;
}
.footer-col h4 {
    font-size: 1.25rem;
    color: var(--col-fg);
    margin-bottom: px;
    letter-spacing: 1px;
}
.footer-col p {
    line-height: 1.8;
    color: var(--col-subtext0);
}

.footer-links {
    list-style: none;
    padding: 0;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    text-decoration: none;
    color: var(--col-subtext0);
    transition: color 0.3s ease;
}
.footer-links a:hover {
    text-decoration: underline;
    color: var(--col-blue); 
}

.footer-bottom {
    text-align: center;
    padding-top: 1.25rem;
}
.footer-bottom p {
    color: #888;
    margin: 0;
}

.btn {
    background-color: var(--col-surface0);
    padding: 0.3rem;
    border-radius: 0.5rem;
    transition: background-color 0.15s;
}
.btn:hover {
    background-color: var(--col-surface1);
}
.btn:active {
    transition: none;
    background-color: var(--col-crust);
}

.btn-join {
    background-color: var(--col-green);
    color: var(--col-bg);
    
    box-shadow: 0 0 0.5rem var(--col-halfblack);
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    transition: all 0.15s;
}
.btn-join:hover {
    background-color: var(--col-greenl);
    transform: translateY(-2px);
    box-shadow: 0 2px 0.5rem var(--col-halfblack);
}
.btn-join:active {
    transition: none;
    background-color: var(--col-greend);
    transform: translateY(0px);
}

.a-underlined {
    position: relative;  /* make the fancy underline's `position: absolute` work properly */
}
.a-underlined::after {  /* fancy underline */
    content: '';
    position: absolute;
    left: 50%;
    bottom: -0.5rem;
    width: 0;
    height: 1px;
    background-color: currentColor;
    transition: width 0.15s ease, left 0.15s ease;
}
.a-underlined:hover::after {
    left: 0%;
    width: 100%;
}

.link {
    transition: color 0.15s;
}
.link:hover {
    color: var(--col-blue);
    text-decoration: underline;
}

.symbol {
    font-family: "Nerd Font Symbols";
}

.flex-col {
    display: flex;
    flex-direction: column;
}


a,
button {
    cursor: pointer;
}

head {
    display: none;
}

h1, h2, h3, h4, p, li {
    all: revert;  /* an iq too high? */
}

select {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
select, ::picker(select) {
    appearance: base-select;
}
select::picker-icon {  /* arrow */
    content: "";
    font-family: "Nerd Font Symbols";
    color: var(--col-fg);
    transition: transform 0.2s ease;
}
select:open::picker-icon {
    transform: rotate(180deg);
}

option {
    background-color: var(--col-surface0);
    color: var(--col-fg);
    display: block;
    width: 100%;
    padding: 0.3rem 0;
}
option:hover {
    background-color: var(--col-surface1);
}