@font-face {
    font-family: 'Friz Quadrata';
    src: url(../fonts/friz-quadrata/friz-quadrata-regular-os-5870333951e7c.ttf) format('truetype');
}

@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

::-webkit-scrollbar {
    display: none;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    background-color: #03090d;
    color: #fff;
    font-family: 'Friz Quadrata';
}

#intro-section {
    position: relative;
    top: 0;
    width: 100%;
    height: 100svh;
    overflow-y: hidden;
    opacity: 0;
    transition: opacity 2s ease-in-out, height 1s ease-in-out;
    z-index: 100;
}

#intro-video {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    height: 100svh;
    object-fit: cover;
    filter: brightness(30%);
    transition: filter 1s ease-in-out;
}

#intro-text {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    height: fit-content;
    margin: auto;
    width: 50%;
    padding: 2rem;
    background-color: #785a281a;
    transition: background-color 0.2s linear, filter 1s ease-in-out;
}

#intro-text::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 4px solid #c89b3c;
    transition: all 0.2s linear;
    clip-path: polygon(10vw 0, 100% 0, 100% 100%, 0 100%, 0 10vw);
}

#intro-text::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border: 4px solid #c89b3c;
    transition: all 0.2s linear;
    clip-path: polygon(100% 0, 100% calc(100% - 10vw), calc(100% - 10vw) 100%, 0 100%, 0 0);
}

#intro-text:hover {
    background-color: #005b825d;
}

#intro-text:hover::before {
    top: -1.5vw;
    right: 1.5vw;
    bottom: 1.5vw;
    left: -1.5vw;
    border-color: #0397ab;
}

#intro-text:hover::after {
    top: 1.5vw;
    right: -1.5vw;
    bottom: -1.5vw;
    left: 1.5vw;
    border-color: #0397ab;
}

#intro-logo {
    position: relative;
    width: 100%;
    display: block;
    margin: auto;
    z-index: 100;
}

nav {
    position: absolute;
    bottom: 0;
    font-size: 1.5rem;
    width: 100%;
    background-color: transparent;
    transition: all 1s ease-in-out;
}

#small-nav {
    display: none;
}

nav ul {
    margin: 0;
    padding-inline-start: 0;
    width: 100%;
    display: flex;
}

nav li {
    list-style-type: none;
    text-align: center;
    width: calc(100% / 3);
}

nav a {
    width: 100%;
    text-decoration: none;
    color: #aaa;
    display: block;
    line-height: 3;
    transition: all 0.3s ease-in-out;
}

nav:not(#small-nav) a:hover {
    color: #f0e6d2;
}

.min-header {
    height: 72px !important;
    position: fixed !important;
}

.max-header {
    height: 100svh !important;
    position: relative !important;
}

.dark {
    filter: brightness(0) !important;
}

/* 
    Section height of the test section: 100vh
    The position of header ix fixed so it has already been removed from the flow of the document
    Therefore, the height of the body is now 100vh
    In the script:
    window.addEventListener('scroll', () => {
        const introSection = document.getElementById('intro-section')
        if (window.scrollY > 0) {
            introSection.style.maxHeight = 72 + 'px'
        } else {
            introSection.style.maxHeight = 100 + 'vh'
        }
    })  
    When user scroll, if the number of pixels that the document is currently scrolled vertically is greater than 0, it will minimize the header
    If the height of the header is not greater than 100vh, it will be lagged between minimize and maximize as the number of pixels that the document is currently scrolled vertically is 0
    The main::before below is to make the body height greater than 100vh. 
    It should be deleted after the body has more content and the height is greater than 100vh
*/

.snap-wrapper {
    height: 100svh;
    overflow-y: auto;
    /* scroll-snap-type: y mandatory; */
}

/* header, main {
    scroll-snap-align: center;
} */

#main-wrapper {
    margin-top: 1px;
    height: 100svh;
    overflow-y: auto;
    overflow-x: hidden;
}

#main-wrapper::before {
    content: "";
    display: block;
    position: fixed;
    z-index: 101;
    top: 0;
    right: 0;
    width: 2px;
    height: var(--height, 0);
    background-color: #c89b3c;
}

