@font-face {
    font-family: robotoB;
    src: url("../../fonts/Roboto-Bold.ttf");
}
@font-face {
    font-family: robotoL;
    src: url("../../fonts/Roboto-Light.ttf");
}
@font-face {
    font-family: roboto;
    src: url("../../fonts/Roboto-Regular.ttf");
}

@font-face {
    font-family: square;
    src: url("../../fonts/forcedsquare.ttf");
}

@font-face {
    font-family: anton;
    src: url("../../fonts/Anton-Regular.ttf");
}

:root {
    --title_content: "Gonzalo Leon";
    --size-font-command: 3rem;
    --size-font-title: 8rem;
    --color-back: #5b85aa;
    --color-primary: #AF125A;
    --color-secondary: #ECE2D0;
    --color-accent: #f46036;
    --color-light: #F4e8c1;
    --title-height: 20vh;
    --color-text: #251605;
    --num-diapos: 3;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-size: 1em;
    font-weight: 200;
}

html {
    background-color: var(--color-back);
    height:max-content;
}

#back {

    top: 0;
    font-size: var(--size-font-command);
    position: fixed;
    width: 100%;
    overflow: hidden;
    z-index: -100;
    background-color: var(--color-back);
    height: 100vh;
}


#title-section {
    cursor: pointer;
    background-color: var(--color-back);
    position: relative;
    height: var(--title-height);
}

#title-section h1 {
    text-align: center;
    z-index: 100;
    color: var(--color-light);
    transition: transform 0.3s ease-in;
    position: absolute;
    width: max-content;
    left: 50vw;
    padding-top: 3vh;
    transform: translateX(-50%);
    animation: 1.5s backgo ease-in-out;
    font-size: calc(var(--size-font-title) * 0.7);
    font-family: anton;
    overflow: hidden;
}

#title-section h1:nth-child(1) {
    color: red;

}

#title-section h1:nth-child(2) {
    color: blue;
}
#title-section h1 a {
    all: unset;
    cursor: pointer;
}
.command-line {
    font-size: var(--size-font-command);

    z-index: 10000000;
    position: fixed;
    bottom: 0;
    font-family: square;
    color: white;
    border: 0;
    margin: 0;
    padding: 0;
    height: min-content;
    width: 100%;
}

.commandcontainer {
    height: max-content;
}

#command-input {
    caret-color: var(--color-back);
    caret-shape: block;
    border-radius: 30px;
    font-family: square, cursive;
    border: 0;
    margin-bottom: calc(var(--size-font-command) / 6);
    margin-left: 0;
    padding: 0 var(--size-font-command) 0 var(--size-font-command);
    width: 100%;
    background: var(--color-accent);
    color: var(--color-light);
}

#command-input::placeholder {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.479);
    transition: all 0.1s
}

.commandcontainer::before {
    z-index: 100;
    position: absolute;
    color: var(--color-light);
    content: "\27A4";
    font-size: calc(var(--size-font-command) / 1.4);
    left: calc(var(--size-font-command) / 4);
    bottom: calc(var(--size-font-command) / 30);
    animation: apdis 0.5s ease-in-out infinite alternate;
    margin-bottom: calc(var(--size-font-command) / 6);
}

@keyframes apdis {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

#history {

    position: absolute;
    bottom: calc(var(--size-font-command) * 1.3);
    margin-left: 2vw;
    font-family: square;
    color: rgb(255, 255, 255);
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 95vh;
}

#blank-history {
    height: 90vh;
    width: 100vw;
}

.userpastcommands {
    color: rgb(255, 255, 255);
}

.errorcommands {
    color: rgb(255, 94, 0);
}

a {
    color: rgb(223, 223, 223);
}
li {
    list-style-type: none;
}
article{
    user-select: none;
    width: 100%;
    position: relative;
    margin-bottom: 20vh;
    color: var(--color-accent);

}

