@import url('global-styles.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    overflow-x: hidden;
    display : flex;
    scroll-behavior: smooth;
    font-family: 'SpecialElite', sans-serif;
}

/* NAVIGATION */
.nav-main {
    width: 100%;
    position: fixed;
    z-index: 999;
    font-family: 'Blackcraft', sans-serif;
    font-size: 2vw;
    height: fit-content;
    transition: transform 0.3s ease;
}
.hide {
    transform: translateY(-100%);
}

.nav-main-header {
    background-color: #3F4A51;
    transition: transform 0.3s ease;
    list-style: none;
    display: flex;
    flex-direction: row;
    height: fit-content;
    box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.4);
    
    justify-content: space-around;
    align-items: center;

    height: 10dvmin;

}
.nav-main-header li {
    min-width: 20px;
    transform: scale(0.8);
}
.nav-main-header li a {
    text-decoration: none;
    color: #B124DB;
    
}
.nav-main-header li a:hover {
    color: #b124b1;
}

/* transitions  */

.page-transition img{
    pointer-events: none;
    opacity: 1;
    position: fixed;
    height: 110%;
    width: 110%;
    z-index: 9999;
    display: none;

    animation: fadeOut 1.5s ease-out forwards;
}
@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

/* sidebar navigation */

.side-bar {
    position: relative;
    top: 0;
    left: 0;
    bottom: 0;
    

    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);

    width: fit-content;
    min-width: 20vw;
    min-height: 100vh;
    background-color: #343a3d;

    display: flex;
    padding-left: 1vw;
    font-size: 30px;
    overflow-y: auto;
}

/* header for crops */

.nav-header-crop {
    display: flex;
    flex-direction: column;
    margin-top: 15vh;
}
.nav-header-crop-title {
    color: white;
    margin-top: 6px;
}

.topic-section {
    list-style: none;
}

.subsection {
    padding-top: 6px;
    padding-left: 1vw;
    color: white;
    text-decoration: none;
    font-size: 1vw;
    transition:cubic-bezier(0.6, -0.28, 0.735, 0.045);
}
.subsection:hover {
    border-style:inset; 
}



/* wiki-scroll-content */

.bg {
    
    z-index: 1;
    min-width: 100vw;
    min-height: 100vh;
    position: fixed;
    background-image: url("../Assets/Background/wiki-bg.jpg"); 
    margin-top: 10dvmin;
    background-color: black;
    opacity: 0.8;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    
}

.wiki-page-content {

    padding: 20px;
    margin-top: 10vh;
    flex: 1;
    min-height: 100vh;
}

.wiki-page-content section {
    min-height: 100vh;
}



/* content */
#content-font {
    color: white;
    z-index: 2;
}

.content-heading {
    font-size: 3vw;
}
.content-subheading {
    font-size: 2vw;
    padding: 1vw;
}
.content-text {
    line-height: 1.5;
    font-size: 1vw;
    padding: 2vw 2vw;
}


/* tables */

.item-table {
    border-style: solid;
    border-radius: 5px;
    border-color: white;

    border-spacing: 20px;
    margin: 5vh;
}

.item-table-header-row {
    color: #B124DB;
    
    border-style: solid;
    border-radius: 5px;
    border-color: white;
}

.item-table-main-row {
    border-style: solid;
    border-radius: 5px;
    border-color: white;
}



/* Above content has been deprecated as of 6/1/2025 (old wiki_classic)*/
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

/* wiki page */

.wiki-content {
    display: grid;
    margin:auto;
    z-index: 2;
    height: auto;
    display: flex;
    position: relative;
}



/* icon-almanac */

.icon-table {
    width: 50%;
    flex-wrap: wrap;
}



/* deck animation */

.deck-container {
    
    width: 100vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}
.sort-menu {
    position: absolute;
    top: 12dvmin;
    background-color: aliceblue;
    width: 40dvmax;
    height: 5dvmin;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    
}

.sort-item {
    margin: 1dvmin;
}


.card {
    position: absolute;
    width: 20dvmin;
    height: 15dvmax;
    border-radius: 8px;
    color: black;
    background-color: white;

    border-style: solid;

    align-items: center;
    justify-content: center;
    align-content: center;
    display: flex;
    font-size: 4dvmin;

    
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;

    z-index: 10;
    
}