section {
    min-height: 100svh;
}

/* section:not(#members) {
    opacity: 0;
    transition: opacity 1s ease-in-out;
} */

section header {
    position: relative;
    height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#members header {
    top: -72px;
    margin-bottom: -72px;
}

h2 {
    font-size: 4rem;
    color: #f0e6d2;
}

.section-header-background {
    transform: rotate(180deg);
    position: absolute;
    z-index: -1;
    width: 100%;
    min-width: 900px;
    object-fit: cover;
}

.title-name, .title p {
    text-align: center;
    font-size: 3rem;
    color: #c89b3c;
    margin: 1rem;
    font-style: italic;
}

.description {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.class {
    font-size: 2.5rem;
}

.quote {
    text-align: center;
    color: #ddd;
}

/* .in-view {
    opacity: 1 !important;
} */

#founder-profile {
    position: relative;
    padding: 2rem;
    height: fit-content;
    min-height: calc(100svh - 72px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.profile-content-wrapper {
    width: 90%;
    height: 120vw;
    max-height: 550px;
}

.profile-image-wrapper {
    margin: auto;
    overflow: hidden;
    width: 80vw;
    height: 80vw;
    max-width: 300px;
    max-height: 300px;
    border-radius: 50%;
    border: 3px solid #c8aa6e;
    transition: all 0.2s linear;
    background-color: #03090d;
}

.profile-image-wrapper:hover {
    transform: rotate(45deg);
    border-radius: 0;
    padding: 1rem;
}

.profile-image-wrapper:hover .profile-image {
    transform: rotate(-45deg);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.2s linear;
}

.information-wrapper {
    z-index: -1;
    position: relative;
    top: max(-40vw, -150px);
    height: min(80vw, 400px);
    border: 1px solid #c8aa6e;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    padding: 1rem;
}

.information-wrapper div {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#main-team {
    padding: 2rem;
}

h3 {
    font-size: 3rem;
    text-align: center;
    color: #c89b3c;
}

.member-profile {
    position: relative;
    width: fit-content;
    padding: 1rem 1rem 1rem 0;
    display: flex;
}

.member-profile::after {
    content: "";
    display: block;
    position: absolute;
    z-index: -2;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    background-color: #ffffff78;
    width: 100%;
    height: 100%;
    clip-path: polygon(calc(100% - 5vw) 0, 100% 5vw, 100% 100%, 0 100%, 0 0);
}

.member-profile::before {
    content: "";
    display: block;
    position: absolute;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    background-color: #03090d;
    width: calc(100% - 2px);
    height: calc(100% - 2px);
    clip-path: polygon(calc(100% - 5vw) 0, 100% 5vw, 100% 100%, 0 100%, 0 0);
}

#leader::after {
    background-color: #c8aa6e78;
}

.member-photo-wrapper {
    position: relative;
    left: -1rem;
    overflow: hidden;
    width: 150px;
    height: 200px;
}

.member-photo-wrapper::before {
    content: "";
    display: block;
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px solid #ffffff78;
}

#leader .member-photo-wrapper::before {
    border-left-color: #c8aa6e78;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-information-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-information-wrapper:not(#leader div) {
    width: calc(100% - 150px);
}

.rank {
    height: 1em;
    vertical-align: middle;
}

#member-wrapper .member-role {
    margin: 1.5rem 0;
}

.member-role {
    font-size: 2.5rem;
    color: #c89b3c;
}

.member-name {
    font-size: 1.5rem;
    margin: 0;
}

#leader {
    margin: 3rem auto 5rem;
}

#leader .member-photo-wrapper {
    width: 200px;
    height: 250px;
}

#member-wrapper {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem
}

#member-wrapper .member-profile {
    margin: 2rem 0;
    width: 40%;
    min-width: 400px;
}

#map-wrapper {
    position: relative;
    margin: auto;
    width: 60%;
    transition: all 0.6s ease-in-out;
    filter: brightness(0.6);
}

