:root {
    --borders: #1e2030;
    --page-color: #181926;
    --background-color: #24273a;
    --text: #cad3f5;
    --blue: #8aadf4;
    --red: #ed8796;
    --pink: #f5bde6;
    --yellow: #f4dbd6;
    --box: #b8c0e0;
    --sapphire: #5a9bf0;
}

* {
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

body {
    background: var(--background-color);
    margin: 0;
}

svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.svg-background {
    z-index: -1;
}

.page-contents {
    display: flex;
    width: 100%;
    height: 80%;
    position: relative;
    overflow: hidden;
    justify-content: center;
    align-items: center;
    animation: fadeIn 5s forwards;
}

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

    90% {
        opacity: 0%;
    }
    100%
    {
        opacity: 100%;
    }
}

.img-container {
    padding: 8px;
    border-radius: 50%;
    background: linear-gradient(
        45deg,
        var(--blue),
        var(--pink)
    )
}

.img-container img {
    display: block;
    border-radius: 50%;
}

.svg-fish {
    z-index: 10;
}

svg path {
    stroke-width: 30px;
    pointer-events: none;
    fill: none;

    stroke-dashoffset: 3000;
    stroke-dasharray: 3000;
    animation: draw 6s ease forwards;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

#blue_wire {
    stroke: var(--blue);
}

#yellow_wire {
    stroke: var(--yellow);
}

#pink_wire {
    stroke: var(--pink);
}

#box {
    animation: none;
    stroke-dasharray: none;
    stroke-width: 40px;
    stroke: var(--box);
    fill: var(--box);
}

#fish {
    stroke: url(#fishGradient);
    stroke-width: 5px;
    fill: url(#fishGradient);
}

#fish-eye {
    stroke: var(--sapphire);
    fill:  var(--sapphire);
}

@keyframes drawFish {
    0% {
        clip-path: inset(0 100% 0 0);
    }
    80% {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes fadeFish {
    0% {
        opacity: 100%;
    }
    
    65% {
        opacity: 100%;
    }

    100% {
        opacity: 0%;
    }
}

.fish-svg {
    clip-path: inset(0 0 0 0);
    animation: 
        drawFish 6.5s ease forwards,
        fadeFish 1s ease 3.5s forwards;
    stroke-dasharray: 5000;
    stroke-dashoffset: 3000;
}

.container {
    display: flex;
    justify-content: center;
    min-height: 100vh;
    min-width: 100vw;
    align-items: center;
    z-index: 1;
}

.page {
    width: 70vw;
    height: 80vh;
    background: var(--page-color);
    color: #c6d0f5;
    border: 8px solid var(--borders);
    border-radius: 20px;
    border-top: 2px;
    overflow: hidden;
    animation: pageFade ease 3.5s forwards;
}

@keyframes pageFade {
    0% {
        background-color: var(--borders);
    }

    90% {background-color: var(--borders);
    
    }
    
    100% {
        background:var(--page-color);
    }
}
.header {
    position: relative;
    display: flex;
    background: var(--borders);
    align-items: center;
    min-height: 5vh;
    color: var(--text);
}

.search {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--borders);
    border-radius: 10px;
    border: 3px solid var(--borders);
    width: 50vw;
    height: 50px;
    text-align: center;
    font-size: 1rem;
}

.search input{
    color: var(--text);
    justify-content: center;
}