@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: 20vw;
    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: 15px;
    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;
    background-color: #000000;
}
/*PERIODS===============================================================*/
#periods {
    margin-top: 5vh;
}
/*PERIODS===============================================================*/

.qna {
    width: 100%;
    height: auto;
    padding-top: 5vh;
    padding-left: 2vw;
}

.qna *{
    width: 100%;
    padding: 2px;
    font-style: italic;
}

.question {
    background-color: #181818;
    font-style: bold;

}


/*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;
}

.role-description {
    padding-top: 3vh;
    width: fit-content;
    margin: 0 auto;
    text-align: center;
}
/*ROLES=================================================================*/


/*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: 5vh;
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #periods {
        margin-top: 20vh;
    }



    .role-grid {
        grid-template-columns: repeat(auto-fit, minmax(20vw, 1fr));
    }
}
