/*--- CSS USED FOR ALL COURSES - DO NOT CHANGE ANYTHING ---*/

/*--- FONTS ---*/
@font-face {
    font-family: 'Montserrat-Black';
    src: url( ../assets/fonts/Montserrat-Black.ttf );
    font-weight: bolder;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat-Bold';
    src: url( ../assets/fonts/Montserrat-Bold.ttf );
    font-weight: bold;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat-Medium';
    src: url( ../assets/fonts/Montserrat-Medium.ttf );
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat-Regular';
    src: url( ../assets/fonts/Montserrat-Regular.ttf );
    font-weight: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat-Light';
    src: url( ../assets/fonts/Montserrat-Light.ttf );
    font-weight: 100;
    font-display: swap;
}

/*--- ROOT ---*/
:root {
    /*--- TYPOGRAPHY ---*/
    --ft-fm-black: 'Montserrat-Black';
    --ft-fm-bold: 'Montserrat-Bold';
    --ft-fm-medium: 'Montserrat-Medium';
    --ft-fm-regular: 'Montserrat-Regular';
    --ft-fm-light: 'Montserrat-Light';

    --ft-sz-supertitle: 4rem;
    --ft-sz-title: 3rem;
    --ft-sz-subtitle: 1.5rem;
    --ft-sz-text: 1rem;
    --ft-sz-quote: 0.875rem;

    /*--- COLOURS ---*/
    --clr-primary: #671AF4;
    --clr-primary-soft: #945ff7;
    --clr-secondary: #F2C254;
    --clr-terciary: #ED9482;
    --clr-quartenary: #F5BFCD;

    --clr-gray: #828282;
    --clr-black: #0a0a0a;
    --clr-white: #F0F0F0;
}

/*--- STATES ---*/
.active {
    display: flex;
}
.d-none {
    display: none!important;
}
.locked {
    opacity: 0.5;
    pointer-events: none;
}

/*--- LAYOUT ---*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    font-size: 20px;
    overflow: hidden;
    color: var(--clr-black);
    scroll-behavior: smooth;
}
header#slide-header {
    z-index: 1100;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 3em;
    height: 3em;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 0;
    display: none;
}
header#slide-header section.slide-width {
    height: 3em;
}
footer#slide-footer {
    z-index: 1000;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    min-height: 3em;
    height: 3em;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 0;
    display: none;
}
footer#slide-footer section.slide-width {
    height: 3em;
    height: 0;
    display: none;
}

main#slide-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-position: center center, center center,center center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
article#slide {
    z-index: 0;
    overflow: hidden;
}
article#slide .slide{
    /* background-color: var(--clr-secondary); */
    background-image: url('../assets/images/background/bg.png');
    background-size: 100% 100%;
    background-position: center center;
    background-repeat: no-repeat;
}
menu#slide-menu {
    z-index: 1000;
    opacity: 0;
    position: absolute;
    top: 1em;
    left: 1em;
    width: 25%;
    max-height: calc(100% - 1em);
    margin: 0;
    padding: 1em;
    transition: all 1s ease;
    transform: translateY(-500%);
}
menu#slide-menu.active {
    opacity: 1;
    transform: translateY(0%);
}
menu#slide-menu section a {
    padding: 0.5em;
    float: left;
    clear: left;
    font-size: 1em;
    line-height: 100%;
    margin: 0;
    width: 100%;
}

main#slide-container section.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* overflow-x: hidden; */
    z-index: 0;
}
canvas {
    width: 100%;
    height: 100%;
}

/*--- SCREEN ROTATION ---*/
#screen-rotation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 100000;
    opacity: 0;
    transition: opacity 1s ease;
    background-color: rgba( 0, 0, 0, 0.5 );
    align-items: center;
    justify-content: center;
    flex-direction: row;
    color: #ffffff;
}
@media only screen
    and ( orientation: portrait ) {
	#screen-rotation {
	    display: flex;
	    opacity: 1;
	}
}

/*--- INDEX.HTML ELEMENTS ---*/
#preload-assets {
    display: none;
}
#loader {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: white;

    .spinner{
        display: inline-flex;
        gap: 10px;
    }
    /* Estilo para cada bolinha */
    .bounce1, .bounce2, .bounce3 {
        width: 15px;
        height: 15px;
        border-radius: 50%;
        background-color: var(--clr-primary); /* Cor da bolinha */
        animation: bounce 1.4s infinite ease-in-out;
    }

    /* Delay para criar o efeito de pulo escalonado */
    .bounce1 {
        animation-delay: -0.32s;
    }

    .bounce2 {
        animation-delay: -0.16s;
    }
}


/* Animação de pulo */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px); /* Sobe */
    }
    60% {
        transform: translateY(-10px); /* Meio caminho */
    }
}

.player-controls-container{
    position: absolute;
    right: 40px;
    top: 40px;
    display: inline-flex;
    gap: 30px;
}

.player-controls {
    z-index: 9;
    width: 40px;
    height: 100%;
    cursor: pointer;
}

.player-controls.player-controls-guide {
    width: 10px;
}    
.player-controls.player-controls-audio {
    width: 50px;
}
.player-controls.player-controls-menu {
    width: 35px;
}
.player-controls.player-controls-menu.locked {
    pointer-events: none;
    cursor: inherit;
    opacity: 0.5;
}
.player-controls:hover {
    scale: 1.1;
}

