@import url('https://fonts.googleapis.com/css?family=Lato&display=swap');

body {
    min-height: 100vh;
    background: #433636;
    margin: 0;
    align-items: center;
    justify-content: center;
    display: flex;
    font-family: 'Lato', sans-serif;
}

.clock {
    display: flex;
    position: relative;
    padding: 30px;
    border: 2px solid white;
}

.left {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.time {
    color: white;
    font-size: 100px;
    text-align: right;
    line-height: 0.75;
}

.date {
    color: white;
    font-size: 30px;
    text-align: right;
    margin-top: 5px;
    text-transform: capitalize;
}

.seconds {
    height: 40px;
    width: 40px;
    border: white 2px solid;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-left: 10px;
    position: relative;
}

.seconds > .outline {
    position: absolute;
    left: -4px;
    top: -4px;
    height: calc(100% + 4px);
    width: calc(100% + 4px);
    border-radius: 50%;
    border: 2px white solid;
    filter: blur(1px);
    opacity: 0;
    animation: secondsAnimation 1s infinite;
}

@keyframes secondsAnimation {
    from {
        left: -4px;
        top: -4px;
        height: calc(100% + 4px);
        width: calc(100% + 4px);
        filter: blur(1px);
        opacity: 1;
    }
    to {
        left: -10px;
        top: -10px;
        height: calc(100% + 17px);
        width: calc(100% + 17px);
        filter: blur(6px);
        opacity: 0;
    }
}

.background-1, .background-2 {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    transition: all 1s;
}

.background-1 {
    background-image: linear-gradient(135deg, #580141, #027461);
    opacity: 0.5;
}

.background-2 {
    background-image: linear-gradient(225deg, #580141, #027461);
    opacity: .3;
}

.github-icon {
    position: absolute;
    top: 20px;
    right: 20px;
}

.github-icon > img {
    height: 50px;
}

.color-menu {
    display: flex;
    position: absolute;
    align-items: center;
    justify-content: center;
    bottom: 20px;
    left: 0;
    width: 100%;
    height: 40px;
}

.color-menu > .item {
    width: 40px;
    height: 40px;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    margin: 0 5px;
    border: 1px solid white;
    transition: all 300ms ease-in-out;
    overflow: hidden;
}

.color-menu > .item.active {
    box-shadow: 0 0 10px 1px white;
}

.color-menu > .item:hover {
    box-shadow: 0 0 10px 1px white;
}

.color-menu > .item:active {
    filter: brightness(150%);
}

.color-menu > .item > span {
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
    box-sizing: border-box;
    filter: blur(5px);
}

.color-menu > .item > span:last-child {
    position: absolute;
    top: 10px;
    border-radius: 50%;
    left: 10px;
    height: 20px;
    width: 20px;
}

@media only screen and (max-width: 400px) {
    .clock {
        padding: 0;
        border: none;
    }

    .color-menu {
        flex-wrap: wrap;
        height: auto;
    }

    .color-menu > .item {
        margin: 5px;
    }
}

@media only screen and (max-width: 320px) {
    .time {
        color: white;
        font-size: 85px;
        text-align: right;
        line-height: 0.75;
    }

    .date {
        color: white;
        font-size: 25px;
        text-align: right;
        margin-top: 5px;
        text-transform: capitalize;
    }
}

