@import url("https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;700&display=swap");

/*=================*/
/* Variables       */
/*=================*/
:root,
[data-theme="default"] {
    /*=================*/
    /* Containers      */
    /*=================*/
    --x-small: 600px;
    --small: 800px;
    --medium: 1000px;
    --large: 1200px;
    --100vh: 100dvh;
    /*=================*/
    /* Breakpoints     */
    /*=================*/
    --mobile: var(--x-small);
    --tablet: var(--small);
    --desktop: var(--medium);
    /*=================*/
    /* Global Colors   */
    /*=================*/
    --background: #FFF;
    --primary-color: #3874FF;
    --secondary-color: #FFC438;
    --accent-color: #5A78BF;
    --tertiary-color: #AA935E;
    --shade-hex: #5C6780;
    --background-plus25: #eee;
    --primary-color-less25: #3064DB;
    --primary-color-plus25: #2751B3;
    --secondary-color-less25: #DBA830;
    --secondary-color-plus25: #B38927;
    --accent-color-plus25: #364873;
    --accent-color-less25: #6F95ED;
    --shade-hex-less25: #e1e1e1;
    --txt-color: var(--primary-color-plus25);
    --link-color: var(--primary-color-plus25);
    --link-hover-color: var(--primary-color-less25);
    --sub-script: var(--shade-hex);
    --grad-lite: linear-gradient(var(--secondary-color-less25), var(--primary-color-less25));
    --grad: linear-gradient(var(--secondary-color), var(--primary-color));
    --diag-grad: linear-gradient(to bottom right, var(--secondary-color), var(--primary-color));
    --translucent: rgba(0, 255, 255, 0.1);
    --translucent-40: rgba(255, 255, 255, 0.4);
    --translucent-60: rgba(255, 255, 255, 0.6);
    --translucent-90: rgba(255, 255, 255, 0.9);
    --shade: 0 0.2rem 0.5rem 0 rgba(92, 103, 128, 0.1);
    --shade-s: 0 0.5rem 1rem 0 rgba(92, 103, 128, 0.2);
    --shade-m: 0 0.5rem 1rem 0 rgba(92, 103, 128, 0.5);
    --highlight: #c4e538;
    --error: #ea2027;
    --inactive: 0.5;
    --active: 1;
    /*=================*/
    /* Typography      */
    /*=================*/
    /* Heading font size */
    --h1: 2.5rem;
    --h2: 2rem;
    --h3: 1.8rem;
    --h4: 1.5rem;
    --h5: 1.2rem;
    --h6: 0.8rem;
    --fontfam: "Quicksand", sans-serif;
}

@supports (height: 100dvh) {
    :root {
        --unit-100vh: 100dvh;
    }
}

/*=================*/
/* Page settings   */
/*=================*/
* {
    box-sizing: border-box;
}

*:focus {
    outline: 1px solid var(--accent-color-less25);
}

html,
body {
    font-family: var(--fontfam);
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    font-weight: normal;
    color: var(--txt-color);
    background-image: var(--diag-grad);
    background-attachment: fixed;
    /* background-image: url(bg.png);
  background-repeat: no-repeat;
  background-position: center;*/
    font-size: 1em;
    scrollbar-width: thin;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 1rem 0;
    font-weight: 600;
    font-family: var(--fontfam);
    line-height: 1.2;
    color: var(--primary-color);
}

h1 {
    font-size: var(--h1);
}

h2 {
    font-size: var(--h2);
}

h3 {
    font-size: var(--h3);
}

h4 {
    font-size: var(--h4);
}

h5 {
    font-size: var(--h5);
}

h6 {
    font-size: var(--h6);
}

[type="color"],
[type="date"],
[type="datetime"],
[type="datetime-local"],
[type="email"],
[type="month"],
[type="number"],
[type="password"],
[type="search"],
[type="tel"],
[type="text"],
[type="url"],
[type="week"],
[type="time"],
[type="submit"],
[type="reset"],
[type="button"],
select,
textarea,
.button,
a.button,
button,
label {
    font-family: var(--fontfam);
}

a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    color: var(--link-hover-color);
}

.subline {
    color: var(--sub-script);
}

