/* Code written by Ankit Dwivedi */

/* 
    Colours:
    #ee7752, #e73c7e, #23a6d5, #23d5ab, #ffffff, #212529, #36e2b2
*/

/* My styling is horrible, read it at your own risk */

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

*:focus {
    -webkit-tap-highlight-color: transparent;
    outline: none;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
}

body {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab, #ffffff);
	background-size: 400% 400%;
	animation: gradient 15s ease infinite;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow-y: hidden;
    overflow-x: hidden;
    font-family: BasierCircle,system-ui,-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Arial,sans-serif;
    display: flex;
    flex-flow: column;
}


.nav {
    width: auto;
    height: 3rem;
    left: 50%;
    display: flex;
    align-items: center;
    background-color: #212529;
    color: white;
    padding-right: 15px;
    padding-left: 15px;
    border-radius: 25px;
    margin-top: 1rem;
    cursor: pointer;
    position: absolute;
    transition: all 0.3s ease;
    transform: translate(-50%, 50%);
    opacity: 0;
    animation-duration: 1s;
}

.nav img{
    height: 2rem;
    width: 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav.animate{
    animation-timing-function: ease;
    animation-name: fadeDown;
}

.contents {
    background-color: transparent;
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.card {
    height: 400px;
    width: 300px;
    background-color: #212529;
    color: white;
    font-size: 25px;
    padding: 25px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation-duration: 1s;
    animation-name: contract;
    animation-timing-function: ease;
    flex-direction: column;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 
                0 6px 20px 0 rgba(0, 0, 0, 0.19);
}
.card.animate{
    animation-name: contractAgain;
}

.welcome {
    font-size: 2em;
    align-self: center;
    animation-duration: 2s;
    opacity: 0;
}

span {
    color: #36e2b2;
    font-weight: 800;
}
.welcome.animate{
    animation-name: fadeIn;
}

.welcome.animateStay{
    animation-duration: 1s;
    animation-name: fadeInStay;
}
.welcome.up{
    animation-duration: 1s;
    animation-name: up;
}

.clickMe {
    cursor: pointer;
    display: inline-flex;
    margin-left: auto;
    margin-right: auto;
    height: 75px;
    width: 200px;
    justify-content: center;
    align-items: center;
    border-style: none;
    border-radius: 10px;
    font-size: 25px;
    font-weight: 800;
    color: #212529;
    position: absolute;
    opacity: 0;
    animation-duration: 1s;
    transform: translate(0px, 50%);
    animation-timing-function: ease;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 
                0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.clickMe.liftUp{
    animation-name: liftUp;
}


/* It's all just the shitty animation you saw */

@keyframes liftUp {
    from {
        opacity: 0;
        transform: translate(0px, 65%);
    }
    to {
        opacity: 1;
        transform: translate(0px, 50%);
    }
}


@keyframes contract {
    0% {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    100% {
        width: 300px;
        height: 400px;
        border-radius: 25px;
    }
}
@keyframes contractAgain {
    0% {
        height: 400px;
    }
    100% {
        height: 200px;
    }
}
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translate(0px, 50%);
    }
    50% {
        opacity: 1;
        transform: translate(0px, 0%);
    }
    100% {
        opacity: 0;
        transform: translate(0px, -50%);
    }
}
@keyframes fadeInStay {
    0% {
        font-size: 25px;
        opacity: 0;
        transform: translate(0px, -50%);
    }
    100% {
        font-size: 25px;
        opacity: 1;
        transform: translate(0px, 0%);
    }
}

@keyframes fadeDown {
    0% {
        opacity: 0;
        transform: translate(-50%, -25%);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 50%);
    }
}


@keyframes up {
    0% {
        transform: translate(0px, 0%);
    }
    100% {
        transform: translate(0px, -75%);
    }
}

@keyframes hit {
    0% {
        height: 75px;
        width: 200px;
    }
    50% {
        height: 73px;
        width: 198px;
    }
    100% {
        height: 75px;
        width: 200px;
    }
}

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
