﻿@font-face {
    font-family: 'ArtFont';
    src: url('../fonts/DancingScript-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MainFont';
    src: url('../fonts/Cairo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
    font-family: MainFont, sans-serif;
    padding: 0;
    margin: 0;
    font-size: 16px;
    user-select: none;
    scroll-behavior: smooth;
}

html.no-scroll {
    overflow: hidden;
}

body {
    padding: 0;
    margin: 0;
}

.art {
    font-family: ArtFont;
}


body {
    min-height: 100vh;
    background: linear-gradient(130deg, #555 0%, #aaa 100%);
    background-attachment: scroll;
}

h1 {
    font-size: 2em;
    color: #777;
    padding: 10px;
    margin: 0;
    text-align: center;
}

/* Header */

body > header {
    z-index: 10;
    position: fixed;
    width: 100%;
    min-height: 50px;
    height: auto;
    top: 0;
    background-color: #0004;
    color: #aaa;
    display: grid;
    gap: 0px;
    grid-template-areas: "logo menu nav lang user";
    grid-template-columns: min-content min-content auto min-content min-content;
    align-items: center;
    backdrop-filter: blur(5px);
}

body > header:hover {
    background-color: #0008;
}

body > header > .logo {
    grid-area: logo;
}

body > header > ul.menu {
    grid-area: menu;
}


body > header > button {
    background-color: transparent;
    border: none;
}


body > header > ul.user {
    grid-area: user;
    justify-self: right;
    opacity: .75
}

body > header > .logo > img {
    height: 50px;
}

body > header > .lang-selector {
    grid-area: lang;
}

body > header > .lang-selector button {
    border: none;
    background-color: #000a;
    color: #fffa;
    width: 40px;
    height: 30px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: .8;
    font-weight: bold;
    text-transform: uppercase;
}

body > header > .lang-selector button:hover {
    opacity: 1;
    background-color: #fffa;
    color: #000;
}

body > header > .lang-selector ul {
    position: fixed;
    list-style: none;
    padding: 0;
    margin: 0;
}

body > header > button > span.oi {
    font-size: 1.4em;
}

body > header > button:hover {
    color: #28a;
}

body > header > button > span {
    line-height: 50px;
}

body > header button.menu {
    display: none;
}

/* Header */
/* main */

body > main {
    padding: 60px 0 20px 0;
    background-image: url('../images/post_back_tiled.jpg');
    background-repeat: repeat;
    /*background-size: cover;*/
    /*background-attachment:fixed*/
    min-height: 100vh;
}

main > section.flow {
    opacity: 0;
    transition: opacity ease-in-out 1s;
    /*overflow: hidden;*/
}


main > section.flow.visible {
    opacity: 1;
}

main > section.flow > * {
    transform: scale(.9);
    transition: transform ease-out .5s;
}


main > section.flow.visible > * {
    transform: scale(1);
}

body > main > section.centered {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 20px;
}

body > main > section.centered > header > h2 {
    font-family: 'ArtFont';
    font-size: 2em;
    padding: 0;
    margin: 0;
    color: #777;
}

body > main > section.centered > header > p {
    color: #222;
}

body > main > section.page {
    margin: 20px 0;
    background-color: #fffd;
    background-image: url('../ibe-logo-black.svg');
    background-size: 500px;
    background-repeat: no-repeat;
    background-position: center;
    background-blend-mode: lighten;
    box-shadow: #000a 0 0 20px;
}

body > main > section.centered > div {
    color: #555;
    padding: 20px;
    max-width: 1000px;
    width: 100%;
}

body > main > section.centered > div > h3 {
    border-bottom: solid 1px #2225;
}

body > main > section {
    scroll-margin-top: 70px;
}

body > main > section.page > div > p {
    text-align: justify;
}
/* Main */
/* Footer */
body > footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    color: #fff2;
    background-color: #0002;
}

body > footer a {
    color: #222;
}

/* Footer */

a {
    outline: none;
    text-decoration: none;
}

h1:focus {
    outline: none;
}

.content {
    padding-top: 1.1rem;
}

#blazor-error-ui {
    background: #000;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 5px;
    position: fixed;
    z-index: 1000;
    opacity: .1;
}

#blazor-error-ui a {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

#blazor-error-ui .reload {
    background-image: url("../icons/refresh.svg");
}

#blazor-error-ui .dismiss {
    background-image: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MzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

#loader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    position: fixed;
    overflow: hidden;
    top: 0;
    left: 0;
    opacity: calc(var(--blazor-load-percentage, 0%));
    transition: opacity 0.2s ease-in-out;
    z-index: 1000;
}

#loader svg .stroke {
    stroke: #fff;
    stroke-width: 4px;
    fill: none;
}

#loader svg .fill {
    fill: #fff;
}

#loader svg #ring1 {
    animation: loader-ring-animation 2s ease forwards;
    transform-origin: center;
}

#loader svg #ring2 {
    animation: loader-ring-animation 2s ease forwards;
    transform-origin: center;
    animation-delay: .2s;
    opacity: 0;
}

#loader svg #ring3 {
    animation: loader-ring-animation 2s ease forwards;
    transform-origin: center;
    animation-delay: .4s;
    opacity: 0;
}

#loader svg #logo {
    animation: loader-fade-in-animation 4s ease forwards;
    opacity: 0;
    transform-origin: center;
}



@keyframes loader-fade-in-animation
{
    0% {
        opacity: 0;
        rotate: -360deg;
        scale: .2;
    }

    25% {
        rotate: 15deg;
        scale: 1.1;
    }

    50% {
        rotate: 0deg;
        scale: 1;
    }
    

    100% {
        opacity: 1;
        
    }
}

