@import "fonts.css";

/*
    General
*/

:root {

    /* Fonts */

    --motto-font: 'Roboto Slab', serif;
    --motto-weight: 900;

    --nav-font: 'Poppins', sans-serif;
    --nav-weight: 400;

    --title-font: 'Poppins', sans-serif;
    --title-weight: bolder;

    --text-font: 'Poppins', sans-serif;
    --text-weight: normal;

    --button-font: 'Poppins', sans-serif;
    --button-weight: bold;

    --footer-font: 'Poppins', sans-serif;
    --footer-weight: 400;

    font-size: 100%;
    font-family: var(--text-font);
    font-weight: var(--text-weight);

    /* Colours */

    --header-bg-colour: linear-gradient(180deg,#100413,#1e0b25);
    --footer-bg-colour: linear-gradient(0deg, #100413 0%, #1b0a21 50%, #100413 100%);
    --footer-bg-colour-light: linear-gradient(0deg, #1d0823 0%, #210d29 50%, #1d0823 100%);
    --background-colour: #f9faff;
    --text-colour-light: #ffd2fa;
    --text-colour-dark: #1c011d;
    --button-colour-dark: #6c1b7b;
    --button-colour-light: #9f27b4;
    --button-colour-dark-transparent: #6d1b7b9f;
    --button-colour-alt: #ffa200;
    --button-border: 0px solid white;
    --link-hover-colour: #FFA300;
    --link-hover-colour-alt: #9627a9;
    --link-colour: var(--button-colour-dark);
    --input-border-colour: #826789;
    --latest-label-colour: #ffa200;
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    margin: 0;
    background-color: var(--background-colour);
    color: var(--text-colour-dark);
    min-height: 100%;
}

a {
    text-decoration: inherit; /* Remove default hyperlink underline. */
    color: var(--link-colour);
}

a:hover {
    color: var(--link-hover-colour);
}

img {
    max-width: 100%;
}

a img {
    max-width: none;
    -webkit-transition-property: all;
    transition-property: all;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease;
    transition-timing-function: ease;
}

a img:hover {
    transform: scale(1.1);
}

a .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

i, svg {
    color: inherit;
    margin-right: 0.5rem;
}

button {
    appearance: none;
    background-color: var(--button-colour-dark);
    border: var(--button-border);
    border-radius: 100px;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    display: inline-block;
    margin: 0;
    min-height: 40px;
    outline: none;
    padding: 16px 24px;
    text-align: center;
    text-decoration: none;
    font-family: var(--button-font);
    font-weight: var(--button-weight);
    transition: all 300ms cubic-bezier(.23, 1, 0.32, 1);
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    width: 100%;
    will-change: transform;
}
  
button:disabled {
    pointer-events: none;
}
  
button:hover {
    box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
    color: var(--link-hover-colour);
    transform: translateY(-2px);
}
  
button:active {
    box-shadow: none;
    transform: translateY(0);
}

.button-alt {
    background-color: var(--button-colour-alt);
}

.button-alt:hover {
    color: var(--link-hover-colour-alt);
}

footer {
    margin-top: 8rem;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    background-image: var(--footer-bg-colour);
}

em {
    font-weight: bold;
    font-style: normal;
}



/*
    Navigation (Header)
*/

header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-left: 3rem;
    padding-right: 3rem;
    background-image: var(--header-bg-colour);
}

#documentation-div-container {
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 3px solid gray;
    height: 60px;
}

#documentation-div {
    color: var(--text-colour-light);
    margin-left: 3rem;
    margin-right: 3rem;
}

.left-nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    margin: 1rem;
}

.right-nav {
    margin: 1rem;
}

.mobile-nav {
    visibility: hidden;
    display: none;
    color: var(--text-colour-light);
}

.mobile-nav-list {
    visibility: hidden;
    display: none;
    color: var(--text-colour-dark);
}

.mobile-nav-list li, .mobile-nav-list li a {
    color: inherit;
}

.store-button {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-left: 1rem;
    margin-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    gap: 1rem;
    min-width: 140px;
}

.nav-elem {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    color: var(--text-colour-light);
}

.nav-text {
    font-size: 16px;
    font-size: 1rem;
    font-family: var(--nav-font);
    font-weight: var(--nav-weight);
    color: inherit;
}

.nav-text:hover {
    color: inherit;
}

.logo {
    margin-left: 1rem;
    margin-right: 0rem;
    min-width: 200px;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    font-size: 16px;
    font-size: 1rem;
}

nav ul {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    font-size: 16px;
    font-size: 1rem;
}
  
ul li {
    list-style: none;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    text-decoration: none;
    text-align: center;
    color: var(--text-colour-light);
}

li a {
    color: black;
}
  
li:hover {
    color: var(--link-hover-colour);
}
  
