/* --------------navbar------------- */

#logo {
    width: 100px;
}

.navbar {
    width: 100% !important;
}

.navbar li a {
    font-size: 1.6rem;
}

.mainMenu li {
    padding-right: 15px;
}

/* .navbar form {
    scale: 110%;
} */

/* ---------------animi-------------- */

* {
    margin: 0;
    padding: 0;
}

body {
    background-image: linear-gradient(to bottom, #9a0a31, #c4234f, #cd3e65, #d74b71, #d57892);
    background-repeat: no-repeat;
    width: 100% !important;
    height: 100% !important;
    font-family: system-ui, sans-serif;
}


section {
    display: flex;
    justify-content: center;
    margin: 5vh auto;
    width: 80vw;
    flex-direction: column;
    text-align: center;
    color: #fff;
}

section h1 {
    font-size: 4.5rem;
}

/* .sec:hover {
    scale: 105% !important;
    transition: 0.5s !important;
}

section {
    border: 2px solid red;
} */

section p {
    font-size: 1.4rem;
    margin-top: 10px;
    letter-spacing: 2px;
    word-spacing: 1px;
}


.squares {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.squares li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.534);
    animation: animate 8s linear infinite;
    bottom: -150px;
}

.squares li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.squares li:nth-child(2) {
    left: 10%;
    width: 70px;
    height: 70px;
    animation-delay: 0s;
    animation-duration: 12s;
}

.squares li:nth-child(3) {
    left: 70%;
    width: 30px;
    height: 30px;
    animation-delay: 2s;
}

.squares li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.squares li:nth-child(5) {
    left: 65%;
    width: 50px;
    height: 50px;
    animation-delay: 0s;
}

.squares li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 0s;
}

.squares li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 4s;
}

.squares li:nth-child(8) {
    left: 50%;
    width: 40px;
    height: 40px;
    animation-delay: 2s;
    animation-duration: 30s;
}

.squares li:nth-child(9) {
    left: 20%;
    width: 30px;
    height: 30px;
    animation-delay: 2s;
    animation-duration: 25s;
}

.squares li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

.squares li:nth-child(11) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
}

.squares li:nth-child(12) {
    left: 50%;
    width: 70px;
    height: 70px;
    animation-delay: 2s;
    animation-duration: 7s;
}

.squares li:nth-child(13) {
    left: 20%;
    width: 70px;
    height: 70px;
    animation-delay: 0s;
    animation-duration: 15s;
}

.squares li:nth-child(14) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

/* ------------------courses-------------------------- */

@import url("https://fonts.googleapis.com/css?family=Rubik:400,700&display=swap");

/* *,
*::after,
*::before {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
    box-sizing: border-box;
} */

/* html {
    font-size: 48.5%;
} */

.course {
    font-family: "Rubik", sans-serif;
    font-weight: 400;
    line-height: 1.7;
    padding: 3rem;
    box-sizing: border-box;
}

.grids {
    max-width: 136rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 3rem;
    grid-row-gap: 3rem;
}

.card {
    background-color: transparent !important;
    border: none !important;
}

.card-0 {
    border: none !important;
}

.card-0 {
    grid-column: 1/4;
}

.card-1 {
    grid-column: 1/4;
}

.card-2 {
    grid-column: 1/4;
}

.card-3 {
    grid-column: 1/4;
}

.card-4 {
    grid-column: 1/4;
}

.card-5 {
    grid-column: 1/4;
}

/* .card-six {
    grid-column: 1/4;
}

.card-seven {
    grid-column: 1/4;
}

.card-eight {
    grid-column: 1/4;
} */

.card {
    perspective: 150rem;
    -moz-perspective: 150rem;
    position: relative;
    height: 25rem;
    width: 100%;
    transition: all ease-in-out 400ms;
    /* transition: all ease-in-out 4000ms; */
    cursor: pointer;
}

.card:hover {
    transform: scale(1.05);
}

.card:active {
    transform: translateY(-1px);
}

/* Kandy Mahanuwara 40000 */
/* BMICH yanna van eka 28000 */

.card__side {
    transition: all 0.8s ease;
    /* transition: all 1s ease; */
    color: white;
    font-size: 2rem;
    position: absolute;
    top: 0;
    left: 0;
    height: 25rem;
    width: 100%;
    backface-visibility: hidden;
    box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.4);
    border-radius: 8px;
}

