@font-face {
    font-family: "Hammersmith One";
    src: url("../fonts/HammersmithOne-Regular.ttf");
}

html {
    height: 100%;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background-color: black;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
}

.nav-logo {
    width: 300px;
    display: flex;
    margin-left: 5px;
}

#octopus-logo {
    width: 50px;
    height: 50px;
}

#octopus-chars {
    width: 120px;
    height: 50px;
    margin-left: 10px;
}

section.content {
    min-height: 310px;
    display: flex;
    flex: 1;
}

@media only screen and (min-width: 768px) {
    section.content {
    
        display: block;
    
    }
}

section.contact {
    z-index: 0;
}

footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
}

.text-place {
    min-height: 400px;
    flex: 1;
}

@media only screen and (min-width: 768px) {
    .text-place {
        display: block;
    }
}

.tech-logos svg {
    height: 50px;
    padding: 1px;
}

@media only screen and (min-width: 768px) {
    .tech-logos svg {
        height: 70px;
        padding: 3px;
    }
}

h1 {
    font-family: 'Hammersmith One';
    font-style: normal;
    font-weight: 400;
    font-size: 40px;
    line-height: 50px;
    color: #F0F0F0;
    margin: 5px 0px 10px 0px;
}

@media only screen and (min-width: 768px) {
    h1 {
        margin: 10px 0px 15px 0px;
    }
}

h1.m-text {
    transition: 1.5s;
}

h1.first {
    display: block;
    opacity: 1;
}

h1.second {
    display: none;
    opacity: 0;
}

h1.third {
    display: none;
    opacity: 0;
}


h1 .signed {
    color: rgba(27, 227, 240, 1);
}

h1 .signed2 {
    color: rgb(246, 255, 0);
}

h1 .signed3 {
    color: rgb(4, 255, 0);
}

h2 {
    font-family: 'Hammersmith One';
    font-style: normal;
    font-weight: 400;
    font-size: 30px;
    line-height: 37px;
    color: #F0F0F0;
    margin: 5px 10px 0px 0px;
}

@media only screen and (min-width: 768px) {
    h2 {
        margin: 10px 0px 15px 0px;
    }
}

.m-texts {
    display: block;
    opacity: 1;
    transition: 0.5s;
}

@media only screen and (min-width: 768px) {
    .m-texts-wrap {
        display: block;
        padding-top: 5px;
        height: 150px;
    }
}

.technologies {
    display: none;
    opacity: 1;
    transition: 0.5s;
}

@media only screen and (min-width: 768px) {
    .technologies {
        display: block;
        padding-top: 15px;
    }
}

.latest-projects {
    display: none;
    opacity: 1;
    transition: 0.5s;
}

@media only screen and (min-width: 768px) {
    .latest-projects {
        display: block;
        padding-top: 15px;
    }
}

h3 {
    font-family: 'Hammersmith One';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: #F0F0F0;
    margin: 5px 0px 10px 0px;
}

@media only screen and (min-width: 768px) {
    h3 {
        font-size: 16px;
        line-height: 20px;
        margin: 10px 0px 15px 0px;
    }
}

h3 .signed {
    color: rgba(27, 227, 240, 1);
}

p {
    font-family: 'Hammersmith One';
    font-style: normal;
    font-weight: 400;
    font-size: 12px;
    line-height: 14px;
    color: #F0F0F0;
    padding: 5px;
}

.e-mail-address a {
    text-decoration: none;
    font-family: 'Hammersmith One';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 14px;
    color: #00ffcc;
    transition: 0.3s;
}

.e-mail-address a:hover { 
    color: #e8e8e8;
    transition: 0.3s;
}

.background-logos {
    display: none;
}

#preloader {
    

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #050505;
    z-index: 1;
    height: 100%;
    width: 100%;

    animation: fadeOut ease 1s;
    animation-delay: 4.0s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;

}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        display: none;
        z-index: -1;
    }
}

#octopus-with-text {
    display: block;
    position: absolute;
    max-width: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;

    animation: fadeOut ease 0.5s;
    animation-delay: 3.5s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

#spring-logo {
    position: absolute;
    left: 35.97%;
    right: 47.01%;
    top: 31.83%;
    bottom: 62.02%;
}

.menu-icon {
    width: 40px;
    z-index: 0;
    background-color: transparent;
    opacity: 0.5;
    border: none;
    cursor: pointer;
    display: flex;
    padding: 0;
}

@media only screen and (min-width: 768px) {
    .menu-icon {
        display: flex;
        visibility: hidden;
    }
}

.line {
    fill: none;
    stroke: white;
    stroke-width: 6;
    transition: stroke-dasharray 600ms cubic-bezier(0.4, 0, 0.2, 1),
        stroke-dashoffset 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.line1 {
    stroke-dasharray: 60 207;
    stroke-width: 3;
}

.line2 {
    stroke-dasharray: 60 60;
    stroke-width: 3;
}

.line3 {
    stroke-dasharray: 60 207;
    stroke-width: 3;
}

.opened .line1 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 3;
}

.opened .line2 {
    stroke-dasharray: 1 60;
    stroke-dashoffset: -30;
    stroke-width: 3;
}

.opened .line3 {
    stroke-dasharray: 90 207;
    stroke-dashoffset: -134;
    stroke-width: 3;
}

.sidenav {
    display: block;
    border-left: 1px solid rgba(0, 162, 255, 0.556);
    margin-left: 5px;
    flex: 0 0 85px;
    opacity: 0;
    transition: 0.5s;
}

@media only screen and (min-width: 768px) {
    .sidenav {
        display: none;
    }
}

.sidenav a {
    padding: 8px 8px 20px 8px;
    text-decoration: none;
    font-family: 'Hammersmith One';
    font-size: 18px;
    opacity: inherit;
    color: #aeaeae;
    display: block;
}

.sidenav .first {
    transition: 0.2s;
}

.sidenav .second {
    transition: 0.4s;
}

.sidenav .third {
    transition: 0.6s;
}

.sidenav .fourth {
    transition: 0.8s;
}

.sidenav a:hover {
    color: #b6fff9;
}

#gradient-canvas {
    position: absolute;
    left: 0px;
    bottom: 12%;
    width:100%;
    height:100%;
    --gradient-color-1: #000000; 
    --gradient-color-2: #004e52; 
    --gradient-color-3: #003962;  
    --gradient-color-4: #232323;
    transform: skewY(8deg);
    z-index:-2;
    overflow: hidden;
}