/*

    ◻ CORE.css
    - This file contains the core styles for the website,
    including typography, layout, and basic UI elements.
    It serves as the foundation for all other stylesheets
    and ensures consistency across the entire site.

    by June Saturn

*/

/*--------------------------------------------------------------------------------------------
  Entire
--------------------------------------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');

@font-face {
    font-family: "Lexend";
    src: url("fonts/Lexend.woff2") format("woff2");
    unicode-range: U+0020-007E;
}

@font-face {
    font-family: "Pretendard";
    src: url("fonts/Pretendard.woff2") format("woff2");
    unicode-range: U+AC00-D7A3, U+1100-11FF, U+3130-318F;
}


:root {
    /* Variables */
    --white: rgb(242, 242, 242);
    --black: rgb(0, 0, 0);
    --default-font-size: 16px;

    /* Font */
    font-family: "Lexend", "Pretendard", sans-serif;
    font-size: var(--default-font-size);
    font-optical-sizing: auto;
    font-style: normal;
    letter-spacing: -0.5px;
    
    /* Other settings */
    overflow-x: hidden;
}

* {
    margin: 0;
    box-sizing: border-box;
}

::selection {
    color: var(--white);
    background-color: var(--black);
}

hr {
    border: none;
    height: 1px;
    background-color: var(--black);
    margin: 20px 0;
}

.logo {
    caret-color: transparent;
    position: relative;
}

html {
    background-color: var(--white);
}

header .logo {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

header {
    position: fixed;
    z-index: 49;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin: 0 auto;
    padding: 24px;
    border-bottom: 1px solid var(--white);
    color: var(--white);
    
    mix-blend-mode: difference;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
}

.link {
    text-decoration: none;
    color: inherit;
}

.hamburger, .back-arrow {
    display: none;
    background: none;
    border: none;

    position: relative;
    width: 18px;
    height: 18px;
    padding: 0;

    cursor: pointer;
}

.hamburger .line {
    display: block;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    border-radius: 12px;
    margin-top: 5px;
    position: relative;
    bottom: 4px;
}

.back-arrow::before {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 2px;
    width: 10px;
    height: 10px;
    border-left: 2px solid var(--white);
    border-bottom: 2px solid var(--white);
    border-radius: 1px;
    transform: translateY(-50%) rotate(45deg);
}

.back-arrow::after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 2px;
    width: 14px;
    height: 2px;
    background-color: var(--white);
    border-radius: 12px;
    transform: translateY(-50%);
}

/*------------------------------------------------------------------------------------------*/





/*--------------------------------------------------------------------------------------------
  Desktop
--------------------------------------------------------------------------------------------*/

/* Logo */
.logo {
    width: 140px;
}

/* Typography */
h1    { font-size: 3rem;     letter-spacing: -0.5px; line-height: 1.2; font-weight: 400; } 
h2    { font-size: 2rem;     line-height: 1.3; font-weight: 400; }
h3    { font-size: 1.5rem;   line-height: 1.4; font-weight: 400; }
p     { font-size: 1.125rem; line-height: 1.7; }
small { font-size: 0.875rem; }

header .menu nav span {
    text-decoration: none;
    cursor: pointer;
    
    color: var(--white);
    margin-left: 0.5rem;
}

header .menu nav button {
    display: none;
}

/* Main */
main {
    padding: 24px;
    padding-top: 80px;
    
    line-height: 1.6em;
}

/* Footer */
footer {
    letter-spacing: -0.5px;
    font-size: 0.75rem;

    border-top: 1px solid rgb(0, 0, 0, 0.14);

    padding: 24px;
    padding-top: 30px;
    padding-bottom: 50px;
 
    margin-top: auto;
}
footer .logo {
    display: inline-block;
    padding-bottom: 10px;
}
footer hr {
    border-top: 1px solid rgba(0, 0, 0, 1);
    margin-top: 14px;
    margin-bottom: 12px;
}
footer .socials {
   float: right;
   position: relative;
   bottom: 4px;
}
footer .socials-ico {
    width: 42px;
    height: 42px;
    
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
footer .footmenu {
    margin-top: 20px;
}
footer .footmenu span {
    margin-right: 0.4rem;
    
    cursor: pointer;
}
footer .footmenu span:hover {
    text-decoration: underline;
}
footer .footmenu span:active {
    text-decoration: none;
    background-color: var(--black);
    color: var(--white);
    border-radius: 4px;
}
footer #txt_footer_instruction {
    display: block;
}

/*------------------------------------------------------------------------------------------*/





/*--------------------------------------------------------------------------------------------
  Tablet
--------------------------------------------------------------------------------------------*/

@media (max-width: 1024px) {

    /* Logo */
    .logo {
        width: 140px;
    }

    /* Typography */
    h1    { font-size: 2.25rem;  }
    h2    { font-size: 1.75rem;  }
    h3    { font-size: 1.25rem;  }
    p     { font-size: 1rem;     }
    
    .logo {
        width: 110px;
    }

}

/*------------------------------------------------------------------------------------------*/





/*--------------------------------------------------------------------------------------------
  Mobile
--------------------------------------------------------------------------------------------*/

@media (max-width: 768px) {

    /* Logo */
    .logo {
        width: 90px;
    }

    /* Typography */
    h1    { font-size: 1.75rem; }
    h2    { font-size: 1.375rem; }
    h3    { font-size: 1.125rem; }
    p     { font-size: 1rem;     }

    header {
        padding-top: 18px;
        padding-bottom: 18px;
    }
    header .menu {
        background-color: rgba(244, 244, 244, 0.5);
        backdrop-filter: blur(12px);
        color: var(--black);
        
        display: none;
        z-index: 50;
        /* Thanks to top, left, right, width is not needed and there is no risk of the right side being cut off */
        top: 0;
        left: 0;
        right: 0;
        height: 100lvh;
    }
    header .menu nav {
        flex-direction: column;
        row-gap: 0.5em;
    }
    header .menu nav button {
        display: block;
    }
    header .menu.active {
        display: flex;
    }
    header .menu nav span {
        color: var(--black);
        border: 1px solid var(--black);
        margin-left: 0;

        padding: 12px;
        border-radius: 8px;
    }
    header .menu nav span:hover {
        background-color: var(--black);
        color: var(--white);
    }
    header .hamburger {
        display: inline-block;
    }

    footer {
        padding: 24px;
        padding-top: 24px;
        padding-bottom: 24px;
    }
    footer .socials-ico {
        width: 32px;
        height: 32px;
    }

}

/* Menu */
.menu-open {
    padding: 0;
    mix-blend-mode: normal;
    overflow: scroll;
}
.menu-open .logo.prime {
    display: none;
}
.menu-open .menu {
    width: 100lvw;
    height: 100lvh;
}
.menu-open .menu nav {
    display: flex;
    flex-direction: column;
    width: 100%;

    padding: 18px;
}
.menu-open .menu nav .game {
    height: 6rem;
}
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;
}
.menu-header .back-arrow::before {
    content: '';
    border-left: 2px solid var(--black);
    border-bottom: 2px solid var(--black);
}

.menu-header .back-arrow::after {
    content: '';
    background-color: var(--black);
}

/*------------------------------------------------------------------------------------------*/





/*--------------------------------------------------------------------------------------------
  Underscaled
--------------------------------------------------------------------------------------------*/

@media (max-width: 300px) {

    footer {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    footer .logo {
        display: block;
        float: center;
    }

    footer .socials {
        display: block;
        float: center;
        padding-bottom: 20px;
    }
}

/*------------------------------------------------------------------------------------------*/