.card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.deck-center {
    transform: translateX(-50%);
}

.split .card:nth-child(odd) {
    animation: spinLeft 0.5s linear forwards;
    animation-delay: calc(var(--card-index, 0) * 50ms);
}
.split .card:nth-child(even) {
    animation: spinRight 0.5s linear forwards;
    animation-delay: calc(var(--card-index, 0) * 50ms + 10ms);
}

.split .card:hover{
    scale: 1.05;
}

.card-icon {
    width: 20dvmin;
    height: 20dvmin;
}



@keyframes spinLeft {
    0% {
        transform: translateX(0%) rotateY(0deg) rotateZ(0deg);
    }
    50% {
        transform: translateX(-50%) translateY(50%) rotateY(180deg) rotateZ(180deg) scale(1.1);
    }
    100% {
        transform: translateX(-150%) translateY(100%) rotateY(360deg) rotateZ(5deg) scale(1);
    }
}

@keyframes spinRight {
    0% {
        transform: translateX(0%) rotateY(0deg) rotateZ(0deg);
    }
    50% {
        transform: translateX(50%) translateY(50%) rotateY(-180deg) rotateZ(-180deg) scale(1.1);
    }
    100% {
        transform: translateX(150%) translateY(100%) rotateY(-360deg) rotateZ(-5deg) scale(1);

    }
}


/* for the wiki-crops and info-card galleries. Note that info-card styles are in the .js file*/
#icon-grid {

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20dvmin, 1fr));  
    grid-template-rows: repeat(auto-fit, minmax(15dvmax, 1fr));
 
    
    max-width: 40vw;
    min-height: 100vh;
    box-sizing: border-box;
    padding-top: 20dvmin;
    padding-left: 1dvmin;
}

.page-description {
    min-width: 50vw;
    height: 100vh;
}

info-card {
    max-width: fit-content;
}

/* journal/book */

.book {
    position: fixed;
    top: 12dvmin;
    right: 43dvmax;

    display: flex;
    align-items: center;
    cursor: pointer;

    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    
    perspective: 1000px;
    
    
}

.book.hover .cover {
    transform: rotateX(10deg) rotateY(-180deg);
    pointer-events: none;
    
    
}

.cover {
    z-index: 1;
    transition: all 1s;
}
.back-cover {
    z-index: -1;
}

.cover,
.back-cover {
    top: 1dvmin;
    height: 78dvmin;
    width: 30dvmax;

    background-image: url('../Assets/Background/black-leather.jpg');
    filter: contrast(1.2) brightness(0.78);
    background-blend-mode: multiply;
    background-size: cover;


    border-radius: 10px;
    position: absolute;

    transform: rotateX(10deg);
    transform-origin: center left;
}

.page {
    top: 3dvmin;
    border-radius: 10px;
    height: 75dvmin;
    width: 28dvmax;
    background-image: url('../InteractiveMap/map_bg.jpg');
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    position: absolute;

    display: flex;
    transform: rotateX(10deg);
}

/* text */
.page h2 {
    margin: 10dvmin;
    color: white;
}

.page:nth-child(2) {
    transition-duration: 3s;
}
.page:nth-child(3) {
    transition-duration: 2.6s;
}
.page:nth-child(4) {
    transition-duration: 2.2s;
}



.almanac {
    z-index: 2;
}

.sort-item:hover{
    transform: scale(2);
}

/* animated descriptions */
.char {
    display: inline-block;
    animation: snapRotate 2s infinite linear;
    transform-origin: center;
}
@keyframes snapRotate {

    0% { transform: none; }
    25% { transform: rotate(15deg) scale(1.3) translate(3px, 1px); }
    50% { transform: rotate(0deg) scale(1.56) translate(-3px, -1px); }
    75% { transform: rotate(-15deg) scale(1.3) translate(2px, 4px); }
    100% { transform: rotate(0deg) scale(1.1) translate(-2px, -4px); }
}





/* pl*mbos */
.parallax-wrap img{
    position: absolute;
    height: 10dvmin;
    width: 10dvmin;
    z-index: inherit;
}
.parallax-wrap {
    z-index: 1;
}