:root {
    font-size: 16px;
    font-family: 'Poppins';
    --transition-speed: 600ms;
    
    --text-primary: #ececec;
    --text-secondary: #9d9c9c;
    --bg-primary: #08080D;
    --bg-secondary: #111117;
    
    --cta: #EEACAA;
    --cta-secondary: #E47A77;

    --red: #D64933;
    --orange: #EB5E55;
    --green: #9EC1A3;
    --blue: #40798C;
    --white: #FFFFFF;
    --black: #000000;
    --yellow: #FFF7AE;
    --transparent: rgba(0,0,0,0);
    scroll-behavior: smooth;
}

body {
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
    min-height: 100vh;

    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

body::-webkit-scrollbar {
    width: 0.20rem;
}

body::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

body::-webkit-scrollbar-thumb {
    background: var(--cta);
}

body{
    background-image: url("/static/img/bg_main.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
}

main {
    max-width: 600px;
    margin: auto;
    padding: 1rem;
    padding-left: 6rem;
    padding-bottom: 6rem;
    text-align: center;
}

main.big {
    max-width: 1000px;
}

/* Small screens */
@media only screen and (max-width: 600px) {
    main {
        margin: 1rem;
        padding-left: 1rem;
    }
}

/* MARKDOWN STYLE */

main>h1::before{ content: "# "; color: var(--text-secondary);}
main>h2::before{ content: "## "; color: var(--text-secondary);}
main>h3::before{ content: "### "; color: var(--text-secondary);}
main>h4::before{ content: "#### "; color: var(--text-secondary);}
main>h5::before{ content: "##### "; color: var(--text-secondary);}
main>h6::before{ content: "###### "; color: var(--text-secondary);}
/*
main>p>strong::before{ content: "*"; color: var(--text-secondary);}
main>p>strong::after{ content: "*"; color: var(--text-secondary);}
*/ 
main>p>a::before{ content: "["; color: var(--text-secondary);}
main>p>a[href^="#"]::before{ content: "["; color: var(--text-secondary);}
main>p>a::after{ content: "]"; color: var(--text-secondary);}

main>p>i::after{ content: "*"; color: var(--text-secondary);}
main>p>i::after{ content: "*"; color: var(--text-secondary);}

hr::before{ content: "---"; color: var(--text-secondary); font-size: 30px;}

/* TEXT */

hr.spacer::before{ content: "";}

hr{
    position: relative;
    width: 60px;
    margin: auto;
    border: none;
    padding: 20px 0px;
}

hr.nopad {
    height: 25px;
    font-size: 10px;
    padding: 0px;
}

hr.small{
    padding: 10px 0px;
}

p {
    text-align: left;
    overflow-wrap: break-word;
}

a{
    color: var(--cta);
    text-decoration: none;
}

a:hover{
    color: var(--cta-secondary);
}

span {
    color: var(--cta-secondary);
}

.center {
    text-align: center;
}

main > img {
    width: 100%;
    box-shadow: 0 0 60px -15px var(--black);
}

ul{
    list-style: none;
}

/* NAV */

nav {
    position: fixed;
    background-color: var(--bg-secondary);
    transition: width 600ms ease;
    overflow: hidden;
    z-index: 100;
}

nav > .items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

nav > .items > .item {
    width: 100%;
}

nav > .items > .item:last-child {
    margin-top: auto;
}

nav > .items > .item > .link,
nav > .items > .logo > .link {
    display: flex;
    align-items: center;
    height: 5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-speed);
}

nav > .items > .item > .link:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

nav > .items > .item > .link i.active {
    color: var(--cta);
}

nav > .items > .item > .link > .text {
    color: var(--text-secondary);
    overflow-wrap: break-word;
    display: none;
    margin-left: 1rem;
}

nav > .items > .logo {
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--text-primary);
    background: var(--bg-primary);
    font-size: 1.5rem;
    width: 100%;
}

nav > .items > .logo span {
    margin-left: 6rem;
}

nav > .items > .logo > .link img {
    width: 3rem;
    min-width: 3rem;
    margin: 0 1rem;
    filter: grayscale(.8);
}

nav > .items > .item > .link i {
    width: 5rem;
    min-width: 5rem;
    text-align: center;
    font-size: 50px;
}

nav > .items > .logo > .link > .logo-text {
    display: inline;
    position: absolute;
    left: -999px;
    transition: var(--transition-speed);
    color: var(--text-secondary);
}

nav > .items > .item > .link.sub{
    position: relative;
}

nav > .items > .item > .link.sub i{
    font-size: 40px;
    position: absolute;
    left: 0;
    width: 5rem;
    top: 0.5rem;
    text-align: center;
}

nav > .items > .item > .link.sub p{
    position: absolute;
    left: 0;
    top: 2rem;
    width: 5rem;
    text-align: center;
}

nav > .items > .item > .link.sub .text{
    margin-left: 6rem;
}

/* Small screens */
@media only screen and (max-width: 600px) {
    nav {
        bottom: 0;
        width: 100vw;
        height: 5rem;
    }
    
    nav > .items > .logo {
        display: none;
    }
    
    nav > .items {
        flex-direction: row;
    }
    
    nav > .items > .item > .link {
        justify-content: center;
    }
    
    main {
        margin: 0;
    }

    nav > .items > .item > .link.sub i{
        width: 100%;
    }
    nav > .items > .item > .link.sub p{
        width: 100%;
    }  
}

/* Large screens */
@media only screen and (min-width: 600px) {
    nav {
        top: 0;
        width: 5rem;
        height: 100vh;
    }
    
    nav:hover {
        width: 16rem;
    }
    
    nav:hover > .items > .item > .link > span {
        display: inline;
    }
    
    nav:hover > .items > .logo > .link > .logo-text {
        left: 0px;
    }
}

