@import url(https://fonts.googleapis.com/css?family=Share+Tech+Mono);

:root {
    /*--bg: #6F1E51;
    --shadow: #50173B;

    --nav-after: #1f2029
}

:root .dark {*/
    --bg: #1f2029;
    --bg-light: white;
    --bg-lighter: #f3f3f3;
    --bg-darkgrey: #e3e3e3;
    --shadow: #303240;

    --nav-after: #f1c40f; /*#1f2029*/
}

body, * {
    padding: 0;
    margin: 0;

    font-family: 'Share Tech Mono',monospace;

    scrollbar-color: #393b4a var(--bg);
    scrollbar-width: thin;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    height: 100%;

    overflow-x: hidden;

    background-color: var(--bg);

    section {
        position: relative;
        height: 100vh;
        min-height: 100vh;
        width: 100vw;

        padding-top: 100px;
        padding-bottom: 100px;
        
        display: flex;;
        align-items: center;
        justify-content: center;
        flex-direction: column;

        .spacermenu {
            height: 20px;
        }

        .title {
            position: absolute;
            top: 60px;
            left: 25px;
            font-size: 45px;
            font-weight: bold;

            span {
                color: #f1c40f;
            }
        }
    }

    section.header {
        background: url('https://s3-us-west-2.amazonaws.com/s.cdpn.io/1462889/pat-back.svg') repeat fixed center;
        background-size: 4%;
        overflow-x: hidden;
        -webkit-transition: all 300ms linear;
        transition: all 300ms linear;

        display: block;
        height: 350vh;
        position: relative;


        * {
            transition-duration: 250ms;
        }


        #content_move {
            position: fixed;
            width: 100vw;
            height: 100vh;

            display: grid;
            align-items: center;
            justify-content: center;

            .content {
                display: flex;
                justify-content: center;
                align-items: center;
                flex-direction: column;

                gap: 30px;

                height: 100%;

                z-index: 999;

                .title_div {
                    align-self: end;
                    display: grid;

                    .same_line {
                        display: flex;
                        flex-direction: row;

                        margin: 0 auto;

                        p {
                            font-size: 30px;
                            color: white;

                            display: flex;
                            justify-content: center;
                            align-items: center;
                        }

                        p:after {
                            content: ' ';
                            width: 2px;
                            height: 80%;
                            background-color: white;

                            animation: 750ms infinite flash;
                        }

                        span {
                            font-size: 30px;
                            color: #f1c40f;
                        }
                    }
                }



                ul {
                    padding-left: 0;
                    list-style: none;

                    margin: 0;

                    display: flex;
                    flex-direction: row;

                    li {
                        margin-bottom: 20px;
                        padding: 0;

                        .linkedin {
                            color: #fff;
                            background-color: #007bb6;
                            border-color: rgba(0,0,0,0.2);
                        }

                        .github {
                            color: #fff;
                            background-color: #444;
                            border-color: rgba(0,0,0,0.2);
                        }

                        .linkedin:hover {
                            background-color: #00679a;
                        }

                        .github:hover {
                            background-color: #373737;
                        }

                        a {
                            position: relative;
                            text-align: left;
                            white-space: nowrap;
                            overflow: hidden;
                            text-overflow: ellipsis;

                            padding: .5rem 1rem;
                            font-size: 1.25rem;
                            line-height: 1.5;
                            border-radius: .3rem;

                            display: inline-block;
                            font-weight: 400;
                            vertical-align: middle;

                            user-select: none;

                            border: 1px solid transparent;

                            cursor: pointer;

                            transition-duration: 250ms;
                        }
                    }

                    li:not(:last-child) {
                        margin-right: 5px;
                    }
                }
            }
        }

        h1 {
            font-size: 85px;
            color: white;
            font-weight: bold;
            width: 100%;
            text-align: center;
        }

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform-origin: center center;
            position: absolute;
        }

        .circle {
            background-image: radial-gradient(circle at center, transparent 30%, white 31%);
            width: 100%;
            height: 100%;
            object-fit: cover;
            transform-origin: center center;
            position: absolute;
            z-index: 999;
        }
    }

    div.navigation {
        z-index: 999;
        background: white;
        position: sticky;
        top: 0;

        padding: 20px;
        transition: background-color 0.3s ease;

        box-shadow: 0 0 10px var(--bg);
        height: 20px;

        ul {
            display: flex;
            flex-direction: row;
            justify-content: center;

            li:first-child
            {
                list-style: none;
                margin-right: auto;

                h3 {
                    font-weight: bold;
                    color: white;
                }
            }
            li:not(:first-child) {
                margin: 0 15px;
                list-style: none;

                a {
                    text-decoration: none;
                    color: #1f2029;
                    font-size: 20px;

                    letter-spacing: -2px;
                }

                a::after {
                    content: ' ';
                    display: block;
                    width: 0;
                    height: 2px;
                    margin: 0 auto;

                    border-radius: 100px;
                    background-color: var(--nav-after);

                    transition: width 100ms ease-in !important;
                }

                a.active::after {
                    width: 80%;
                }

                a:hover::after {
                    width: 100%;
                }
            }
        }
    }

    section.content {
        background-color: white;

        box-shadow: 0px -5px 10px -5px rgba(0, 0, 0, 0.25);

        padding-bottom: 0;

        .container {
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            
            display: flex;
            justify-content: center;
            align-items: center;

            flex-direction: row;

            .block {
                position: relative;

                background-color: #ededed;

                border-radius: 5px;

                display: flex;
                flex-direction: column;

                justify-content: center;
                align-items: center;
                text-align: center;

                width: 15em;
                height: 15em;

                color: black;

                h2 {
                    font-size: 2em;
                }
                h1 {
                    font-size: 85px;
                }

                * {
                    transition-duration: 250ms;
                }
            }

            .block:nth-child(2) {
                margin: 0 4vw;
            }

            .block:hover {
                top: -5px;
                box-shadow: 15px 15px 15px #777;

                h1, h2 {
                    color: #f1c40f;
                }
            }
        }

        img {
            position: inherit;
            bottom: 0;
            pointer-events: none;
        }
    }

    /*section.project {
        background-color: white;

        .diag {
            width: 80%;
            margin: 110px 0;
            overflow-y: scroll;
        }

        .container {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;

            flex-direction: row;



            .block {
                position: relative;

                background-color: #ededed;

                /*border-radius: 5px;/
                color: black;

                display: flex;
                flex-direction: column;

                justify-content: center;
                vertical-align: center;
                text-align: center;

                width: 15em;
                height: 15em;

                img {
                    width: 100%;
                    height: 100%;
                }

                .more {
                    position: absolute;

                    background-color: rgba(31, 32, 41, 0.5);

                    width: 100%;
                    height: 0;
                    bottom: 0;

                    /*border-radius: 5px;/

                    .content_more {
                        width: 100%;
                        height: 100%;

                        display: none;
                    }

                    transition-duration: 250ms;
                }
                transition-duration: 250ms;
            }

            .block {
                margin: 0.5em 0.5em;
            }

            .block:nth-child(even) {
                background-color: red;
            }

            .block:hover {
                img, h1, h2 {
                    display: none;
                }

                .more {
                    height: 100%;

                    .content_more {
                        display: block;
                    }
                }
            }
        }
    }*/

    footer {
        background-color: var(--bg);
        width: 100%;
        padding: 40px 0;
        color: #d1d8e0;
        text-align: center;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
        font-family: 'Arial', sans-serif;

        h2 {
            font-size: 24px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #fff;
        }

        p {
            font-size: 14px;
            line-height: 1.6;
            margin-bottom: 20px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            color: #d1d8e0;
        }

        ul {
            list-style-type: none;
            padding: 0;
            margin-bottom: 20px;

            li {
                display: inline-block;
                margin-right: 20px;

                a {
                    text-decoration: none;
                    color: #f8efba;
                    font-weight: bold;

                    cursor: pointer;

                    &:hover {
                        text-decoration: underline;
                        color: #f1c40f;
                    }
                }
            }
        }

        p:last-child {
            font-size: 12px;
            color: #c8d6e5;
            margin-top: 10px;
        }

    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: inherit;
}

.shadow {
    box-shadow: 7px 7px 7px var(--shadow);
    position: relative;
    transition: all 0.2s;
    top: 0;
}

a {
    cursor: pointer;
}

.upsidedown {
    position: fixed;

    bottom: 30dvh;

    width: 50px;
    height: 50px;
    color: var(--nav-after);
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;

    margin-top: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: end;

    left: 50%;

    transition: all 0.3s ease;
    animation: fadeInUp 5s infinite ease-in-out;

    &:hover {
        background-color: #d4af37;
        color: white;
    }

    i {
        font-size: 45px;
        transform: rotate(90deg);
    }    
}


@keyframes flash {
    50% {
        background-color: transparent;
    }
}

@media screen and (max-width: 1100px) {
    section.content {
        img {
            width: 300px;
            height: 300px;
        }
    }
}

@keyframes fadeInUp {
    0% {
        transform: translateY(25px) translateX(-50%);
    }

    25% {
        transform: translateY(0) translateX(-50%);
    }
    
    50% {
        transform: translateY(25px) translateX(-50%);
    }

    75% {
        transform: translateY(0) translateX(-50%);
    }

    100% {
        transform: translateY(25px) translateX(-50%);
    }
}