:root{
    --top-bar: 7%;
    --nav-ani: 220ms;
}

@font-face {
    font-family: cuprum;
    src: url(Fonts/Cuprum-Medium.ttf);
}

body, button{
    font-family: cuprum;
}

body.stop-transitions * {
    transition: none !important;
    animation: none !important;
}

#top-bar {
    background-color: #073b4c;
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: var(--top-bar);
    z-index: 1;
}

.nav-giulio{
    position: absolute;
    font-size: 200%;
    height: var(--top-bar);
    color: white;
    top: 50%;
    left: 2%;
    align-items: center;
    display: flex;
}

.center-name{
    cursor: pointer;
}

.color-giulio{
    color: white;
}

.color-pazzi{
    color: #c8553d;
}

.nav-links{
    display: flex;
    list-style: none;
    width: 50%;
    height: 100%;
    justify-content: space-around;
    align-items: center;
    margin-left: auto;
    margin-top: 0;
}

.nav-links li a{
    text-decoration: none;
    font-size: 200%;
    transition-duration: 200ms;
}

.nav-links li a:not(.current-page){
    color: white;
}

.nav-links li a:not(.current-page):hover {
    color: #ffd670;
    transition-duration: 500ms;
}

.current-page{
    color: #f3722c;
}

#page-content{
    background-image: linear-gradient(to bottom right, #2a9d8f, #E9C46A, #F4A261, #E76F51);
    position: absolute;
    top: var(--top-bar);
    left: 0;
    width: 100%;
    height: calc(100% - var(--top-bar));
}

#page-content-box {
    background-color: white;
    position: relative;
    width: 88%;
    height: 88%;
    left: 6%;
    top: 6%;

    display: table;
}

.in-progress{
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    font-size: 3em;
}

/*
------------------------------------------
Mobile Version               
*/
@media only screen and (max-width: 768px) {
    .nav-giulio{
        left: 0%;
        width: 100%;
        align-items: center;
        z-index: 2;
    }

    .center-name{
        margin: 0 auto;
    }

    .line {
        width: 30px;
        height: 3px;
        background-color: white;
        margin: 5px;
    }

    .hamburger{
       position: absolute;
       cursor: pointer;
       right: 5%;
       top: 50%;
       transform: translate(-5%,-50%);
       z-index: 2;
    }

    .nav-links{
        position: fixed;
        background-color: #073b4c;
        z-index: 1;
        width: 100%;
        align-items: center;
        text-align: center;
        flex-direction: column;
        clip-path: circle(0px at 90% -10%);
        -webkit-clip-path: circle(0px at 90% -10%);
        transition: all 500ms ease-out;
        pointer-events: none;
    }

    .nav-links.open{
        clip-path: circle(175% at 90% -10%);
        -webkit-clip-path: circle(175% at 90% -10%);
        pointer-events: all;
        transition: all 1100ms ease-out;
    }

    .nav-links li{
        opacity: 0;
        text-align: center;
        align-items: center;
        width: 120%;
        margin-left: -60%;
    }

    .nav-links li:nth-child(1){
        transition: all 0.5s ease calc(var(--nav-ani) * 1);
    }
    .nav-links li:nth-child(2){
        transition: all 0.5s ease calc(var(--nav-ani) * 2);
    }
    .nav-links li:nth-child(3){
        transition: all 0.5s ease calc(var(--nav-ani) * 3);
    }

    .nav-links li.fade{
        opacity: 1;
        margin-left: -20%;
    }
}


@media only screen and (max-width: 260px) {
    .nav-giulio{
        font-size: 150%;
    }

    .center-name{
        margin-left: 0;
    }
}

/*
-----------------------------------------------------
top-bar height and page-content updated
*/
@media only screen and (max-height: 520px) {
    #top-bar{
        height: 36px;
    }

    #page-content{
        top: 36px;
        height: calc(100% - 36px);
    }
}