/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}


/* =========================================================
   BASE
   ========================================================= */
h1{
    text-align: center;
    font-size: 50px;
}

body {
    min-height: 100vh;

    font-family: Georgia, "Times New Roman", serif;

    color: #eeeeee;

    background:
        radial-gradient(
            ellipse 70% 22% at 50% 50%,
            rgba(255, 255, 255, 0.14) 0%,
            rgba(255, 255, 255, 0.08) 35%,
            rgba(255, 255, 255, 0.03) 60%,
            transparent 100%
        ),
        linear-gradient(
            180deg,
            #050505 0%,
            #0a0a0a 30%,
            #111111 45%,
            #151515 50%,
            #111111 55%,
            #0a0a0a 70%,
            #050505 100%
        );

    background-attachment: fixed;
}


/* =========================================================
   PAGE
   ========================================================= */

#page {
    width: 100%;
    min-height: 100vh;

    overflow: hidden;
}


/* =========================================================
   VIEWS
   ========================================================= */

.view {
    display: none;

    width: 100%;
    min-height: 100vh;

    padding: 40px;
}

.view.active {
    display: block;

    animation: morph-in 0.45s ease;
}


@keyframes morph-in {

    from {
        opacity: 0;
        transform: scale(0.98);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}


/* =========================================================
   HOME
   ========================================================= */

#home {
    display: none;

    flex-direction: column;
    align-items: center;
}

#home.active {
    display: flex;
}


/* =========================================================
   INTRO
   ========================================================= */

.intro {
    width: min(900px, 100%);

    display: grid;
    grid-template-columns: 1fr 1fr;

    margin: 0 auto;
}


/* =========================================================
   PORTRAIT
   ========================================================= */

.portrait {
    aspect-ratio: 1 / 1;

    overflow: hidden;
}

.portrait img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   INTRO CONTENT
   ========================================================= */

.intro-content {
    display: grid;

    grid-template-rows: auto 1fr;

    
}

.intro-content h1 {
    margin: 0;

    padding: 30px;

    font-size: 50px;
    text-align: center;
}

.intro-content p {
    margin: 0;

    padding: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    line-height: 1.6;
}


/* =========================================================
   SHARED BUTTON STYLE
   ========================================================= */

.navigation button,
.sub-navigation button {
    cursor: pointer;

    border: 1px solid #777777;
    background: #000000;
    color: #ffffff;

    font-family: inherit;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}


.navigation button:hover,
.sub-navigation button:hover {
    background: #535353;
    color: #ffffff;

    transform: translateY(-2px);
}


/* =========================================================
   HOME NAVIGATION
   ========================================================= */

.navigation {
    width: min(900px, 100%);

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 8px;

    margin-top: 35px;
}


.navigation button {
    width: 55%;

    padding: 12px;

    font-size: 16px;
}


/* Lore - most important */

.navigation button[data-section="lore"] {
    width: 65%;

    padding: 17px;

    font-size: 20px;
}


/* Family and Relationships */

.navigation button[data-section="family"],
.navigation button[data-section="relationships"] {
    width: 55%;
}


/* Role Play - least important */

.navigation button[data-section="roleplay"] {
    width: 45%;

    padding: 8px;

    font-size: 14px;
}


/* =========================================================
   INTERIOR NAVIGATION
   ========================================================= */

.sub-navigation {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 8px;

    margin: 0 auto 32px;
}


.sub-navigation button {
    padding: 10px 18px;

    font-size: 14px;
}


/* =========================================================
   VIEW CONTENT
   ========================================================= */

.view-content {
    width: min(1000px, 100%);

    margin: 0 auto;
}


/* =========================================================
   LORE
   ========================================================= */

.lore-content {
    min-height: 800px;

    padding: 50px;

    border: 2px solid #ffffff;
}

.lore-content h2 {
    margin-top: 0;

    text-align: center;

    font-size: 32px;
}

.lore-text {
    line-height: 1.7;
}


/* =========================================================
   FAMILY
   ========================================================= */

.parents {
    display: grid;

    grid-template-columns: 1fr 1.5fr;

    border: 2px solid #ffffff;

    overflow: hidden;
}


/* Image - LEFT */

.parents-picture {
    min-height: 300px;

    overflow: hidden;
}


.parents-picture img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


.parents-outline {
    padding: 35px;

    border-left: 2px solid #ffffff;

    line-height: 1.05;
}


.parents-outline h2 {
    margin-top: 0;
    margin-bottom: 18px;
}


/* =========================================================
   FAMILY MEMBERS
   ========================================================= */

.family-members {
    display: flex;
    flex-direction: column;

    gap: 35px;

    margin-top: 35px;
}


.family-member {
    display: grid;

    grid-template-columns: 1.5fr 1fr;

    border: 2px solid #ffffff;

    overflow: hidden;
}

.family-outline {
    padding: 35px;

    line-height: 1.05;
}


.family-outline h3 {
    margin-top: 0;
    margin-bottom: 18px;
}

.family-person {
    min-height: 300px;

    display: flex;

    align-items: stretch;
    justify-content: stretch;

    border-left: 2px solid #ffffff;

    overflow: hidden;
}


.family-person img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

/* =========================================================
   RELATIONSHIPS
   ========================================================= */

.relationship-group {
    margin-bottom: 60px;
}


.relationship-group > h2 {
    margin-bottom: 20px;

    text-align: center;
}


.relationship {
    display: grid;

    grid-template-columns: 1.5fr 1fr;

    min-height: 150px;

    margin-bottom: 15px;

    border: 2px solid #ffffff;
}


.relationship-outline {
    padding: 30px;
}


.relationship-person {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border-left: 2px solid #ffffff;
}


.relationship-person h3 {
    margin: 0;

    text-align: center;

    font-size: 15px;
}


.relationship-person img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   ROLE PLAY
   ========================================================= */

.roleplay-content {
    width: min(850px, 100%);
}


.roleplay-rules,
.ooc-rules {
    margin-bottom: 30px;

    border: 2px solid #ffffff;
}


.roleplay-rules h2,
.ooc-rules h2 {
    margin: 0;

    padding: 18px;

    text-align: center;

    border-bottom: 2px solid #ffffff;

    font-size: 20px;
}


.rules-text {
    min-height: 250px;

    padding: 35px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .view {
        padding: 20px;
    }


    /* Home */

    .intro {
        grid-template-columns: 1fr;
    }


    .portrait {
        width: 100%;
    }


    .intro-content {
        min-height: 250px;
    }


    .navigation button,
    .navigation button[data-section="lore"],
    .navigation button[data-section="family"],
    .navigation button[data-section="relationships"],
    .navigation button[data-section="roleplay"] {
        width: 100%;
    }


    /* Interior navigation */

    .sub-navigation {
        flex-wrap: wrap;
    }


    .sub-navigation button {
        flex: 1;
        min-width: 120px;
    }


    /* Family */

    .parents {
        grid-template-columns: 1fr;
    }


    .family-member {
        grid-template-columns: 1fr;
    }


    .family-person {
        padding: 25px;

        border-left: 0;
        border-top: 2px solid #111111;
    }


    /* Relationships */

    .relationship {
        grid-template-columns: 1fr;
    }


    .relationship-person {
        padding: 20px;

        border-left: 0;
        border-top: 2px solid #111111;
    }


    /* Lore */

    .lore-content {
        padding: 25px;
    }

}