body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Open Sans', sans-serif;
    background-color: rgb(250, 250, 250);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.header,
.header-main {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    margin: auto;
    z-index: 1000000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgb(250, 250, 250);
    height: 2rem;
    max-height: 3rem;
}

.header {
    max-width: 100%;
}

.header-main {
    max-width: 90%;
}

.section {
    font-family: 'Open Sans', sans-serif;
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    transition: background-color 0.3s ease;
}

.nav {
    display: flex;
    height: auto;
    position: relative;
    align-items: center;
    justify-content: center;
}

.navitem {
    display: flex;
    align-items: center;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    margin: 0 1vw;
    align-items: center;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-icon {
    height: 100%;
    align-items: center;
}

.membership {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10%;
}

.member {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
}

.container {
    display: flex;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: auto;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    background-color: rgb(250, 250, 250);
}

.center-align {
    margin: 5rem auto;
    height: auto;
    font-family: 'Open Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 1s ease;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    margin: 0;
}

.main-img {
    flex: 2.5;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 200px;
    aspect-ratio: 1/1;
    overflow: hidden;
    border: 0.3rem solid black;
    border-radius: 50%;
}

.image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.center-align-bottom {
    margin: 5rem auto;
    height: auto;
    font-family: 'Open Sans', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    opacity: 0;
    transition: opacity 1s ease;
}

.right-align {
    justify-content: center;
}

.left-align {
    justify-content: center;
}

.image-change-button {
    background-color: white;
    border: 0.1rem solid black;
    padding: 0.5rem 3rem;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8rem;
    color: #000;
    text-transform: uppercase;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 4px 0 0 rgba(0, 0, 0, 1);
    position: relative;
    max-width: 200px;
    width: 100%;
}

.image-change-button:hover {
    background-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 0 0 rgba(0, 0, 0, 1);
}

.image-change-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 0 rgba(0, 0, 0, 1);
}

.flyout-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Open Sans', sans-serif;
    font-size: 0.5rem;
    color: black;
    text-transform: uppercase;
    pointer-events: none;
    animation: flyout 1s ease-out forwards;
    z-index: 10;
    white-space: nowrap;
}

@keyframes flyout {
    0% {
        opacity: 1;
        transform: translate(-50%, -30px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50px) scale(1.5);
    }
}

/* Elastic zoom animation for main-img */
@keyframes elastic-zoom {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.9);
    }

    75% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.main-img.elastic-zoom {
    animation: elastic-zoom 0.5s ease-out;
}

.section span {
    cursor: default;
    position: relative;
}

.section span::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: black;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.section span:hover {
    cursor: pointer !important;
}

.section span:hover::after {
    width: 50%;
    opacity: 1;
}

.section.active span::after {
    opacity: 1;
    width: 50%;
}

.navitem span {
    cursor: default;
    position: relative;
    pointer-events: auto;
}

.navitem span:hover {
    cursor: pointer !important;
}

.navitem span:hover::after {
    width: 50%;
    opacity: 1;
}

.navitem span::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: black;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease, width 0.3s ease;
}

.navitem.active span::after {
    opacity: 1;
    width: 50%;
}

.tab ul {
    position: fixed;
    bottom: -60px;
    left: 0;
    width: 100%;
    background-color: #fff;
    display: none;
    justify-content: space-around;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000000;
    align-items: center;
    padding: 10px 0;
    min-height: 50px;
    list-style: none;
    margin: 0;
    transition: bottom 0.3s ease;
}

.tab.visible ul {
    bottom: 0;
}

footer {
    background-color: black;
    color: white;
    max-height: auto;
    font-family: 'Open Sans', sans-serif;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 9999;
    position: fixed;
    bottom: 0;
    width: 100%;
    padding: 5px;
    margin: 0;
}

@media (max-width: 1024px) {

    .nav,
    .navitem,
    .section,
    footer {
        display: none;
    }

    .main-img {
        flex: 1;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .logo {
        display: flex;
        align-items: center;
        height: auto;
    }

    .logo-icon {
        height: 100%;
        align-items: center;
        height: auto;
    }

    .membership {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5%;
    }

    .member {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        font-size: 0.8rem;
        text-align: center;
        word-wrap: break-word;
        white-space: normal;
    }

    .tab ul {
        display: flex;
    }

    .tabitem img {
        min-width: 24px;
        height: auto;
        display: block;
        margin: 0 auto;
        opacity: 0.3;
        transition: filter 0.3s ease;
    }

    .tabitem {
        cursor: default;
        position: relative;
        pointer-events: auto;
    }

    .tabitem:hover {
        cursor: pointer !important;
    }

    .tabitem:hover img {
        opacity: 1 !important;
    }

    .tabitem:hover::after {
        width: 100%;
        opacity: 1;
    }

    .tabitem::after {
        content: "";
        position: absolute;
        bottom: -10px;
        left: 0;
        width: 0;
        height: 2px;
        background-color: black;
        border-radius: 10px;
        opacity: 0;
        transition: opacity 0.3s ease, width 0.3s ease;
    }

    .tabitem.active img {
        opacity: 1;
    }

    .tabitem.active::after {
        opacity: 1;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-img {
        flex: 1;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .logo {
        display: flex;
        align-items: center;
        width: 40%;
    }

    .logo-icon {
        align-items: center;
        width: 100%;
    }

    .center-align-bottom,
    .center-align {
        margin: 4rem auto;
    }
}

@media (prefers-color-scheme: dark) {

    body,
    html {
        background-color: #1a1a1a;
    }

    .container {
        background-color: #1a1a1a;
    }

    .section span::after {
        background-color: #fff;
    }

    .navitem span::after {
        background-color: #fff;
    }

    .tab ul {
        background-color: #1a1a1a;
        box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.5);
    }

    .header,
    .header-main {
        background-color: #1a1a1a;
    }

    .tabitem::after,
    .tabitem.active::after {
        background-color: #fff;
    }

    footer {
        background-color: #000000;
        color: #ddd;
    }

    .logo-icon {
        filter: invert(1);
    }

    .tabitem a img,
    .header .navitem a img {
        filter: invert(1);
    }

    .member,
    .center-align,
    .center-align-bottom,
    span {
        color: #ffffff;
    }

    .image-change-button {
        border: 0.1rem solid #ffffff;
        box-shadow: 0 4px 0 0 rgb(171, 171, 171);
    }

    .image-change-button:hover {
        background-color: #ffffff;
        box-shadow: 0 6px 0 0 rgb(171, 171, 171);
    }

    .image-change-button:active {
        background-color: #ffffff;
        box-shadow: 0 2px 0 0 rgb(171, 171, 171);
    }

    .main-img {
        border: 0.3rem solid #ffffff;
    }

    .flyout-text {
        color: white;
    }
}