@font-face {
    font-family: 'Quicksand-Light'; /*a name to be used later*/
    src: url('../fonts/Quicksand-Light.otf'); /*URL to font*/
}

@font-face {
    font-family: 'Quicksand-Dash'; /*a name to be used later*/
    src: url('../fonts/Quicksand_Dash.otf'); /*URL to font*/
}

@font-face {
    font-family: 'Quicksand-Regular'; /*a name to be used later*/
    src: url('../fonts/Quicksand-Regular.otf'); /*URL to font*/
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    color: #bdbdbd;
    font-family: 'Quicksand-Regular';
}

#content {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

#container {
    height: 92%;
}

.blue {
    color: #014272;
}

.links {
    display: inline-block;
    height: 100px;
    padding: 16px;
    width: 100px;
}

#avatar {
    width: 9%;
    margin: 0 auto;
}

.title {
    font-size: 2.7em;
    font-size: 3vw;
    font-family: 'Quicksand-Light';
    text-align: center;
    position: relative;
}

.subtitle {
    display: block;
    text-align: center;
    font-size: 2.2em;
    font-size: 2.4vw;
}

.navItem {
    height: 68px;
}

#footer {
    height: 100px;
    margin-top: -36px;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#separator {
    width: 1px;
    margin: 0 32px;
}

@media only screen and (max-device-width: 1400px) {

    #avatar {
        width: 20%;

    }

    .title {
        font-size: 5.4em;
        font-size: 6vw;
    }
}

@media only screen and (max-device-width: 480px) {

    #avatar {
        width: 40%;

    }

    .title {
        font-size: 5.4em;
        font-size: 6vw;
    }
}

@media only screen and (max-device-width: 360px) {
    .links {
        height: 85%;
    }
}

.button {
    background: transparent;
    height: 50px;
    overflow: hidden;
    text-align: center;
    transition: .2s;
    cursor: pointer;
    border-radius: 3px;
    position: absolute;
    right: 0;
    top: 0;
}

.btnTwo {
    position: relative;
    width: 146px;
    height: 100px;
    margin-top: -100px;
    padding-top: 2px;
    right: -250px;
    transition: .3s;
}

.btnText {
    color: black;
    font-family: 'Quicksand-Light';
    transition: .3s;
}

.btnText2 {
    margin-top: 63px;
    margin-left: -189px;
}

.button:hover .btnTwo { /*When hovering over .button change .btnTwo*/
    right: -130px;
}

.button:hover .btnText { /*When hovering over .button change .btnText*/
    margin-right: 65px;
    font-family: 'Quicksand-Regular'
}

.button:active { /*Clicked and held*/
    box-shadow: 0 5px 6px rgba(0, 0, 0, 0.3);
}

.typed-text {
    font-weight: normal;
    color: #dd7732;
}

.cursor {
    display: inline-block;
    background-color: #ccc;
    margin-left: 0.1rem;
    width: 3px;
    animation: blink 1s infinite;
}

object {
    pointer-events: none;
}

.typing {
    animation: none;
}

@keyframes blink {
    0% {
        background-color: #ccc;
    }
    49% {
        background-color: #ccc;
    }
    50% {
        background-color: transparent;
    }
    99% {
        background-color: transparent;
    }
    100% {
        background-color: #ccc;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: rgba(0, 0, 0, 0.75);
    }

    .btnText {
        color: #FFFFFF;
    }

    a, .blue {
        color: #809fff;
    }
}

.sidenav {
    height: 100%; /* 100% Full-height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0; /* Stay at the top */
    right: 0;
    background-color: #111; /* Black*/
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 60px; /* Place content 60px from the top */
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidenav */
}

/* The navigation menu links */
.sidenav .links {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: inline;
    transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.links p:hover {
    color: #f1f1f1;
}

.links p{
    display: inline-block;
    padding-right: 16px;
}

/* Position and style the close button (top right corner) */
.sidenav .closebtn {
    position: absolute;
    right: 32px;
    font-size: 36px;
    margin-top: -44px;
    padding: 0;
    width: auto;
}

/* On smaller screens, where height is less than 450px, change the style of the sidenav (less padding and a smaller font size) */
@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }

    .sidenav a {
        font-size: 18px;
    }
}

#crystal, #kaleyra {
    margin: 16px;
    display: none;
}

.media {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.media img,
.media video {
    padding: 16px;
    object-fit: scale-down;
    max-height: 30em;
    max-width: 100%;
}
