@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lexend:wght@100..900&family=Modak&family=Mogra&display=swap');

:root {
    --background-white: #D1E0D7;
    --background-blue: #607EBC;
    --text-color: #1a1a1a;
    --prc : white;
    --bg-color : #607EBC;

}

html {
    scroll-behavior: smooth;
}

body {
    background: linear-gradient(to bottom left, var(--background-white), var(--background-blue));
    color: var(--text-color);
    font-family: "Inter", sans-serif;
    margin: 0;
    font-size: 1.5rem;
    text-align: center;
    justify-content: center;
}

a {
    color: #00a2ff;
    text-decoration: none;
}

nav{
    background-color: var(--bg-color);
    height: 10vh;
    border-radius: 50px;
    width: 60vw;
    margin-left: 20vw;
    margin-top: 3vh;
}
nav>ul>li>a{
    text-decoration: none;
    color: var(--prc);
    font-size: 18px;
}
.sm-m {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}
nav>ul{
    display: flex;
    justify-content: space-evenly;
    width: 60%;
    margin: 0;
    padding: 0;
}
nav>ul>li{
    display: inline;
}
nav>ul>li>a:hover{
    color: black;
    transition: 1s;
}
nav{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
nav>div>button{
    color: var(--bg-color);
    background-color: var(--prc);
    outline: none;
    border: 2px transparent solid;
    border-radius: 30px;
    padding: 10px;
}
nav>div>button:hover{
    color: var(--prc);
    background-color: black;
    transition: 1s;
}
nav>div>button>a:hover{
    color: var(--prc);
}
nav>div>button>a{
    text-decoration: none;
    color: var(--bg-color);
}
.img-cont{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 20%;
    flex-wrap: wrap;
}
.img-cont>img{
    width: 100%;
}
.here{
    border-bottom: 3px var(--prc) solid;
}

main {
    display: inline-block;
    border-radius: 30px;
    width: 80vw;
    background-color: #f0f0f0;
}

section img {
    width: 57rem;
    height: 32rem;
    margin-top: 2rem;
    border-radius: 20px;
}

.section {
    text-align: center;
}

.comparison{
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    gap: 1rem;
    place-items: center;
}

img {
    max-width: 32rem;
    max-height: 18rem;
}

hr {
    margin-top: 5rem;
    border: solid #607EBC 3px;
    border-radius: 10px;
}

footer {
    margin: 2rem auto;
    padding: 0.1rem;
    background-color: rgba(255, 255, 255, 0.126);
    color: #f0f0f0;
    text-align: center;
    align-content: center;
    backdrop-filter:  blur(8px);
    backdrop-filter: brightness(1.1);
    border-radius: 30px;
    width: 50vw;
    margin-left: 25vw;
    border-left: 1px rgba(255, 255, 255, 0.4) solid;
    border-top: 1px rgba(255, 255, 255, 0.4) solid;
    box-shadow: 3px 3px 3px rgba(0,0,0, 0.084);
}

.author {
    font-weight: bold;
}

footer>p>a{
    text-decoration: none;
}
abbr {
    text-decoration: none;
}
abbr:hover {
    cursor: default;
}

/*Developer cards*/
.staff{
    margin-top: 3rem;
    position: relative;
    text-align: center;
    height: 100%;
}
.staff>h1{
    color: #607EBC;
    font-size: 50px;
    font-weight: 400;
}
.staff>h3{
    color: rgb(114, 114, 114);
    position: relative;
    top: -40px;
}
.cd{
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    display: flex;
    perspective: 1000px;
    width: 100%;
    height: 18rem;
}
.front, .back{
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px #607EBC solid;
    border-radius: 10px;
    box-shadow: 3px 5px rgba(0, 0, 0, 0.276);
    backface-visibility: hidden;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}
.front>img{
    width: 100%;
    height: 100%;
    border-radius: 10px;
}
.front{
    transform: rotateY(0deg);
}
.back{
    background-color: rgb(255, 255, 255);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotateY(180deg);
}
.cd:hover .front{
    transform: rotateY(-180deg);
}
.cd:hover .back{
    transform: rotateY(0deg);
}

.grid-cont{
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    grid-template-rows: 1fr;
    gap: 2rem;
    place-items: center;
    width: 50%;
    margin: 0 auto;
}

/*Loader animation*/
.loader{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    z-index: 10000000000000;
    width: 100vw;
    height: 100vh;
    background-color: #607EBC;
    top: 0;
    left: 0;
}
.loading{
    border: 5px white solid;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    background-color: #607EBC;
    border-top-color: #607EBC;
    animation: rot 3s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}
.loading2{
    border: 5px white solid;
    border-radius: 50%;
    width: 130px;
    height: 130px;
    background-color: #607EBC;
    border-top-color: #607EBC;
    animation: rot 2s linear infinite;
}
@keyframes rot2{
    from{ transform: rotate(360deg) }
    to{ transform: rotate(0deg) }
}
@keyframes rot{
    from{ transform: rotate(0deg) }
    to{ transform: rotate(360deg) }
}
.text{
    color: #ffffff;
    display: block;
}

/*responsive design*/
@media (max-width: 1440px) {
    .comparison img {
        max-width: 16rem;
        max-height: 9rem;
    }
}

@media (max-width: 1024px) {
    .comparison {
        grid-template-columns: 1fr;
    }

    .comparison img {
        max-width: 21.3rem;
        max-height: 12rem;
    }

    .grid-cont {
        width: 80%;
    }

    .cd {
        height: 16rem;
    }

    footer {
        width: 70vw;
        margin-left: 15vw;
    }
}

@media (max-width: 868px) {
    nav {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
    }
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--bg-color);
        border-radius: 10px;
        margin-top: 10px;
    }
    nav ul li {
        text-align: center;
        padding: 10px 0;
    }
    .sm-m {
        display: block;
    }
    nav ul.show {
        display: flex;
    }
    .hero {
        width: 95vw;
        margin-left: 2.5vw;
    }
    .card, .sp {
        width: 90%;
        margin: auto;
    }
    footer {
        width: 90vw;
        margin-left: 2.5vw;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 1.2rem;
    }

    .img-cont {
        width: 50%;
    }

    section img {
        width: 90%;
        height: auto;
    }

    .grid-cont {
        grid-template-columns: 1fr;
        width: 50%;
    }

    main {
        width: 95vw;
    }

    footer {
        width: 90vw;
        margin-left: 5vw;
    }

    .cd {
        height: 15rem;
    }
}