#map {
    display: block;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.maximize-map-wrapper {
    width: 80% !important;
    filter: brightness(1) !important;
}

.member-role-model {
    position: absolute;
    width: 3.5vw;
    height: 3.5vw;
    border-radius: 50%;
    border: 1px solid #c89b3c;
    opacity: 0;
    transition: all 0.2s linear;
}

.member-role-image {
    height: 100%;
    width: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.member-role-model:hover {
    width: calc(3.5vw + 4px);
    height: calc(3.5vw + 4px);
    margin-left: -2px;
    margin-top: -2px;
    padding: 0.5vw;
    border-color: #0397ab;
    background-color: #0398ab37;
}

.member-role-model-show {
    transition: all 0.2s linear, opacity 1.3s ease-in-out;
    opacity: 1 !important;
}

#top {
    top: 20%;
    left: 19%;
}

#jug {
    top: 25%;
    left: 47%;
}

#adc {
    top: 70%;
    left: 81%;
}

#sp {
    top: 85%;
    left: 43%;
}

#mid {
    top: 43%;
    left: 52%
}

.chat-tool-tip {
    z-index: 1;
    display: block;
    position: absolute;
    bottom: 130%;
    left: -10%;
    width: max-content;
    border-radius: 5px;
    padding: 1vw;
    background-color: #c8aa6ea1;
    visibility: hidden;
    opacity: 0;
    transition: all 0.2s ease-in-out;
}

.chat-tool-tip::after {
    content: "";
    display: block;
    position: absolute;
    top: 100%;
    left: 1.2vw;
    border-width: 1vw;
    border-style: solid;
    border-color: #c8aa6ea1 transparent transparent transparent;
}

.member-role-model:hover .chat-tool-tip {
    visibility: visible;
    opacity: 1;
}

.chat-tool-tip.left {
    left: unset !important;
    right: -10%;
}

.chat-tool-tip.left::after {
    left: unset;
    right: 1.2vw;
}

#achievement-main {
    display: flex;
    justify-content: space-between;
    padding: 0 5%;
}

#achievement-wrapper {
    position: relative;
    width: min(500px, 80vmin);
    height: min(500px, 80vmin);
    transition: all 1s ease-in-out;
}

#achievement-wrapper::before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid #c8aa6e;
    border-radius: 50%;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
    clip-path: circle(50% at 50% 50%);
}

#achievement-wrapper:has(#achievement-interactive-components:hover) {
    transform: rotate(360deg);
}

#achievement-wrapper:has(#achievement-interactive-components:hover) .achievement {
    transform: rotate(-360deg);
}

#achievement-wrapper:has(#achievement-interactive-components:hover)::before {
    border-color: #0397ab;
    background-color: #0398ab30;
}

.achievement {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 1s ease-in-out, opacity 0.3s linear;
    opacity: 0;
    visibility: hidden;
    padding: 10%;
    text-align: center;
}

#achievement-interactive-components {
    position: absolute;
    top: 0;
    right: -5%;
    bottom: 0;
    left: -5%;
    margin: auto;
    width: 110%;
    height: 110%;
    clip-path: circle(50% at 50% 50%);
}

.position {
    font-size: 4rem;
    margin: 1rem;
    color: #c89b3c;
}

.tournament-name {
    font-size: 2rem;
}

.achievement-button-svg {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 90%;
    height: 90%;
    transition: all 0.3s ease-in-out;
}

.achievement-button-svg path {
    fill: #091428;
    transition: all 0.3s ease-in-out;
}

#achievement-wrapper:hover path {
    fill: #c8aa6e
}

.achievement-button-svg path:hover {
    fill: #c89b3c !important;
    cursor: pointer;
}

.achievement-button-svg.right {
    right: 0;
}

.achievement-button-svg.left {
    left: 0;
}

#tournament-record {
    width: 600px;
    height: 500px;
    margin: auto 0;
}

#tournament-record-table-wrapper {
    position: relative;
    height: 300px;
    overflow-y: auto;
}