li:hover {
    cursor: pointer;
}

ul li ul {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    padding-left: 0;
    left: 0;
    top: 25px;
    display: none;
    background: white;
    color: black;
    z-index: 999;
}

ul li:hover > ul, ul li ul:hover {
    visibility: visible;
    opacity: 1;
    display: block;
    min-width: 350px;
    text-align: left;
    padding-top: 20px;
    box-shadow: 0px 3px 5px -1px #ccc;
}

ul li ul li {
    clear: both;
    width: 100%;
    text-align: left;
    font-family: var(--nav-font);
    font-weight: var(--nav-weight);
    margin-bottom: 20px;
    border-style: none;
    color: var(--text-colour-dark);
}

ul li ul li div {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: all 0.5s ease;
}

ul li ul li div:hover {
    padding-left: 10px;
    border-left: 2px solid var(--link-hover-colour);
    transition: all 0.3s ease;
}

.selected-nav-elem {
    visibility: visible;
    opacity: 1;
    display: block;
    min-width: 300px;
    text-align: left;
    padding-top: 20px;
    box-shadow: 0px 3px 5px -1px #ccc;
}

/*
    Shaders mega-panel: the categorised "Shaders" dropdown.
    Reuses the single-level reveal mechanism (hover + touch .selected-nav-elem),
    but lays the revealed list out as a 2x2 grid of category groups.
*/

.primary-navigation li:hover > .shaders-mega,
.shaders-mega.selected-nav-elem {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 1.75rem 1.5rem;
    box-sizing: border-box;
    width: 700px;
    min-width: 0;
    max-width: calc(100vw - 2rem);
    padding: 20px 26px;
}

.shaders-mega .shader-group {
    padding: 0;
    margin: 0;
    text-align: left;
}

.shaders-mega .shader-group:hover {
    color: inherit;
    cursor: default;
}

.shaders-mega .shader-group-title {
    font-family: var(--nav-font);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-colour-dark);
    padding-bottom: 8px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--link-hover-colour);
    cursor: default;
    pointer-events: none;
}

.shaders-mega .shader-link {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    margin-bottom: 16px;
    color: var(--text-colour-dark);
    transition: all 0.5s ease;
}

.shaders-mega .shader-link:last-child {
    margin-bottom: 0;
}

.shaders-mega .shader-link:hover {
    padding-left: 10px;
    border-left: 2px solid var(--link-hover-colour);
    transition: all 0.3s ease;
}

.shaders-mega .shader-link a {
    color: black;
}

@media (max-width: 1400px) {

    /* Collapse the shaders mega-panel to a single column on narrower screens. */

    .primary-navigation li:hover > .shaders-mega,
    .shaders-mega.selected-nav-elem {
        grid-template-columns: 1fr;
        width: max-content;
    }

}

.fa-fw {
    font-size: 1.25rem;
}

.mobile-nav .fa-fw {
    font-size: 1.75rem;
}

.mobile-nav .fa-bars {
    font-size: 2.5rem;
}



/*
    Footer
*/

.footer-end-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.copyright-text {
    color: #FFFFFF;
    font-size: 16px;
    font-size: 1rem;
    text-align: left;
    font-family: var(--footer-font);
    font-weight: var(--footer-weight);
}

.social-media-icons-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-media-icon {
    padding-right: 0.5rem;
    color:#FFFFFF;
}



/*
    Footer Navigation
*/

my-footer {
    margin-top: auto;
}

.footer-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    padding: 1rem 5rem;
    background-image: var(--footer-bg-colour-light);
}

.footer-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 2rem;
    color: var(--text-colour-light);
}

.footer-nav-container:hover {
    color: var(--link-hover-colour);
}

.fa-arrow-left, .fa-arrow-right {
    font-size: 1.5rem;
}

.text-container-left {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
}

.text-container-right {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-direction: column;
}

.prev-text {
    text-align: left;
}

.next-text {
    text-align: right;
}

.prev-text, .next-text {
    font-size: 16px;
    font-size: 1rem;
}

.prev-link {
    text-align: left;
}

.next-link {
    text-align: right;
}

.prev-link, .next-link {
    font-size: 24px;
    font-size: 1.5rem;
}

.not-implemented {
    pointer-events: none;
    color: rgba(107, 107, 107, 0.39);
}



/*
    Media Queries
*/

@media (min-width: 3840px) {
    /* >= 4K */
    :root {
        font-size: 175%;
    }

    .logo {
        min-width: 300px;
    }

    ul li:hover > ul, ul li ul:hover {
        min-width: 650px;
        padding-top: 40px;
    }

    button {
        min-width: 300px;
        padding-top: 1rem;
        padding-bottom: 1rem; 
    }
}

