@import url("https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800&display=swap");

:root {
    --facebook-rgb: 59, 89, 152;
    --telegram-rgb: 36, 161, 222;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
    transition: all 0.4s ease;
}

section {
    min-height: 100svh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #47289d;
    padding: 0 20px;
}

section.dark {
    background: #24292d;
}

section .container .icons{
    position: absolute;
    right: 27px;
    top: 17px;
    height: 40px;
    width: 40px;
    min-width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #24292d;
    border-radius: 50%;
    cursor: pointer;
}

section.dark .container .icons{
    background: #fff;
}

#clock h2 {
    position: relative;
    display: block;
    color: #fff;
    text-align: center;
    margin: 10px 0;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: 0.8em;
}

#clock #time {
    display: flex;
    position: relative;
}

#clock #time div:not(:last-child) {
    position: relative;
    margin: 0 5px;
    -webkit-box-reflect: below 1px linear-gradient(transparent, #0004);
}

#clock #time div span {
    position: relative;
    display: block;
    width: 90px;
    height: 80px;
    background: #2196f3;
    color: #fff;
    font-weight: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3em;
    z-index: 10;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

#clock #time div span:nth-child(2) {
    height: 30px;
    font-size: 0.7em;
    letter-spacing: 0.2em;
    font-weight: 500;
    z-index: 9;
    box-shadow: none;
    background: #127fd6;
    text-transform: uppercase;
}

#clock #time div:nth-last-child(2) span {
    background: #ff006a;
}

#clock #time div:nth-last-child(2) span:nth-child(2) {
    background: #ec0062;
}

#clock #time div:last-child {
    width: 50px;
    height: 40px;
}

#clock #time div:last-child span {
    position: absolute;
    bottom: 0;
    width: 50px;
    height: 40px;
    font-size: 1.2em;
    background: #fff;
    color: #000;
    -webkit-box-reflect: below 1px linear-gradient(transparent, #0004);
}

.list-inline {
    list-style-type: none;
    margin: 0;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.social-link li {
    margin: 0 !important;
    padding: 0 5px;
}

.social-link li a {
    overflow: hidden;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    text-align: center;
    color: #127fd6;
    border: 2px solid #fff;
    border-radius: 50%;
    line-height: 30px;
    line-height: 2;
    transition: all 0.4s ease-in-out;
}

.social-link li a:hover {
    transform: rotate(360deg) scale(1.2);
    color: #fff;
}

.social-link li a:hover.facebook {
    background: rgb(var(--facebook-rgb));
    border: 2px solid rgba(var(--facebook-rgb), 0.7);
    box-shadow: 0 0 0 4px rgba(var(--facebook-rgb), 0.4);
}

.social-link li a:hover.telegram {
    background: rgb(var(--telegram-rgb));
    border: 2px solid rgba(var(--telegram-rgb), 0.7);
    box-shadow: 0 0 0 4px rgba(var(--telegram-rgb), 0.4);
}

.social-link li a:hover.twitter {
    background: #55acee;
    border: 2px solid rgba(85, 172, 238, 0.7);
    box-shadow: 0 0 0 4px rgba(85, 172, 238, 0.4);
}

.social-link li a:hover.instagram {
    background: radial-gradient(circle at 30% 107%,
            #fdf497 0%,
            #fdf497 5%,
            #fd5949 45%,
            #d6249f 60%,
            #285aeb 90%);
    border: 2px solid rgba(228, 64, 95, 0.7);
    box-shadow: 0 0 0 4px rgba(228, 64, 95, 0.4);
}

.social-link li a:hover.linkedin {
    background: #0976b4;
    border: 2px solid rgba(9, 118, 180, 0.7);
    box-shadow: 0 0 0 4px rgba(9, 118, 180, 0.4);
}

.social-link li a:hover.portfolio {
    background: rgb(214, 36, 159);
    border: 2px solid rgba(214, 36, 159, 0.7);
    box-shadow: 0 0 0 4px rgba(214, 36, 159, 0.4);
}

.social-link li a:hover.github {
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.4);
}

.social-link li:nth-child(1) a {
    animation-delay: 0s;
}

.social-link li:nth-child(2) a {
    animation-delay: 0.4s;
}

.social-link li:nth-child(3) a {
    animation-delay: 0.8s;
}

.social-link li:nth-child(4) a {
    animation-delay: 1.2s;
}

.social-link li:nth-child(5) a {
    animation-delay: 1.6s;
}

.social-link li:nth-child(6) a {
    animation-delay: 2.0s;
}

.social-link li:nth-child(7) a {
    animation-delay: 2.4s;
}


.bouncy {
    animation: bouncy 6s infinite linear;
    position: relative;
}

@keyframes bouncy {
    0% {
        top: 0em;
    }

    40% {
        top: 0em;
    }

    46% {
        top: -0.5em;
    }

    50% {
        top: -1.2em;
    }

    56% {
        top: -0.5em;
    }

    60% {
        top: 0em;
    }

    100% {
        top: 0em;
    }
}