.tournament-record-table {
    position: absolute;
    top: 0;
    font-size: 2rem;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s linear;
    border-collapse: collapse;
}

td {
    padding: 8px;
    border: 1px solid #fff;
}

.lp-team {
    text-align: center;
    width: 40%;
}

.opponent-team {
    text-align: center;
    width: 40%;
}

.score {
    text-align: center;
    width: 20%;
}

.win {
    color: #76b87c;
    text-shadow: 0 0 10px #4bb456dc;
}

.lose {
    color: #9b3b33;
}

.achievement-in-view {
    visibility: unset !important;
    opacity: 1 !important;
}

#news-wrapper {
    width: 90%;
    height: 80svh;
    margin: auto;
}

#news-iframe {
    display: block;
    width: 100%;
    height: 100%;
    margin: auto;
    border: 1px solid #005a82;
}

.button {
    position: relative;
    display: block;
    text-decoration: none;
    padding: 1rem 2rem;
    color: #fff;
    width: fit-content;
    margin: 2rem auto;
    background-color: #000;
    border: 1px solid #fff;
}

.button::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    height: 100%;
    background-color: #ffffff63;
    transition: all 0.3s ease-in-out;
}

.button:hover::before {
    width: 100%;
}

footer {
    background-color: #ddd;
    color: #000;
    line-height: 1.4;
}

#footer-information-wrapper {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 3rem
}

#footer-school-logo {
    width: 200px;
    height: auto;
}

address {
    font-style: normal;
}

a {
    color: #333;
}

#author {
    position: relative;
    margin: 0;
    padding: 4px;
    text-align: center;
}

#author::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 50%;
    height: 1px;
    background-color: #000;
}

#legal {
    position: relative;
    margin: 0;
    padding: 4px;
    text-align: center;
    font-style: italic;
    color: #4d4d4d;
}

#legal a {
    color: #555;
}

#social-media {
    display: flex;
    gap: 2rem;
}

#social-media a {
    display: block;
    height: 2rem;
}

.social-media-icon {
    height: 2rem;
    filter: grayscale(100%);
    transition: all 0.2s ease-in-out;
}

.social-media-icon:hover {
    filter: grayscale(0);
    cursor: pointer;
}

@media (max-width: 1300px) {
    #achievement-main {
        flex-direction: column;
        align-items: center;
        gap: 1rem
    }
    
    .position {
        font-size: 3rem;
    }
    
    .tournament-name {
        font-size: 1.5rem;
    }

    #tournament-record {
        width: 100%;
        height: fit-content;
    }
    
    #tournament-record-table-wrapper {
        position: relative;
        height: 200px;
        overflow-y: auto;
    }
    
    .tournament-record-table {
        font-size: 1.5rem;
    }
    
    td {
        padding: 4px;
        border: 1px solid #fff;
    }
}

