:root{
    --purple-color: rgba(122, 122, 255, 0.8);
    --transparent-gray: rgba(211, 211, 211, 0.85);
}

@font-face{
    font-family: Kanisah;
    src: url('/assets/fonts/Kanisah.ttf');
}

body{
    margin: 0;
}

.wrapper{
    position: absolute;
    top: 100px;
    width: 100%;
    height: calc(100% - 100px);
}

header{
    position: fixed;
    z-index: 10;
    top: 0;
    width: 100%;
    height: 100px;
    background-color: rgb(122, 122, 255);
}

#nav{
    display: flex;
    overflow: hidden;
}

.right-nav, .left-nav {
    position: absolute;
    margin: auto;
    display: inline-flex;
    align-items: flex-start;
}

.right-nav{
    width: 87%;
    right: 0;
    justify-content: flex-end;
}

.left-nav {
    width: 100%;
    left: 0;
    padding-left: 10px;
    justify-content: flex-start;
}

#open-close-menu {
    visibility: hidden;
}

.nav-item {
    position: relative;
    text-decoration: none;
    font-family: Kanisah;
    font-size: 30px;
    line-height: 60px;
    color: lightgrey;

    padding-right: 20px;
    padding-left: 20px;
    
    transition: background-color 0.08s;
    border-radius: 10px;
    margin: 10px;
    margin-left: 0px;
    margin-top: 20px;
}

.nav-item:hover{
    background-color: rgb(152, 152, 255);
    color: rgb(255, 255, 255);
    cursor: pointer;
}

.nav-item:hover .nav-dropdown {
    display: block;
}

.nav-item.has-children {
    border-radius: 10px 10px 0px 0px;
}

.nav-dropdown {
    z-index: 10;
    list-style-type: none;
    display: none;
    width: 100%;
    position: absolute;
    margin: 0px;
    padding: 0;
    left: 0;
    height: min-content;
    padding-inline-start: 0px;
}

.nav-dropdown li {
    width: 100%;
    line-height: 60px;
    vertical-align: middle;
}

.dropdown-item {
    display: block;
    background-color: rgb(122, 122, 255);
    color: lightgrey;
    left: 0;
    margin: 0;
    text-decoration: none;
    text-align: center;
    height: min-content;
    width: 100%;
}

.last-dropdown-item {
    border-radius: 0px 0px 10px 10px;
}

.dropdown-item:hover{
    background-color: rgb(152, 152, 255);
    color: white;
    transition: background-color 0.08s;
}

footer{
	position: fixed;
	font-size: 10px;
	line-height: 30px;
	bottom: 0;
	width: 100%;
	background-color: rgba(43, 42, 42, 0.424);
    color: white;
	text-align: center;
}

#footer-text{
    color: white;
}

#footer-text:hover{
    text-decoration: none;
}

@media screen and (max-width: 1156px) {
    /*** This is when "External Links" in the nav bar takes 2 lines ***/

    .left-nav, .right-nav {
        display: contents;
    }

    #nav {
        visibility: hidden;
        position: absolute;
        margin: auto;
        height: max-content;
        display: block;
        width: min-content;
        background-color: rgb(122, 122, 255);
        overflow-y: scroll;
        max-height: 100vh;
        border-radius: 0px 0px 10px 10px;
    }

    .nav-dropdown {
        position: initial;
    }

    .nav-item.has-children {
        border-radius: 10px;
    }

    .nav-item {
        margin-left: 10px;
        text-align: center;
    }

    #open-close-menu {
        visibility: visible;

        position: relative;
        font-size: 60px;
        line-height: 60px;
        color: lightgrey;

        padding-right: 20px;
        padding-left: 20px;
        
        transition: background-color 0.3s;
        border-radius: 10px;
        margin-left: 20px;
        text-align: center;
        margin-top: 20px;

        width: min-content;
        float: center;
    }

    #open-close-menu:hover{
        background-color: rgb(152, 152, 255);
        color: rgb(255, 255, 255);
        cursor: pointer;
    }
}