.card__side--front {
    background-color: #2196f3;
    position: relative;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.morebtn {
    width: 30%;
    padding-top: 10px !important;
    padding: 0.1rem;
    position: relative;
    top: 80% !important;
    left: 50%;
    transform: translate(-50%, 85%);
    border: 2px solid #fff;
    color: #fff;
    border-radius: 2rem;
}

.morebtn a {
    text-decoration: none;
    color: #fff;
}

.morebtn a:hover {
    color: black;
}


.morebtn:hover {
    background-color: #fff !important;
    color: black;
    transition: 0.5s;
}

.card__side--back {
    background-color: #303f9f;
    transform: rotateY(180deg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.showGreen {
    transform: rotateY(-180deg);
}

.showRed {
    transform: rotateY(0);
}

.text-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
}

.text-box-top {
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 2px 2px 10px #0000006c;
}

.text-box-middle {
    font-size: 2.2rem;
    text-shadow: 2px 2px 10px #0000006c;
    font-weight: 400;
}

.text-box-lower {
    font-size: 1.8rem;
    text-shadow: 2px 2px 10px #0000006c;
    font-weight: 400;
}

.heading {
    transition: all 0.6s linear;
}

.hide {
    visibility: hidden;
    opacity: 0;
}

.show {
    visibility: visible;
    opacity: 1;
}

#front-0 {
    background-image: linear-gradient(rgba(204, 30, 88, 0.6),
            rgba(20, 20, 20, 0.075)),
        url("Software.jpg");
}

#front-1 {
    background-image: linear-gradient(rgba(204, 30, 88, 0.6),
            rgba(20, 20, 20, 0.075)),
        url("MultiMedia.jpg");
}

#front-2 {
    background-image: linear-gradient(rgba(31, 136, 168, 0.767),
            rgba(14, 46, 65, 0.075)),
        url("IMG_1051.jpg");
}

#front-3 {
    background-image: linear-gradient(rgba(84, 86, 175, 0.9),
            rgba(27, 27, 85, 0.9)),
        url("https://images.unsplash.com/photo-1499914485622-a88fac536970?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=600&q=80");
}

#front-4 {
    background-image: linear-gradient(rgba(74, 190, 122, 0.767),
            rgba(6, 66, 48, 0.9)),
        url("https://images.unsplash.com/photo-1531206715517-5c0ba140b2b8?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80");
}

#front-5 {
    background-image: linear-gradient(rgba(128, 74, 190, 0.767),
            rgba(42, 6, 66, 0.9)),
        url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80");
}

#front-6 {
    background-image: linear-gradient(rgba(214, 21, 86, 0.801),
            rgba(20, 20, 20, 0.6)),
        url("https://images.unsplash.com/photo-1491438590914-bc09fcaaf77a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80");
}

#front-7 {
    background-image: linear-gradient(rgba(31, 136, 168, 0.767),
            rgba(14, 46, 65, 0.9)),
        url("https://images.unsplash.com/photo-1520881363902-a0ff4e722963?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80");
}

#front-8 {
    background-image: linear-gradient(rgba(31, 136, 168, 0.767),
            rgba(14, 46, 65, 0.9)),
        url("https://images.unsplash.com/photo-1520881363902-a0ff4e722963?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80");
}

/* Back */

#back-o {
    background-image: linear-gradient(rgba(204, 30, 88, 0.6),
            rgba(20, 20, 20, 0.075)),
        url("Software.jpg");
}

#back-1 {
    background-image: linear-gradient(rgba(204, 30, 88, 0.6),
            rgba(20, 20, 20, 0.075)),
        url("MultiMedia.jpg");
}

#back-2 {
    background-image: linear-gradient(rgba(31, 136, 168, 0.767),
            rgba(14, 46, 65, 0.075)),
        url("IMG_1051.jpg");
}

#back-3 {
    background-image: linear-gradient(rgba(84, 86, 175, 0.9),
            rgba(27, 27, 85, 0.9)),
        url("https://images.unsplash.com/photo-1499914485622-a88fac536970?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=600&q=80");
}

#back-4 {
    background-image: linear-gradient(rgba(74, 190, 122, 0.767),
            rgba(6, 66, 48, 0.9)),
        url("https://images.unsplash.com/photo-1531206715517-5c0ba140b2b8?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80");
}

#back-5 {
    background-image: linear-gradient(rgba(128, 74, 190, 0.767),
            rgba(42, 6, 66, 0.9)),
        url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80");
}

#back-6 {
    background-image: linear-gradient(rgba(214, 21, 86, 0.801),
            rgba(20, 20, 20, 0.6)),
        url("https://images.unsplash.com/photo-1491438590914-bc09fcaaf77a?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80");
}

#back-7 {
    background-image: linear-gradient(rgba(31, 136, 168, 0.767),
            rgba(14, 46, 65, 0.9)),
        url("https://images.unsplash.com/photo-1520881363902-a0ff4e722963?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80");
}

#back-8 {
    background-image: linear-gradient(rgba(31, 136, 168, 0.767),
            rgba(14, 46, 65, 0.9)),
        url("https://images.unsplash.com/photo-1520881363902-a0ff4e722963?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=800&q=80");
}

@media screen and (min-width: 1024px) {
    html {
        font-size: 62.5%;
    }

    .grids {
        max-width: 136rem;
        margin: 0 auto;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-column-gap: 3rem;
        grid-row-gap: 3rem;
    }

    .card-1 {
        grid-column: 2/3;
    }

    .card-2 {
        grid-column: 3/4;
    }

    .card-3 {
        grid-column: 1/2;
    }

    .card-4 {
        grid-column: 2/2;
    }

    .card-5 {
        grid-column: 3/4;
    }

    /* .card-six {
        grid-column: 1/2;
    }

    .card-seven {
        grid-column: 2/2;
    }

    .card-eight {
        grid-column: 3/4;
    } */

    .card-0 {
        grid-column: 1/2;
    }
}

@keyframes animate {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}