@media (max-width: 1000px) {
    #intro-section {
        display: none;
    }

    #members header {
        top: 0;
        margin-bottom: 0;
    }

    .snap-wrapper {
        display: contents;
    }

    #main-wrapper {
        height: auto;
        margin-top: 0;
    }

    #main-wrapper::before {
        display: none;
    }

    #small-nav {
        z-index: 2;
        position: fixed;
        display: block;
        top: 0;
        bottom: unset;
        font-size: 1.5rem;
        height: calc(3 * 1.5rem);
        margin-bottom: calc(-3 * 1.5rem);
    }
    
    #small-nav li {
        width: 100%;
        text-align: unset;
        position: absolute;
    }
    
    #small-nav a {
        width: 100%;
        padding-inline-start: 2rem;
        background-color: #03090d;
        opacity: 0;
        visibility: hidden;
        transition: none;
    }

    #small-nav a::before {
        content: "";
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        height: 2px;
        width: var(--width, 0);
        background-color: #c89b3c;
    }

    .link-focus {
        color: #f0e6d2 !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    #nav-dropdown {
        position: absolute;
        z-index: 101;
        top: 0;
        bottom: 0;
        right: 1rem;
        margin: auto;
        width: 0; 
        height: 0; 
        border-left: 0.8rem solid transparent;
        border-right: 0.8rem solid transparent;
        border-top: 1.5rem solid #785a28;
        transition: all 0.3s ease-in-out;
    }

    #nav-dropdown:hover {
        cursor: pointer;
        border-top-color: #c89b3c;
    }

    .maximize-nav {
        top: 0;
        height: calc(3 * 1.5rem);
    }

    .maximize-nav-ul {
        display: block !important;
    }

    .maximize-nav-li {
        position: relative !important;
    }

    .maximize-nav-link {
        opacity: 1 !important;
        visibility: visible !important;
        background-color: #1e282d !important;
        border-bottom: 2px solid #A09B8C;
    }
    
    .maximize-nav-link::before {
        display: none !important;
    }

    .dropping-down {
        transform: rotate(180deg);
        border-top-color: #c89b3c !important;
    }

    h2 {
        font-size: 3rem;
    }

    #founder-profile {
        padding: 1rem;
    }

    .profile-content-wrapper {
        width: 90%;
        height: 513.5px;
        max-height: unset;
    }

    .profile-image-wrapper {
        margin: auto;
        overflow: unset;
        border-radius: 0;
        border: 3px solid #c8aa6e;
        transition: all 0.2s linear;
        background-color: transparent;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .profile-image-wrapper:hover {
        transform: none;
        border-radius: 0;
        padding: 0;
    }

    .profile-image-wrapper:hover .profile-image {
        transform: none;
    }
    
    .profile-image {
        position: relative;
        z-index: -1;
        width: auto;
        height: 90%;
        margin: auto;
        border-radius: 0;
        object-fit: unset;
        transition: none;
    }

    .information-wrapper {
        z-index: -2;
        position: relative;
        top: max(-40vw, -150px);
        height: fit-content;
        border: 1px solid #c8aa6e;
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding-top: min(40vw, 150px);
    }
    
    .information-wrapper div {
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
    }

    .description {
        justify-content: center;
    }

    .description p {
        margin: 0.5rem;
    }

    .title p {
        font-style: normal;
        color: #fff;
        margin: 0.5rem;
        font-size: 1.75rem;
    }

    .title-name {
        color: #c89b3c !important;
        font-size: 2.5rem !important;
    }

    .class {
        font-size: 1.5rem;
    }

    .chat-tool-tip {
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    #member-wrapper .member-profile {
        margin: 2rem 0;
        width: 100%;
        min-width: unset;
    }

    #leader {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
        min-width: 60%;
    }

    #leader  .member-photo-wrapper {
        position: relative;
        left: 0;
    }

    #leader .member-photo-wrapper::before {
        display: none;
    }

    footer {
        height: 100svh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-around;
        font-size: 1.4rem;
    }

    #footer-information-wrapper {
        display: flex;
        flex-direction: column;
        gap: 2rem
    }
    
    #footer-school-logo {
        width: 200px;
        height: auto;
    }
    
    address {
        font-style: normal;
    }
    
    a {
        color: #333;
    }
    
    #author {
        position: relative;
        margin: 0;
        padding: 4px;
        text-align: center;
    }
    
    #author::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        margin: auto;
        width: 50%;
        height: 1px;
        background-color: #000;
    }

    #legal {
        font-size: 1rem;
    }
    
    #social-media {
        display: flex;
        gap: 2rem;
    }
    
    .social-media-icon {
        height: 2rem;
        filter: grayscale(100%);
        transition: all 0.2s ease-in-out;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 14px;
    }

    h3 {
        font-size: 2rem;
    }

    .profile-content-wrapper {
        height: fit-content;
    }
    
    .profile-image-wrapper {
        width: 40vw;
        height: 40vw;
    }

    .information-wrapper {
        top: -20vw;
        gap: 1rem;
        padding-top: 20vw;
    }

    .member-role {
        font-size: 2rem;
        color: #c89b3c;
    }

    .maximize-map-wrapper {
        width: 95% !important;
    }

    .chat-tool-tip {
        width: max-content;
        max-width: 180px;
        font-size: 12px;
    }
}