:root {
    --background-color: rgb(227, 241, 253);
    --background2-color: rgb(255, 248, 219);
    --primary-color: rgb(107, 158, 251);
    --secondary-color: rgb(57, 153, 255);
    --hover-color: #bcdaf8;
    --border-color: #318ce7;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "mulish", "arial", "sans";
}

header {
    position: relative;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 55;
}

main {
    position: relative;
    flex: 1;
    padding-bottom: 80px;
    padding-top: 80px;
    
}

nav {
    position: fixed;
    top: 0;
    right: 0;
    width:88vw;
    margin: 0;
    padding-inline: 7%;
    padding-block: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    background-color: white;
    z-index: 55;
}

nav .logo {
    display: flex;
    align-items: center;
}

nav h3 {
    font-weight: 800;

}

nav ul {
    display: none;
    width: 40%;
    gap: 10%;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navigation {
    position: absolute;
    top: -350px;
    left: 0;
    width: 100%;
    z-index: 40;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--background-color);
    border-bottom:solid 2px rgb(139, 185, 218);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    transition: top 0.4s ease;
}

.navigation.active {
    top: 75px;
}

.menuIcon {
    cursor: pointer;
}

.menuIcon path {
    transition: all 0.4s ease;
}

.menuIcon.active path:nth-child(1) {
    transform: rotate(45deg) translate(3px, -7px);

}

.menuIcon.active path:nth-child(3) {
    transform: rotate(-45deg) translate(-10px, -4px);
}

.menuIcon.active path:nth-child(2) {
    opacity: 0;
}

.navigation a {
    position: relative;
    text-align: center;
    margin-block: 10px;
    padding-block: 5px;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.navigation a:after {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    transition: 0.3s;
}

.navigation a:hover {
    color: var(--primary-color);
}

.navigation a:hover::after {
    background-color: var(--primary-color);
    width: 100%;
}

.navigation hr {
    border-color: aliceblue;
    width: 100%;
    margin: 0;
    box-shadow: 2px 2px 10px 2px var(--hover-color);
}


footer {
    margin-top: auto;
    padding-inline: 7%;
    padding-block: 20px;
    background-color:  rgb(6, 44, 86);
    color: white;
}

footer .logo {
    display: flex;
    gap: 10px;
    align-items: center;
    color: white;
}

footer ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

footer li {
    margin-bottom: 20px;
}

footer a {
    position: relative;
    text-align: center;
    margin-block: 10px;
    padding-block: 5px;
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.footercontent {
    display: flex;
    flex-direction: column;
}

footer a:after {
    position: absolute;
    content: "";
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    transition: 0.3s;
}

footer a:hover::after {
    background-color: var(--primary-color);
    width: 100%;
}

footer .links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    text-align: center;
}

.coursetypes,
.coursetypes ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    align-self: flex-start;
}

footer .links li,
.coursetypes li {
    color: rgb(174, 174, 181);
}

footer .links li,
.coursetypes li :hover {
    cursor: pointer;
}
.contacts h3 {
    text-align: center;
    margin-bottom: 20px;
}

.contacts {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contacts ul {
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(174, 174, 181);
    gap: 20px;
}

footer hr {
    height: 1px;
    background-color: rgb(174, 174, 181);
    border: none;
}

footer p {
    text-align: center;
    color: rgb(174, 174, 181);
}

.footernav {
    padding-top: 10%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 20%;
}

@media only screen and (min-width: 768px) {
    nav ul {
        display: flex;
        gap: 10%;
        list-style: none;
        justify-content: flex-end;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    nav svg {
        display: none;
    }

    nav a {
        position: relative;
        text-align: center;
        margin-block: 10px;
        padding-block: 5px;
        text-decoration: none;
        color: inherit;
        transition: 0.3s;
    }

    nav a:after {
        position: absolute;
        content: "";
        left: 0;
        bottom: 0;
        height: 2px;
        width: 0;
        transition: 0.3s;
    }

    nav a:hover {
        color: var(--primary-color);
    }

    nav a:hover::after {
        background-color: var(--primary-color);
        width: 100%;
    }

    nav button {
        border-radius: 15px;
        border-width: 0;
        background-color: var(--secondary-color);
        color: white;
        padding-inline: 10px;
        padding-block: 10px;
        border-width: 2px;
        border-color: var(--secondary-color);
    }

    nav button:hover {
        background-color: var(--hover-color);
        border-color: var(--border-color);
        color: var(--primary-color);
    }

    .navigation {
        display: none;
    }

    .footing {
        padding-inline: 7%;
        margin-top: 60px;
        display: flex;
        gap: 15%;
    }

    footer .logo {
        display: flex;
        flex-direction: column;
    }

    .footercontent {
        display: flex;
        flex-direction: row;
        gap: 40px;
        flex: 1;
        justify-content: space-between;
    }

    .footernav {
        padding-top: 0;
        display: flex;
        flex-direction: row;
        gap: 40px;
        justify-content: space-evenly;
        flex: 1;
    }

    footer .logo img {
        height: 160px;
        width: 200px;
    }

    footer .logo h2 {
        margin-top: 0;
        font-size: 40px;
    }

    .contacts ul {
        flex-direction: column;
    }

}