@import "tailwindcss";

/* tells Tailwind to trigger the dark: prefix manually (not just when prefers-dark-mode is active) */
@custom-variant dark (&:where(.dark, .dark *));

:root
{
    --home-blue: #DAE8fC;
    --home-blue-dark: #6C8EBF;
    --light-gray: #c8c8c8;
    --dark-gray: #303234;
    --dark: #0D0D0D;
    --create: #D5E8D4;
    --create-alt: #a1b6a0;
    --create-dark: #4D7138;
    --light-green: #D5E8D4;
    --danger: #A7382B;
    --danger-light: #C84334;
    --salmon: #EE8784;
    --light-soft-pink: #fff2fd;
    --soft-pink: #FFD6F9;
    --soft-pink-alt: #ce5fa0;
    --yellow: #FFF2CC;
    --yellow-alt: #EACD79;
    --share-orange: #F9E7CF;
    --share-orange-alt: #CA9D35;
    --teal: #B0E3E6;
    --teal-alt: #0E8088;
    --sandy-brown: #F9F7ED;
    --light-gray: #c5c5c5;
    --orange: #d4a017;
    --orange-dark: #b8860b;
    --purple: #5a5090;
    --pink: #FFCCE6;
    --pink-dark: #f75bac;
    

}

@font-face
{
    font-family: 'PassionOne';
    src: url('../static/fonts/PassionOne-Regular.ttf') format('truetype');
}

/* GLOBAL FONT OPTIONS */
*
{
    font-family: 'PassionOne';
    letter-spacing: 1px;
    box-sizing: border-box;
}

/* GLOBAL NAVIGATION MENU STYLING */
nav
{
    /* border: 3px solid var(--home-blue-dark); */
    box-sizing: border-box;
    /* display: flex;
    align-items: stretch;
    justify-content: space-between;
    padding: 0 1rem;
    background-color: var(--home-blue); */
    width: 100%;
    height: 100px;
    /* color: var(--dark-gray); */
}
nav > :first-child
{
    /* border: 1px solid black; */
    flex-grow: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    border: none;
    color: inherit;
}

#nav-hover-butt .nav-home-icon
{
    display: block;
    width: 1.6rem;
    height: 1.6rem;
    margin: 0 auto -2rem;
}

#nav-hover-butt
{
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}

nav > header
{
    /* border: 1px solid black; */
    flex-grow: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
}
nav > header > h1
{
    margin-bottom: 0;
}
nav > #dynamic-nav-buttons
{
    /* border: 1px solid black; */
    flex-grow: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10%;
}

/* nav > #dynamic-nav-buttons > a
{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 1rem;
    border-radius: 8px;
    border: 2px solid var(--create-alt);
    background-color: var(--create);
    color: var(--create-dark);
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
} */

nav > #dynamic-nav-buttons > a:hover
{
    background-color: var(--light-green);
    border-color: var(--create-dark);
    box-shadow: inset 0 0 0 1px var(--create);
    color: var(--create-alt);
}

nav > #dynamic-nav-buttons > a h2
{
    margin: 0;
}

nav > #dynamic-nav-buttons > .creator-history-controls
{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30%;
}

nav > #dynamic-nav-buttons .creator-redo-undo
{
    width: 75%;
    height: 75%;
    color: var(--dark-gray);
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 15%;
    font-size: 30px;
    line-height: 1;
    transition: color 0.15s ease;
}


nav > #dynamic-nav-buttons .creator-redo-undo .creator-redo-undo-icon
{
    width: 1em;
    height: 1em;
    display: block;
}

nav > #dynamic-nav-buttons .nav-last-saved
{
    font-size: 1.2rem;
    font-style: normal;
    color: var(--dark-gray);
    line-height: 1;
    margin-top: 0.5rem;
}

#undo-button, #undo-button span
{
    color: var(--home-blue-dark);
    font-size: 30px;
}

#undo-button .creator-redo-undo-icon
{
    filter: invert(56%) sepia(23%) saturate(616%) hue-rotate(176deg) brightness(86%) contrast(86%);
}


#redo-button, #redo-button span
{
    color: var(--dark-gray);
    font-size: 30px;
}

#redo-button .creator-redo-undo-icon
{
    filter: brightness(0) saturate(100%) invert(18%) sepia(4%) saturate(404%) hue-rotate(169deg) brightness(95%) contrast(87%);
}

nav > #nav-hover-panel
{
    position: fixed;
    top: 0;
    left: 0;
    width: 70%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    padding: 0 5%;
    transform: translate(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 2;
}
nav > #nav-hover-panel > a
{
    text-decoration: none;
    color: var(--dark);
    font-size: 50px;
    background-color: var(--yellow);
    width: fit-content;
    padding: 3px 15px 3px 5px;
}
nav > #nav-hover-panel > a:hover { background-color: var(--yellow-alt); }
#nav-hover-panel > a:nth-child(2) { margin-left: 15%; }
#nav-hover-panel > a:nth-child(3) { margin-left: 80%; }
#nav-hover-panel > a:nth-child(4) { margin-left: 80%; }
nav > #nav-hover-panel > div:first-of-type
{
    /* background-color: blue; */
    position: absolute;
    z-index: -2;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
}
nav > #nav-hover-panel > div:last-child
{
    width: 100%;
    height: 100%;
    position: absolute;
    clip-path: polygon(0 0, 0% 100%, 100% 100%);
    background-image: linear-gradient(to right, var(--danger), var(--danger-light));
    top: 0px;
    left: 0px;
    z-index: -1;
}
nav > #accessibility-panel > button
{
    /* width: 80%;
    height: 50%; */
    border-radius: 5px;
    /* background-color: var(--dark-gray); */
}

nav > #accessibility-panel > button .accessibility-icon
{
    width: 1.1rem;
    height: 1.1rem;
    display: block;
    margin: 0 auto;
    filter: brightness(0) invert(1);
}

nav > #accessibility-panel > select
{
    /* width: 80%;
    height: 35%; */
    border-radius: 5px;
}

/* GLOBAL UTILITY CLASSES (may be changed after tailwind gets added) */
/* .hidden
{
    display: none; 
} */

.faded-overlay
{
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0, 0.3);
}

.triangle
{
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid currentColor;
}

.quiz-library-module
{
    position: relative;
    cursor: grab;
}

.quiz-library-module.quiz-dragging
{
    opacity: 0.45;
}

.quiz-library-module.quiz-drag-over-before::before,
.quiz-library-module.quiz-drag-over-after::after
{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 5px;
    border-radius: 999px;
    background-color: var(--home-blue-dark);
    pointer-events: none;
}

.quiz-library-module.quiz-drag-over-before::before
{
    top: -10px;
}

.quiz-library-module.quiz-drag-over-after::after
{
    bottom: -10px;
}