/* Scrollbar settings */
/* width */
::-webkit-scrollbar {
    width: 0.5rem;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 0.3rem var(--shade-hex);
    border-radius: 0.5rem;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 0.5rem;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color-plus25);
}

/*=================*/
/* Flex layout     */
/*=================*/
/* Main row container */
.container {
    display: flex;
    /* align-items: flex-start;*/
    /* justify-content: flex-start; */
    flex-direction: column;
}

/*=================*/
/* Forms           */
/*=================*/
[type="color"],
[type="date"],
[type="datetime"],
[type="datetime-local"],
[type="email"],
[type="month"],
[type="number"],
[type="password"],
[type="search"],
[type="tel"],
[type="text"],
[type="url"],
[type="week"],
[type="time"],
select,
textarea {
    /* display: block; */
    border: 0.1rem solid var(--primary-color-less25);
    border-radius: 0.3rem;
    padding: 0.5rem 0rem 0.5rem 0.5rem;
    /* outline: none; */
    /* background: transparent; */
    /* margin-bottom: 0.5rem; */
    font-size: 1rem;
    color: var(--txt-color);
    width: calc(100% - 1rem);
    /* max-width: 100%; */
    /* line-height: 1; */
}

.button,
a.button,
button,
[type="submit"],
[type="button"] {
    -webkit-appearance: none;
    appearance: none;
    display: inline-block;
    border: 0.1rem solid var(--primary-color-less25);
    border-radius: 0.3rem;
    background: var(--primary-color);
    color: var(--background);
    font-weight: bold;
    font-size: var(--h5);
    /* text-transform: none; */
    padding: 0.5rem 2rem;
    margin: 0.5rem 0 0.5rem 0;
    /* vertical-align: middle; */
    /* text-align: center; */
    cursor: pointer;
    /* text-decoration: none; */
    /* line-height: 1; */
    width: 100%;
}

.button:hover,
a.button:hover,
button:hover,
[type="submit"]:hover,
[type="reset"]:hover,
[type="button"]:hover {
    border: 0.1rem solid var(--accent-color-plus25);
    background: var(--primary-color-plus25);
}

label {
    display: block;
    margin: 0.5rem 0;
}

/*=================*/
/* Helpers         */
/*=================*/
.accel {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

/*=================*/
/* Modal           */
/*=================*/
/* The Modal (background) */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: var(--translucent-40);
    /* Fallback color */
    background-color: var(--translucent);
    /* Black w/ opacity */
    padding-top: 4rem;
}

/* Modal Content/Box */
.modal-content {
    background-color: var(--translucent-60);
    margin: 5% auto 15% auto;
    /* 5% from the top, 15% from the bottom and centered */
    border: 0.1rem solid var(--shade-m);
    width: 80%;
    /* Could be more or less, depending on screen size */
}

/* The Close Button (x) */
.close {
    position: absolute;
    right: 1.5rem;
    top: 0;
    color: var(--txt-color);
    font-size: var(--h1);
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
    cursor: pointer;
}

/* Add Zoom Animation */
.animate {
    -webkit-animation: animatezoom 0.3s;
    animation: animatezoom 0.3s;
}

@-webkit-keyframes animatezoom {
    from {
        -webkit-transform: scale(0);
    }

    to {
        -webkit-transform: scale(1);
    }
}

@keyframes animatezoom {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

.centered {
    display: flex;
    align-items: center;
    justify-content: center;
}

.horizontal {
    display: flex;
    flex-direction: row;
}

.vertical {
    display: flex;
    flex-direction: column;
}

.diagonal {
    --diagonal: "todo";
}

/*=================*/
/* Custom          */
/*=================*/
header>svg {
    height: 4rem;
    margin-top: 0.5rem;
}

h1 {
    color: var(--secondary-color);
    font: bold 3rem/3.5rem var(--fontfam);
    /* -webkit-text-stroke: 0.1px var(--secondary-color-plus25); */
    text-shadow:
        -1px -1px 0 var(--secondary-color-plus25),
        1px -1px 0 var(--secondary-color-plus25),
        -1px 1px 0 var(--secondary-color-plus25),
        1px 1px 0 var(--secondary-color-plus25);
    margin: 0;
    padding: 0;
    /* margin-inline-start: 1rem; */
}

sup {
    font-size: 1rem;
}

/* Full-width input fields */
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.8rem 1.3rem;
    margin: 0.5rem 0;
    display: inline-block;
    border: 0.1rem solid var(--accent-color);
    box-sizing: border-box;
}

