@import url('https://fonts.googleapis.com/css2?family=Hina+Mincho&display=swap');
.hina-mincho-regular {
    font-family: "Hina Mincho", serif;
    font-weight: 400;
    font-style: normal;
}
h1, h2, h3, h4, h5, h6, a{
    font-family: "Helvetica", sans-serif;
}

p{
    font-family: "Hina Mincho", serif;
}

html {
    scroll-behavior: smooth;
    overflow-y: overlay;
    scroll-padding-top: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
    background-color: #000000;
    color: #ffffff;
}

h1{
    font-size: 5vh;
}

/*NAVI==================================================================*/
#header {
    position: fixed;
    z-index: 999;
    width: 100%;
    background-color: transparent;
    padding: 1.5vw;
    display: flex;
    justify-content: space-between;
    overflow: hidden;
    transition: background-color 0.3s;
}

#logo {
    height: 60px;
    width: 60px;
    transition: height 0.3s, width 0.3s;
}

.spacer {
    display: flex;
    gap: 15vw;
    transition: gap ease-out 0.3s;
}

.spacer *{
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    width: auto;
    height: 60px;
    padding: 5px;
    font-weight: 100;
    font-size: 3vh;
    letter-spacing: 2px;
    text-transform: uppercase;
    
}

.navbutton {
    color: #ffffff;
    font-weight: bold;
    border-radius: 30px;
    transition: background-color 0.3s;
}
.navJoin {
    color: #ffffff;
    border-color: #ffffff;
    border-style: solid;
    border-width: 2px;
    font-weight: bold;
    border-radius: 30px;
    transition: background-color 0.3s;
}

.navJoin:hover {
    background-color: #ffffff;
    color: #000000;
}

.navbutton:hover {
  background-color: #000000;
}

#header.scrolled {
    background-color: #000000;
}

#header.scrolled #logo {
    height: 75px;
    width: 75px;
}

#header.scrolled .spacer {
    right: 2vw;
    gap: 2vw;
}

#header.scrolled .navbutton:hover {
    border-color: #ffffff;
    border-style: solid;
    border-width: 2px;
}

/*NAVI==================================================================*/
section{
    padding-top: 7vh;
    margin-left: 5vw;
    margin-right: 5vw;
    overflow-x: hidden;
    background-color: #000000;
}
/*HOME==================================================================*/
#home {
    position: relative;
    padding-top: 0;
    margin:0;
    width: 100vw;
    height: 100vh;

}

.hero-div {
    position: relative;
    z-index: 3;
    margin-top: 40vh;
    margin-left: 5vw;
}

.hero-div h1 {
    font-size: 10vh;
    font-style: bold;
    color: #ffffff;
    letter-spacing: 3px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.join-button a{
    padding: 15px;
    background-color: #ffffff;
    color: #000000;
    border-radius: 30px;
    font-size: 2vh;
    text-decoration: none;
    font-style: bold;
    letter-spacing: 2px;
}

.join-button a:hover{
    background-color: #000000;
    color: #ffffff;
}

.explore-button a {
    padding: 10px;
    font-size: 2vh;
    text-decoration: none;
    color: #ffffff;
    font-style: bold;
    letter-spacing: 2px;

}

#slider {
    position: absolute;
    width: 100%;
    width: 100%;
    z-index: 0;
    background-image: url("assets/slider1.jpg");
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 5s ease-in-out;
} 

#slider::after {
    z-index: 2;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.234);
    pointer-events: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/*HOME==================================================================*/

/*ABOUT=================================================================*/

/*ABOUT=================================================================*/
/*ROLES=================================================================*/

.role-grid {
    padding-top: 2vh;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10vw, 1fr));
    gap: 5px;
    max-width: 80vw;
    margin: 0 auto;
}
.role {
    position: relative;
    z-index: 0;
    padding: 10px;
    align-items: center;
    justify-content: center;
    display: flex;
    cursor: pointer;
    transition: transform 0.2s, z-index 0s;
    transform: skewX(-15deg);
    overflow: hidden;
}

.role.highlight {
    z-index: 20;
    border: 4px solid white;
    transform: skewX(-15deg) scale(1.3);
}

.role img {
    position: relative;
    width: 30%;
    height: auto;
    padding-right: 5px;
}
.role-name {
    margin-top: 10px;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}
#selected-role {
    margin-top: 30px;
    font-size: 1.2em;
    text-align: center;
}
#randomize-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #ff0;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
#randomize-btn:hover {
    background-color: #ffa500;
}
#randomize-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}
/*ROLES=================================================================*/

/*INFINITE SCROLL=======================================================*/

.scroll-container {
    position: relative;
    width: 90vw;
    margin-top: 5px;
    align-items: center;
    overflow: hidden;
}

.scroll-wrapper {
    width: 90vw;
    overflow: hidden;
    display: flex;
    scrollbar-width: none;
}

.scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.scroll-container::before,
.scroll-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 2vw;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.scroll-container::before {
    left: 0;
    background: linear-gradient(to right, #000000 0%, rgba(255,255,255,0) 100%);
}

.scroll-container::after {
    right: 0;
    background: linear-gradient(to left, #000000 0%, rgba(255,255,255,0) 100%);
}

.infinite-scroll {
    display: flex;
    gap: 20px;
    animation: scrollLoop 25s linear infinite;
    will-change: transform;
    cursor: grab;
}

@keyframes scrollLoop {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

.scroll-item {
    width: 45vh;
    height: 30vh;
    background: #1c1c1c;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 15px;
    user-select: none;
    flex-shrink: 0;
}

.infinite-scroll:hover {
    animation-play-state: paused;
}

/*INFINITE SCROLL=======================================================*/

#joinus {
    text-align: center;
    padding-bottom: 5vh;
}

.form-button{
    padding: 10px;
    text-decoration: none;
    color: #ffffff;
    border-radius: 30px;
    border-style: solid;
    border-width: 2px;
}

.form-button:hover {
    background-color: #ffffff;
    color: #000000;
}

footer {
    background-color: #111111;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
    color: #cccccc;
}

/*FADE EFFECT==========================================================*/
.fade-on-scroll {
  opacity: 0;
  transition: opacity .6s ease-out, transform .6s ease-out;
}

.fade-on-scroll.show {
  opacity: 1;
}
/*FADE EFFECT==========================================================*/

@media (orientation: portrait) {
    html {
        scroll-padding-top: 120px;
    }

    #header {
        gap: 1vh;
        flex-direction: column;
        text-align: center;
        justify-content: center;
        align-items: center;
    }
    
    .spacer {
        position: relative;
        gap: 12px;
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .spacer *{
        font-size: 3vw;
    }

    .hero-div {
        margin-top: 30vh;
    }
    
    .hero-div h1 {
        font-size: 8vh;
    }

    .join-button a{
        font-size: 2vw;
    }

    .explore-button a {
        font-size: 2vw;
    }

    .role-grid {
        grid-template-columns: repeat(auto-fit, minmax(20vw, 1fr));
    }
}