/* NOTIFICATIONS */

.notifications {
    position: fixed;
    z-index: 200;
    top: 0;
    right: 0;
    margin: 10px;
}

.notification {
    position: relative;
    min-width: 100px;
    max-width: 200px;
    margin: 10px;
    padding: 10px;
    background-color: var(--bg-secondary);
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    transition: opacity .5s; 
    -webkit-transition: opacity .5s;  
    -moz-transition: opacity .5s; 
    box-shadow: 0 0 60px -15px black;
    opacity: 1;
    animation: fadeIn .5s;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.notification > i {
    vertical-align: middle;
}

.notification.success {
    border-left: 3px solid var(--green);
}

.notification.warning {
    border-left: 3px solid var(--orange);
}

.notification.error {
    border-left: 3px solid var(--red);
}

/* HEADER */

header{
    background-image: url("/static/img/bg.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
    padding-left: 6rem;
    height: 700px;
    display: grid;
    transition: all 0.10s;
    box-shadow: inset 0 -50px 40px 0px var(--bg-primary);
    justify-content: center;
    align-items: center;
    text-align: center;
}

header h1{
    color: var(--text-primary);
}

header p>a{
    color: var(--cta-secondary);
}

header p>a>i{
    font-size: 50px;
}

header img{
    width: 200px;
}

/* Small screens */
@media only screen and (max-width: 600px) {
    header {
        padding-left: 0rem;
    }
}

/* FORM */

.form{
    width: 100%;
    max-width: 400px;
    margin: auto;
    background: var(--bg-secondary);
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    display: block;
    box-shadow: 0 0 60px -15px var(--black);
    padding-top: 20px;
    padding-bottom: 20px;
    transition: all 0.50s;
}

form .form-box {
    margin: 20px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
}

form .form-box input,
form .form-box textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 30px;
    border: none;
    border-bottom: 1px solid var(--text-primary);
    outline: none;
    background: transparent;
}

form .form-box textarea {
    height: 200px;
    max-height: 500px;
    max-width: 100%;
    min-width: 100%;
    font-family: 'Poppins';
}

form .form-box input::placeholder,
form .form-box textarea::placeholder {
    position: absolute;
    right: 0;
}

form .form-box label {
    position: absolute;
    width: 100%;
    text-align: left;
    top:0;
    left: 0;
    padding: 10px 20px;
    font-size: 16px;
    color: var(--text-primary);
    pointer-events: none;
    transition: .5s;
}

form .form-box input:focus, form .form-box textarea:focus {
    border-color: var(--cta);
}

form .form-box input:focus::placeholder, form .form-box textarea:focus::placeholder {
    left: 0;
}

form > .form-box input:focus ~ label,
form > .form-box input:valid ~ label,
form > .form-box input:not(:focus):not(:placeholder-shown):invalid ~ label,
form > .form-box textarea:focus ~ label,
form > .form-box textarea:valid ~ label,
form > .form-box textarea:not(:focus):not(:placeholder-shown):invalid ~ label {
    top: -20px;
    left: 0;
    color: var(--cta);
    font-size: 12px;
}

form > .form-box input:not(:focus):not(:placeholder-shown):invalid,
form > .form-box textarea:not(:focus):not(:placeholder-shown):invalid{
    border-color: var(--red);
}

/* BUTTON */

button{
    border: 2px solid var(--cta);
    background-color: var(--transparent);
    color: var(--cta);
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    font-size: 20px;
    margin: 10px;
    padding: 10px;
}

button:hover{
    cursor: pointer;
    color: var(--cta-secondary);
    border-color: var(--cta-secondary);
}

/* BOX */

.boxs {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    align-content: stretch;
    width: 100%;
    gap: 20px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.box {
    width: 250px;
    background: var(--bg-secondary);
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    display: block;
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    align-self: auto;
    order: 0;
    box-shadow: 0 0 60px -15px var(--black);
    text-align: center;
    padding-bottom: 20px;
    transition: all 0.50s;
} 

.box.big{
    width: 400px;
}

.box:hover{
    box-shadow: 0 0 20px 10px rgba(255,255,255,.1);
}

.box i{
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
    font-size: 50px;
}

.box p{
    font-size: 13px;
    padding-left: 20px;
    padding-right: 20px;
    white-space: pre-line;
}

.box img{
    width: 100%;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
}

.box .center{
    height: 100%;
    width: 100%;
    display: grid;
    justify-content: center;
    align-items: center;
}

/* HINT */

.jumbo{
    border: 2px solid var(--cta);
    background-color: rgba(17,17, 23, .03);
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    padding: 10px;
    margin-bottom: 30px;
    min-height: 60px;
}

.jumbo.hint{
    border-color: var(--yellow);
    background-color: rgba(250,250, 198, .03);
}

.jumbo.warning{
    border-color: var(--orange);
    background-color: rgba(160,27, 27, .03);
}

.jumbo > p > i{
	font-size: 40px;
    padding: 20px;
	float: left;
}

.jumbo > img{
    width: 100%;
}

/* CODE */

code{
	background-color: var(--bg-secondary);
	color: var(--text-secondary);
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: -0,08em;
	font-family: 'Montserrat', sans-serif;
	overflow: scroll;
	border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
	padding: .4px 12px;
}
/*
code::before{
    content: '$ ';
}
*/
pre{
	width: 100%;
    border-radius: 17px;
    -webkit-border-radius: 17px;
    -moz-border-radius: 17px;
}

pre > code{
	display: block;
	width: 100%;
	text-align: left;
	padding: 10px;
	margin: 20px 0px;
	border-radius: 17px;
    -webkit-border-radius: 17px;
    -moz-border-radius: 17px;
}