/* Center the image and position the close button */
.imgcontainer {
    text-align: center;
    margin: 1.5rem 0 0.8rem 0;
    position: relative;
}

img.avatar {
    width: 40%;
    border-radius: 50%;
}

.container {
    padding: 2rem;
}

.container.bottom {
    background: var(--translucent-60);
}

span.psw {
    float: right;
    padding-top: 0.5rem;
    /* font-size: var(--h5); */
}

article {
    display: flex;
    /* displays flex-items (children) inline */
    flex-direction: column;
    /* stacks them vertically */
    height: var(--unit-100vh);
    width: 100vw;
    margin: 0 auto;
}

main {
    flex: 1;
    /* takes the remaining height of the "container" div */
    overflow: auto;
    /* to scroll just the "main" div */
    scroll-behavior: smooth;
}

section {
    /* height: 100%; */
    /* takes the visible area of the "main" div */
    margin: 2rem;
    overflow: auto;
    /* recommended */
    /*border-bottom: 0.1rem solid var(--primary-color-plus25);*/
    scroll-behavior: smooth;
}

header {
    --header: "todo";
}

section:last-child {
    border: none;
}

footer {
    --footer: "todo";
}

nav .nav {
    list-style: none;
    text-align: center;
}

body>article>main>section.centered {
    height: 100%;
}

/* nav-inline */
nav {
    color: var(--primary-color-plus25);
    font: bold 0.8rem/1rem var(--fontfam);
}

.nav-inline {
    display: flex;
    justify-content: center;
    width: 100%;
    list-style-type: none;
    /* Remove the default list styles */
    padding: 0;
    margin: 0;
    /* Remove default padding */
}

/* Style for list items (li) */
.nav-inline li {
    min-width: 4rem;
    min-height: 2.3rem;
    padding: 0.4rem 0.5rem;
    /* Add some spacing around the items */
}

/* Style the pseudo-elements for adding the vertical bar */
.nav-inline li:not(:last-child):after {
    content: "|";
}

/*=============================*/
/* Image buttons               */
/*=============================*/
.buttonimagetext {
    display: flex;
    height: 3rem;
    padding: 0;
    background: rgba(234, 234, 244, 1);
    /* border: none; */
    /* outline: none; */
    border-radius: 0 0.3rem 0.3rem 0.6rem;
    overflow: hidden;
    /* font-family: "Quicksand", sans-serif; */
    /* font-size: 16px; */
    /* font-weight: 500; */
    /* cursor: pointer; */
}

.buttonimagetext:hover {
    background: var(--shade-hex-less25);
    border: 1px solid var(--background);
}

.buttonimagetext:active {
    background: var(--shade-hex);
}

.buttontext,
.buttonimage {
    display: inline-flex;
    align-items: center;
    padding: 0 1rem 0 0;
    color: rgba(46, 49, 146, 1);
    height: 100%;
    font-size: 0.9rem;
}

.buttonimage {
    font-size: 1.5em;
    /* background: rgba(0, 0, 0, 0.08); */
}

.errormessage {
    width: 100%;
    height: auto;
    background: var(--translucent-60);
    padding: 1rem;
    overflow-y: hidden;
    font-size: 0.9rem;
}

.card {
    background: var(--primary-color-plus25);
    border: 0.1rem solid var(--primary-color-plus25);
}

.card .message {
    color: var(--background);
    margin: 1rem;
}

.card .content {
    background: var(--background);
    color: var(--primary-color-plus25);
    margin: 0;
    padding: 1rem;
}

/*=============================*/
/* Media queries for devices   */
/*=============================*/
/* Tablet layout - If screen > 800px width, combine columns side-by-side and stack */
@media screen and (min-width: 800px) {
    h1 {
        font: bold 5rem/6rem var(--fontfam);
    }
}

/* Desktop layout - If screen > 1000px width, place columns side-by-side */
@media screen and (min-width: 1000px) {
    .modal {
        padding-top: 0;
    }
}