body {
    font-family: "Gabarito", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
}

.navbar {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    border-bottom: solid black 1px;
    gap: 10px;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

.navbar__s1__title {
    color: #A435F0;
}

.navbar__s2 {
    padding: 10px;
    border: solid black 1px;
    border-radius: 30px;
    width: 60%;
    display: flex;
    gap: 10px;
    align-items: center;
}

.navbar__s2 input {
    width: 100%;
    border: none;
    font-size: 16px;
    background-color: transparent;
}

.navbar__s2 input:focus {
    outline: none;
}

.navbar__s3 {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Courses */
.courses {
    position: relative;
    cursor: pointer;
}

.courses__popup {
    position: absolute;
    border: solid black 1px;
    background-color: white;
    width: 80px;
    padding: 10px;
    top: 150%;
    border-radius: 20px;
    right: 0;
    display: none;
}

.courses:hover .courses__popup {
    display: block;
}

/* My learning */
.mylearning {
    position: relative;
    cursor: pointer;
}

.mylearning__popup {
    position: absolute;
    background-color: white;
    border: solid black 1px;
    border-radius: 20px;
    padding: 10px;
    width: 100px;
    top: 150%;
    right: 0;
    display: none;
}

.mylearning:hover .mylearning__popup {
    display: block;
}

.categories {
    padding: 10px;
    display: flex;
    justify-content: space-around;
    border-bottom: solid black 1px;
}

.categories p {
    background-color: #A435F0;
    color: white;
    border-radius: 20px;
    padding: 10px;
    border: solid #A435F0 1px;
    cursor: pointer;
}

.categories p:hover {
    transition: 1s;
    background-color: white;
    color: black;
    border: solid #A435F0 1px;
}

.sale-image img {
    width: 100%;
}

.sale-image {
    position: relative;
}

.sale-image__offer {
    width:20%;
    background-color: white;
    position: absolute;
    top: 10%;
    left: 10%;
    padding: 10px;
    border: solid black 2px;
    border-radius: 10px;
    animation-name: zoom;
    animation-duration: 3s;
    transform: scale(0);
    animation-fill-mode: forwards;
}

@keyframes zoom {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.recommended {
    padding: 10px;
}

.course-card {
    flex-grow: 1;
    flex-basis: 20%;
    margin: 5px;
}

.course-card img {
    width: 100%;
    height: 60%;
}

.recommended__container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.topics {
    padding: 10px;
}

.topics__container {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.topics__container p {
    border: solid grey 2px;
    padding: 10px;
    flex-grow: 1;
    flex-basis: 25%;
}

.popular {
    padding: 10px;
}

.popular__container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-top: 20px;
}

.footer {
    background-color: black;
    color: white;
    padding: 30px;
}

.footer__one {
    display: flex;
    gap: 10px;
}

.footer__one p {
    margin: 20px;
}

.footer__two {
    display: flex;
    justify-content: space-between;
    margin: 20px;
    align-items: center;
}

/* Media queries */
@media screen and (max-width:800px) {
    body {
        font-size: 10px;
    }
}

@media screen and (max-width:600px) {
    .course-card {
        flex-basis: 40%;
    }

    .sale-image__offer{
        width: 100px;
        height:80px;
        top: 5%;
    }

    .categories{
        display: none;
    }

    .navbar__s2 input{
        font-size: 9.5px;
    }
}