/*--- CLOSING WINDOW ---*/
#closing-window {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba( 0, 0, 0, 0.75);
    z-index: 100000;
    backdrop-filter: blur(16px);
}
#closing-window img {
    top: -1410px;
    left: 1910px;
    animation: trainSlide 1s forwards ease-in-out;
}
@keyframes trainSlide {
    0% {
        top: -1410px;
        left: 1910px;
    }
    100% {
        top: -100px;
        left: -160px;
    }
}



#closing-window-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 32px;
}
#closing-window-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 1em 3em;
    clip-path: polygon(0 0, 100% 0, 100% 0%, calc(100% - 40px) 100%, 0 100%);
    background-color: var(--clr-primary);
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#closing-window-message-question {
    color: var(--clr-secondary);
    font-family: var(--ft-fm-black);
    font-size: 60px;
    position: absolute;
    top: 190px;
    left: 90px;
    width: 760px;
}
#closing-window-yes, #closing-window-no {
    padding: 20px 40px;
    cursor: pointer;
    color: var(--clr-black);
    font-family: var(--ft-fm-bold);
    font-size: 50px;
    background-color: var(--clr-secondary);
    border-radius: 10px;
    position: absolute;
}
#closing-window-yes {
    top: 720px;
    right: 340px;
}
#closing-window-no {
    top: 860px;
    right: 180px;
}
#closing-window-yes:hover, #closing-window-no:hover {
    background-color: var(--clr-black);
    color: var(--clr-secondary);
}

/*--- LLWINDOW ---*/
#llwindow {
    font-size: 1em;
    display: none;
    position: fixed;
    top: 1em;
    left: 2em;
    color: #00dd00;
    background-color: #000000;
    z-index: 100000;
    font-family: 'Courier New', Courier, monospace;
    min-width: 20em;
    max-width: 50%;
    max-height: 90%;
    box-shadow: 0 0.25em 0.5em rgba( 0, 0, 0, 0.75 );
    transition: box-shadow 0.5s ease;
    opacity: 0.9;
}
#llwindow:active {
    box-shadow: 0 0.5em 1em rgba( 0, 0, 0, 0.75 );
}
#llwindowheader {
    background-color: #00dd00;
    color: #000000;
    cursor: move;
    cursor: grab;
    text-align: right;
    width: 100%;
    float: left;
    padding: 0;
    margin: 0;
}
#llwindow h2 {
    font-size: 1em;
    margin: 0;
    float: left;
    padding: 0.4em 1em;
}
#llwindow main {
    float: left;
    clear: both;
    width: 100%;
    padding: 0 1em;
}
#llwindow main p {
    font-size: 0.75em;
    padding: 0.5em;
    margin: 0.5em 0.5em 0 0;
    max-width: calc( 100% - 0.5em );
    float: left;
    border: 1px solid #00dd00;
}
.llwindow-clear {
    clear: both;
    float: left;
    width: 100%;
    margin-top: 0.25em;
}
#llwindow-zork {
    font-size: 0.75em;
    min-width: calc(100% - 0.5em);
    max-width: calc(100% - 0.5em);
    width: calc(100% - 0.5em);
    color: #00dd00;
    margin: 0.5em 0 0 0;
    background-color: #000000;
    border: 1px solid #00dd00;
    height: 300px;
    resize: none;
}
#llwindow-zork:focus {
    outline:none;
}
#llwindow footer {
    padding: 0.5em 0 0 0;
    width: 100%;
    float: left;
    text-align: center;
}
#llwindow-close, #llwindow-minimize, #llwindow-maximize {
    font-size: 1em;
    margin: 0;
    padding: 0.5em;
    float: right;
    text-align: center;
}
.llwindow-control {
    font-size: 1em;
    margin: 0;
    padding: 0.25em 0.5em;
    padding: 0.25em;
}
#llwindow-go-input {
    font-size: 0.75em;
    width: 2em;
    margin: 0.5em -4px;
    padding: 0.25em;
    color: #00dd00;
    background-color: #003700;
    border: 1px solid #00dd00;
}
#llwindow-go-input:focus {
    outline:none;
}
#llwindow-save-input {
    font-size: 0.75em;
    min-width: calc(100% - 0.5em - 2.5em);
    max-width: calc(100% - 0.5em - 2.5em);
    width: calc(100% - 0.5em - 2.5em);
    margin: 0.5em 0 0 0;
    padding: 0.25em;
    color: #00dd00;
    background-color: #003700;
    border: 1px solid #00dd00;
}
#llwindow-save-input:focus {
    outline:none;
}
#llwindow a, #llwindow a:visited {
    font-family: 'Symbola';
    color: #00dd00;
    background-color: #000000;
    text-decoration: none;
    font-weight: bold;
}
#llwindow a:hover, #llwindow a:active {
    background-color: #00dd00;
    color: #000000;
    text-decoration: none;
}

@media only screen and (min-width: 1500px)  {
    #llwindow {
	min-width: 20em;
	max-width: 33%;
    }
}
@media only screen and (max-width: 1280px)  {
    #llwindow {
	width: 90%;
	max-width: 90%;
    }
    #llwindow-zork {
	max-height: 3em;
    }
    .llwindow-clear {
	margin-top: 0;
    }
}

/*--- MOBILE VERSION ---*/
body.mobile {
    font-size: 12px;
}
