:root {
    --color1: #fcdc73;
    --color2: #e76268;
    --bg1: #193948;
    --bg: #eef6f9;
    --color4: #4fadc0;
}

.dark {
    background-color: #193948;
    color: var(--bg);
    transition: all .6s;
}

#day {
    font-size: 35px;
}

#dark {
    font-size: 35px;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    text-align: center;
}

body {
    background-color: var(--bg);
    color: var(--bg1);
    transition: all .6s;
}

a {
    outline: none;
}

i {
    padding: 0 2px;
    animation: 1s zoom infinite;
}

.card {
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: rgba( 238, 246, 249, .01);
    backdrop-filter: blur(2px);
    padding: 20px;
    position: relative;
}

footer,
.first_text,
.last_text {
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.card img {
    height: 200px;
    width: 200px;
    animation: 1s zoom infinite;
}

@keyframes zoom {
    0% {
        transform: scale(.9);
    }
    50% {
        transform: scale(1);
    }
    100% {
        transform: scale(.9);
    }
}

.first_text p {
    font-size: 17px;
}

.first_text h1 {
    font-size: 30px;
    letter-spacing: 2px;
}

.first_text h2 span {
    color: var(--color4);
    font-weight: 600;
    font-size: 20px;
}

.first_text h2 {
    font-size: 18px;
}

.connect {
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connect a {
    margin: 5px 5px;
    padding: 11px 25px;
    background-color: var(--color2);
    color: #fff;
    text-decoration: none;
}

.social {
    width: 60%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, auto));
    grid-gap: 10px;
    place-items: center;
    margin: 20px 0;
}

.social a {
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background-color: var(--color2);
    color: #fff;
    text-decoration: none;
}

.last_text h1 {
    font-size: 17px;
    letter-spacing: 1px;
    text-align: center;
    margin: 5px 0;
}

.last_text a {
    width: 200px;
    margin: 5px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background-color: var(--color2);
    color: #fff;
    text-decoration: none;
}

footer {
    width: 100%;
    height: auto;
    padding: 5px;
    font-size: 12px;
    color: var(--bg1);
    background-color: var(--bg);
}

@media only screen and (max-width:768px) {
    .card {
        height: auto;
    }
}


/*animations*/

.ball1 {
    position: fixed;
    top: 60%;
    left: 0;
    height: 10px;
    width: 10px;
    border-radius: 100%;
    background-color: var(--color4);
    z-index: -1;
    animation: 6s moving infinite;
    transition: all 1s ease-in-out;
}

.ball2 {
    position: fixed;
    top: 20%;
    left: 0;
    height: 15px;
    width: 15px;
    border-radius: 100%;
    background-color: var(--color1);
    z-index: -1;
    animation: 8s moving infinite;
    transition: all 1s ease-in-out;
}

.ball3 {
    position: fixed;
    top: 40%;
    left: 0;
    height: 15px;
    width: 15px;
    border-radius: 100%;
    background-color: var(--bg1);
    z-index: -1;
    animation: 5s moving infinite;
    transition: all 1s ease-in-out;
}

.ball4 {
    position: fixed;
    top: 70%;
    left: 0;
    height: 30px;
    width: 30px;
    border-radius: 100%;
    background-color: var(--color2);
    z-index: -1;
    animation: 7s moving infinite;
    transition: all 1s ease-in-out;
}

.ball5 {
    position: fixed;
    top: 90%;
    left: 0;
    height: 20px;
    width: 20px;
    border-radius: 100%;
    background-color: var(--color4);
    z-index: -1;
    animation: 9s moving infinite;
    transition: all 1s ease-in-out;
}

@keyframes moving {
    0% {
        transform: translateX(90vw);
    }
    50% {
        transform: translateX(10vw);
    }
    100% {
        transform: translateX(90vw);
    }
}

.animations {
    position: absolute;
    top: 5px;
    right: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.animations i {
    font-size: 25px;
    cursor: pointer;
}

.visible {
    display: none;
}