@keyframes loader-ring-animation {
    0% {
        opacity: 0;
        scale: .1;
    }

    75% {
        scale: 1.01;
    }

    100% {
        opacity: 1;
        scale: 1;
    }
}


#loader > img {
    mix-blend-mode: multiply;
    width: 40%;
    height: 40%;
    opacity: .5;
}

#loader.hide {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.section-container {
    justify-content: center;
    display: flex;
    flex-direction: row;
}

section.box {
    margin: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px #0006;
    background-color: #fff;
    color: #555;
}

section.box.fast {
    opacity: .1;
}

section.box > header {
    font-size: 1.6em;
    text-align: center;
    background: linear-gradient(90deg, #555, #222);
    color: #aaa;
    padding: 5px;
}

section.box > footer {
    padding: 10px;
    border-top: solid 1px #bdcbd9;
}

section.box > div {
    padding: 10px 50px;
}



section > main > div {
    padding: 10px 0;
}

ul.buttons {
    display: flex;
    padding: 10px;
    margin: 0;
    list-style: none;
    justify-content: center;
    gap: 10px;
}

ul.buttons > li > a {
    display: block;
    height: 20px;
    line-height: 20px;
}

ul.buttons > li > button {
    border: none;
}

ul.buttons > li > * {
    background-color: #6b8bac;
    color: #fff;
    font-size: 1.2em;
    padding: 0px;
    border-radius: 4px;
    box-shadow: 0 0 0px #0006;
    transition: box-shadow 100ms ease-in-out;
    padding: 10px;
}

ul.buttons > li > * {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

ul.buttons > li > * > span {
    display: block;
    line-height: 20px;
    height: 20px;
}


ul.buttons > li > * > i.icon {
    display: block;
    height: 20px;
    width: 20px;
}


ul.buttons > li > .positive {
    background-color: #89c48c;
}

ul.buttons > li > .negative {
    background-color: #ad6b6b;
}


ul.buttons > li > *:hover {
    box-shadow: 0 0 10px #0006;
}

ul.buttons > li > *:active {
    background-color: #556d86;
}

ul.buttons > li > .positive:active {
    background-color: #709f73;
}

ul.buttons > li > .negative:active {
    background-color: #875555;
}

ul.errors {
    padding: 0;
    margin: 0;
    list-style: none;
}

ul.errors > li {
    color: #571616;
    border-radius: 4px;
    background-color: #ea9494;
    padding: 5px 5px 5px 20px;
    background-image: url("../icons/error.svg");
    background-position: center;
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position-x: left;
}

fieldset {
    border: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

fieldset > label {
    color: #aaa;
}

fieldset > label > input,
fieldset > label > textarea {
    border: none;
    border-bottom: solid 1px #aaa;
    padding: 10px 5px;
    width: calc(100% - 10px);
}

fieldset > label > textarea {
    height: 100px;
    resize: none;
}

fieldset > label > input:focus,
fieldset > label > textarea:focus {
    background-color: #bdf;
    outline: none;
}

table.details {
}

table.details th {
    color: #666;
}

ul.controls {
    list-style: none;
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
}

ul.controls * {
    padding: 0;
    margin: 0;
    display: block;
}


ul.controls > li.icon > a,
ul.controls > li.icon > button {
    width: 50px;
    height: 50px;
}

ul.controls > li > button {
    background-color: transparent;
    border: none;
}

ul.controls > li > a:hover,
ul.controls > li > button:hover {
    background-color: #eee4;
}

nav.collapsed {
    display: block;
}


nav > ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 10px;
    padding: 0;
    margin: 0;
}

nav > ul > li > a {
    padding: 10px;
    font-size: 1.4em;
    color: #aaa;
    border-bottom: solid 3px #0000;
    transition: border 100ms ease-in-out;
    line-height: 50px;
    display: block;
}

nav > ul > li > a.active {
    border-color: #aaa;
}


nav > ul > li > a:hover {
    color: #eee;
    border-color: #aaa;
}


ul.simple {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 4px;
    flex-wrap: wrap;
}

ul.simple > li {
    color: #000;
    padding: 4px;
    border-radius: 4px;
    background-color: #c7daf5;
}

ul.simple > li.selected {
    background-color: #709f73;
}

@media(max-width: 800px) {
    html, body {
        font-size: 14px;
    }
}

@media(max-width:600px) {
    
    @media(max-width: 1000px) {
        html, body {
            font-size: 12px;
        }
    }


    body > header button.menu {
        display: block;
    }

    nav {
        position: fixed;
        background: #222;
        width: 100vw;
        height: calc(100vh - 50px);
        top: 50px;
        overflow: scroll;
    }

    nav > ul {
        flex-direction: column;
        align-items: center;
    }

    nav > ul > li {
        width: auto;
    }

    nav > ul > li > a {
        height: auto;
        line-height: normal;
        padding: 0;
    }

    nav.collapsed {
        display: none;
    }
}


ul.links {
    display: flex;
    list-style: none;
    flex-direction: row;
    padding: 0;
    margin: 0;
    justify-content: center;
    gap: 10px;
}

ul.links * {
    padding: 0;
    margin: 0;
    border: none;
    display: block;
}


ul.links > li > button {
    border: none;
    background: none;
}

ul.links > li > * {
    opacity: .5;
    transition: opacity ease-out 1s;
}

ul.links > li > *:hover {
    opacity: 1.0;
}

ul.links > li > * > img {
    height: 30px;
    width: 30px;
    object-fit: contain;
}