article h1{
    margin-top: 2vh;
    margin-left: 2vh;

    font-size: calc(var(--size-font-command)*1.4);
    font-family: robotoB;
    color: var(--color-secondary);
}
#canvas{
    left: auto;
    right: auto;
    background: var(--color-light);
    width: min(50vw,70vh);
    height:min(50vw,70vh);
    top: 2vw;
    margin-bottom: 5vh;
    margin-top:  5vh;
    border: var(--color-accent) solid 2px;
}
button{
    
    margin-bottom: 10vh;
}
.algo-cont{
    width: 100%;
    display: inline-flex;
}
.describeText {
    font-family: roboto, sans-serif;
    text-align: center;
    margin-top:6vh;
    height: 100%;
    width: 40%;
    display: flex;
    flex-direction: column;
    font-size: 3vh;
    margin-left: 2vw;
}

.describeText p {
    font-weight: 800;
}

.describeText a {
    border-radius: 50px;
    top: 20%;
    right: 0;
    background: var(--color-accent);
    padding: 1% 5%;
    margin: auto;
    width: fit-content;
    margin-top: 10%;
    font-weight: 600;
}
section{
    width: 100vw;
    background: var(--color-secondary);
    margin-bottom: 20vh;
}
label{
    max-width: 30vw;
    display: flex;
    margin: 1vh;
    font-family: roboto;
    font-size: 150%;
    cursor: pointer;
    background: var(--color-accent);
    padding: 2% 2%;
    align-items: center;
    transition: all 0.4s;
    color: white
}
label span{
    height: 1ch;
    width: 1ch;
    background: white;
    margin-right: 10%;
    font-size: 150%;
}

.canvas-cont{
    width: 100%;
    text-align: center;
    padding: 3%;
}

@media only screen and (max-width: 450px),
(max-height: 450px) {
    :root {
        --size-font-command: 2.5rem;
        --size-font-title: 4rem;
    }
    .algo-cont{
        text-align: center;
        flex-direction: column;
    }
    .buttons{
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        margin-top: 2vh;
        align-items: center;
    }
    label{
        width: 80vw;
        max-width: unset;
    }
    #canvas{
        width: 80vw;
        height: 80vw;
        left: 10vw;
    }


}
.btn-active{
    background: #84ba00;
}
.btn-disabled{
    cursor: not-allowed;
    background: var(--color-primary);
    pointer-events: visible;
}
nav{
    overflow: hidden;
    display: table;
    width: 100%;
    padding: 1vh ;
    justify-content: space-evenly;
    table-layout: fixed;

}
nav h3{
    transition: all 0.3s;
    cursor: pointer;

    position: relative;
    color:var(--color-secondary);
    padding: 3vw;
    background: var(--color-accent);
    text-align: center;
    border-bottom: none;
    display: table-cell;
    font-size: calc(var(--size-font-command));
    font-family: robotoB;
}
.activenav{
    background: var(--color-primary);
}
.slides {
    transition: transform 1s;
    display: inline-flex;

    width: calc(100vw * var(--num-diapos));
    height: 100%;
}
.slides-cont {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
#algo-selector-label{
    flex-direction: column;
}
select{
    margin-top: 2%;
    margin-bottom: 3%;
    font-size: 1.2rem;
    width: 80%;
}
#gridClassic{
    display: grid;
    grid-template-columns: repeat(5, 1fr);

}
.classicCell{
    margin: 15%;
    width: 70%;
    aspect-ratio: 1;
}

.selectable{
    animation: selectAnim 1.5s infinite alternate;
}

.nodes-left-cont{
    width: auto;
    height: auto;
}
.nodes-left-cont h1{
    color: var(--color-primary);

}

@keyframes selectAnim {
    from{
        background: rgba(5, 171, 5, 0);
    }
    to{
        background: rgba(5, 171, 5, 0.5);

    }
}


@media only screen and (max-width: 450px),
(max-height: 450px) {
    :root {
        --size-font-command: 2.5rem;
        --size-font-title: 4rem;
    }
    .algo-cont{
        text-align: center;
        flex-direction: column;
    }
    .buttons{
        text-align: center;
        width: 100%;
        display: flex;
        flex-direction: column;
        margin-top: 2vh;
        align-items: center;
    }
    label{
        width: 80vw;
        max-width: unset;
    }
    #canvas{
        width: 90vw;
        height: 90vw;
    }
    nav h3{
        display: table-row;
    }
    .describeText {
        width: 90vw;
        margin: auto;
        margin-top: 2vh;
        text-align: left;
    }
    .describeText p {

        font-weight: 500 ;
    }
    .canvas-cont  img{
        width: 90vw;
    }

}