@import url('https://fonts.googleapis.com/css2?family=Rubik+Scribble&family=Ubuntu:wght@400;700&display=swap');


/* Colors */
:root{
    --primary-color: #d63535;
    --primary-color-light: #f06d6d;
    --secondary-color: #b67340;
    --secondary-color-light: #f0b26d;
    --background-color: #110909;
    --background-grey: #211313;
    --background-grey-light: #462d2d;
    --border-color: #5c2b2b;
    --text-color: #f5f5f5;
}

/* Override default behavior */
* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 0.5em;
}

::-webkit-scrollbar-track {
    background-color: rgba(150, 150, 150, 30%);
}

::-webkit-scrollbar-thumb {
    background-color: rgba(150, 150, 150, 50%);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color);
}

body {
    position: relative;
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: Ubuntu, sans-serif;
    min-height: calc(100vh - 200px);
    padding-bottom: 200px;
}

@media screen and (max-width: 450px){
    body{
        font-size: 0.8em;
    }
}

@media screen and (min-width: 1250px) {
    body {
        font-size: 1.2em;
    }
}

main {
    margin: 2em 4%;
    gap: 3em;
}

@media screen and (min-width: 900px) {
    main {
        margin: 2em calc(12% - 2em);
    }
}

/* Section */
section{
    padding: 1em;
}

.content-section{
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 1.5em;
    width: 100%;
}

.section-head{
    font-size: 1.75em;
}

.section-body{
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.section-footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1em;
}

/* Hero */
.hero{
    grid-area: hero;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    padding: 0;
}

.hero-image{
    width: 100%;
    max-width: 70vh;
    border-radius: .75em;
}

.hero-text{
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1.5em;
    padding: 1em;
}

.hero-text h1{
    font-size: 2.5em;
    width: 100%;
    text-align: center;
    font-weight: 700;
}

.hero-links{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75em;
    width: 100%;
}

@media screen and (min-width: 900px) {
    .hero {
        flex-direction: row;
        justify-content: space-between;
        gap: 2em;
    }

    .hero-image {
        width: 50%;
        max-width: fit-content;
        max-height: 100vh;
    }

    .hero-text {
        width: 50%;
        max-width: 500px;
    }
}


/* Buttons */
.link-button {
    display: block;
    padding: 0.8em 0;
    width: 100%;
    max-width: 30em;
    border-radius: 0.5em;
    text-decoration: none;
    text-align: center;
    transition: 0.3s ease-in-out;
}

.bg-primary {
    background-color: var(--primary-color);
    color: var(--text-color);
}

.bg-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0px 5px 50px -13px var(--primary-color-light);
    cursor: pointer;
}

.bg-secondary {
    background-color: var(--secondary-color-light);
    color: var(--background-color);
}

.bg-secondary:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 50px -13px var(--secondary-color-light);
    cursor: pointer;
}

/* Links */
.inline-link {
    color: var(--secondary-color-light);
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s ease-in-out;
}

.inline-link:hover {
    color: var(--primary-color-light);
}

.tag{
    display: block;
    padding: 0.4em 0.8em;
    text-decoration: none;
    font-weight: normal;
    background-color: var(--background-color);
    color: var(--secondary-color-light);
    border-radius: 4em;
    border: 1px solid var(--background-color);
    transition: 0.1s ease-in-out;
}

.tag:hover{
    border: 1px solid var(--primary-color-light);
    color: var(--primary-color-light);
}

/* Member Card */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1em;
}

.member-card{
    display: flex;
    position: relative;
    flex-direction: column;
    border-radius: 0.75em;
    overflow: hidden;
    background-color: var(--background-grey)
}

.member-card-image{
    width: 100%;
    object-fit: cover;
    border-end-start-radius: 0.75em;
    border-end-end-radius: 0.75em;
}

.member-card-filter{
    display: flex;
    position: absolute;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-end;
    width: 100%;
    aspect-ratio: 1/1;
    background: linear-gradient(180deg, rgba(33,19,19,0) 0%, rgba(33,19,19,0.15196591331845233) 75%, rgba(33,19,19,0.9) 100%);
}

.member-card-heading{
    display: flex;
    flex-direction: row;
    align-items: center;
}

.member-card-filter h3{
    padding: 0.5em 0.5em 0.5em 1em;
    font-size: 1.5em;
    color: var(--text-color);
}

.member-card-filter a{
    margin-right: 1em;
}

.member-card-body{
    padding: 1em;
}

/* Spinbox */
.custom-spinbox{
    display: flex;
    flex-direction: row;
    gap: 0.25em;
    align-items: center;
    width: max-content;
    border-radius: 0.5em;
    padding: 0.3em;
    background-color: var(--secondary-color-light);
}

.spinbox-button{
    padding: 0.7em;
    border: none;
    border-radius: 0.5em;
    background-color: #00000000;
    color: var(--text-color);
    transition: 0.2s ease-in-out;
    line-height: 0;
    height: 3em;
}

.spinbox-button:hover{
    background-color: #ffffff58;
}

.spinbox-button img{
    width: 100%;
    height: 100%;
}

.spinbox-input{
    border: none;
    background-color: #00000000;
    font-size: 1.2em;
    max-width: 2em;
    text-align: center;
}

.spinbox-input::-webkit-inner-spin-button,
.spinbox-input::-webkit-outer-spin-button{
    -webkit-appearance: none;
}

.spinbox-input:focus{
    outline: none;
}

/* Pop-Up */
#popup-background-filter{
    position: fixed;
    z-index: -1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0,0,0,0);
    transition: .4s ease-in-out;
}

#popup-background-filter.open{
    z-index: 4;
    background-color: rgba(0,0,0,0.6);
}

#popup-container{
    position: fixed;
    top: 35vh;
    left: 0;
    width: 100%;
    height: max-content;
    z-index: -1;
}

#popup-container.open{
    z-index: 5;
}

#popup{
    display: flex;
    flex-direction: column;
    align-items: center;
    /* z-index: -1; */
    width: max-content;
    max-width: 80%;
    gap: 1.5em;
    background-color: var(--background-grey);
    opacity: 0;
    border-radius: 0.75em;
    border: 1px solid var(--primary-color-light);
    padding: 2em;
    margin: auto;
    transition: .4s ease-in-out;
}

#popup.open{
    /* z-index: 5; */
    opacity: 1;
}

#popup h2{
    font-size: 1.5em;
}

#close-popup{
    border: none;
    font-size: 1em;
}