@media (min-width: 2560px) and (max-width: 3839px) {

    /* Large screens between 1440p and (below) 4K */

    :root {
        font-size: 125%;
    }

    ul li:hover > ul, ul li ul:hover {
        min-width: 450px;
        padding-top: 30px;
    }
}

@media (min-width: 2560px) {

    /* Large screens (>= 1440p) */

    .logo {
        min-width: 300px;
    }

    button {
        min-height: 80px;
        font-size: 1rem;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .store-button {
        min-width: 200px;
    }

    ul li ul li {
        margin-bottom: 40px;
    }

}

@media (max-width: 1400px) {

    header {
        margin-left: 0;
        margin-right: 0;
    }

    .footer-links-section-container {
        margin-left: 1rem;
        margin-right: 1rem;
    }
    
    .footer-links-section {
        padding-left: 1rem;
    }

    a img {
        max-width: 100%;
    }

}

@media (max-width: 1350px) {

    i {
        margin-right: 0.5rem;
    }

    .right-nav {
        margin: 0;
        min-width: 0;
    }

    .logo {
        margin: 0;
    }

    .left-nav {
        margin-right: 0;
    }

    #Asset-Store-Nav {
        padding: 16px 16px;
        height: 80%;
        width: 80%;
    }

}

@media (max-width: 1100px) {

    ul li {
        padding: 0;
        padding-left: 1rem;
    }

    .primary-nav-list {
        padding: 0rem;
    }
    
    #documentation-div {
        color: var(--text-colour-light);
        margin-left: 1rem;
        margin-right: 1rem;  
    }

    header {
        padding: 0;
    }

    .store-button {
        margin-right: 0;
    }

}

@media (max-width: 800px) {
    
    :root {
        font-size: 90%;
    }

}

@media (max-width: 750px) {

    /* Navigation is now entirely as a dropdown menu. */

    #documentation-div-container {
        display: flex;
        align-items: center;
        justify-content: center;
        border: 0;
    }

    .mobile-nav {
        visibility: visible;
        display: block;
        margin-right: 1rem;
    }

    .mobile-nav-list {
        visibility: hidden;
        display: none;
        opacity: 0;
        position: absolute;
        padding-right: 4rem;
        padding-left: 1rem;
        right: 0;
        top: 76px;
        width: 200px;
        background: white;
        color: black;
    }
    
    .mobile-nav-list li {
        clear: both;
        width: 100%;
        text-align: left;
        font-family: var(--nav-font);
        font-weight: var(--nav-weight);
        margin-bottom: 20px;
        margin-top: 20px;
        border-style: none;
    }
      
    .mobile-nav-list li a {
        transition: all 0.5s ease;
    }

    .nav-elem {
        justify-content: flex-start;
        font-size: 24px;
        font-size: 1.5rem;
    }

    .nav-text {
        font-size: 24px;
        font-size: 1.5rem;
    }

    nav, .right-nav {
        visibility: hidden;
        display: none;
    }

}

@media (max-width: 800px) {

    /* Mobile layout */

    .footer-links-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-bottom: 4rem;
    }
    
    .footer-links-section-container {
        height: 100%;
        min-width: 300px;
        margin-left: 2rem;
        margin-right: 2rem;
        margin-bottom: 2rem;
    }
    
    .footer-links-section {
        justify-content: flex-start;
        align-items: flex-start;
        padding-left: 1rem;
    }

    .footer-link {
        padding-bottom: 0.75rem;
    }

    .newsletter-subscription-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .copyright-text {
        font-size: 0.75rem;
    }

    .footer-nav {
        padding: 1rem 2rem;
    }
}

@media (max-width: 500px) {

    /* Extremely small screens */

    .logo {
        min-width: 100px;
    }
    
    .footer-end-container {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .newsletter-email-input {
        width: 80%;
    }

    .social-media-icons-container {
        width: 100%;
        gap: 2rem;
        padding-top: 1rem;
    }

    .social-media-icon {
        padding: 0;
    }

    .footer-nav {
        padding: 1rem 0.5rem;
    }

    i, svg {
        margin: 0;
    }

    .prev-text, .next-text {
        font-size: 12px;
        font-size: 0.75rem;
    }
    
    .prev-link, .next-link {
        font-size: 20px;
        font-size: 1.25rem;
    }

    .fa-arrow-left, .fa-arrow-right {
        font-size: 1rem;
    }

    button {
        display: flex;
        gap: 1rem;
        justify-content: center;
        align-items: center;
    }

    .store-button {
        margin: 0;
    }
}

@media (hover: none) {
     
    button {
        transition: all 100ms cubic-bezier(.23, 1, 0.32, 1);
    }
    
    button:active {
        box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
        color: var(--link-hover-colour);
        transform: translateY(-5px);
    }

}