@import './_fonts.css';
@import "tailwindcss";

* {
    box-sizing: border-box;
}

html {
    font-family: Fellix, "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #4A4343;
}

html,
body,
.frame,
.website {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2 {
    margin: 0;
}

h2 {
    color: #4A4343;
    font-size: 2em;
}

h2 span {
    vertical-align: middle;
}

h2 small {
    font-weight: normal;
    font-size: 1rem;
}

h2.student {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
}

h2.student .title {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

h2.student .title-text::before {
    content: '(';
}

h2.student .title-text::after {
    content: ')';
}

.collapsed {
    transform: scaleY(0) translateY(-100%);
    transition: transform 0.1s ease-in-out;
}

.collapsed.show {
    transform: scaleY(1) translateY(0);
}

.shadow {
    box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
}

.frame {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
}

.frame.animate {
    border: 100vh solid #FFCC00;
    outline: 100vh solid #FFCC00;
    outline-offset: -2px;
    transform: rotate(45deg);
    animation: reveal 1s linear;
    animation-delay: 2s;
    animation-fill-mode: forwards;
}

.developer,
.branding {
    background-color: #FFCC00;
    padding: 1em;
}

.developer {
    text-align: center;
    position: absolute;
    transition: all 0.5s ease-in-out;
    top: 0;
    right: 0;
}

.developer.animate {
    opacity: 0;
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    animation: move 3s ease-in-out;
    animation-fill-mode: forwards;
}

.i18n {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    transform: translate(0, 100%);
}

.i18n .flags {
    display: inline-flex;
    flex-direction: row;
    height: 2rem;
}

.i18n .flags a {
    height: 100%;
    margin-right: 0.5em;
    transform-origin: top left;
    transform: scaleY(0);
    animation: unfold 0.25s linear;
    animation-fill-mode: forwards;
    transition: transform 0.1s ease-in-out;
}

.i18n .flags a:hover svg {
    transform: scale(1.1);
}

.i18n .flags a:active svg {
    transform: scale(0.9);
}

.i18n .flags.delay-animate a {
    animation-delay: 3s;
}

.i18n .flags.delay-animate a:nth-child(1) {
    animation-delay: 3.2s;
}

.i18n .flags svg {
    height: 100%;
}

.branding {
    position: absolute;
    display: none;
    bottom: 0;
    left: 0;
    background: #4A4343;
}

.branding svg {
    margin-right: 2px;
}

.branding a {
    text-decoration: none;
}

/*
    Style File Input buttons like our component
*/

input::file-selector-button {
    @apply cursor-pointer flex items-center justify-center px-4 py-2 gap-2 bg-gray-800 border border-transparent rounded-md font-semibold text-xs text-white uppercase tracking-widest ring-gray-300 transition ease-in-out duration-150 aria-disabled:cursor-not-allowed aria-disabled:opacity-25;
}

input::file-selector-button:hover {
    @apply bg-gray-700 active:bg-gray-900 focus:outline-none focus:border-gray-900 focus:ring focus:ring-offset-2;
}

/*
    Animations
*/

@keyframes reveal {
    0% {
        border-width: 100%;
    }

    100% {
        border-width: 0;
        transform: rotate(0);
    }
}

@keyframes move {
    0% {
        opacity: 0;
    }

    33% {
        opacity: 1;
        top: 50%;
        right: 50%;
        transform: translate(50%, -50%);
    }

    100% {
        opacity: 1;
        top: 0;
        right: 0;
        transform: translate(0, 0);
    }
}

@keyframes unfold {
    0% {
        transform: scaleY(0);
    }

    100% {
        transform: scaleY(1);
    }
}

@media screen and (max-width: 768px) {
    .developer {
        width: 100%;
        right: 0;
    }

    .i18n .flags {
        height: 3rem;
    }

    nav {
        padding: 5px 40px !important;
    }

    @keyframes move {
        0% {
            opacity: 0;
        }

        33% {
            opacity: 1;
            top: 50%;
            right: 0;
            transform: translate(0, -50%);
        }

        100% {
            opacity: 1;
            top: 0;
            right: 0;
            transform: translate(0, 0);
        }
    }
}