header {
    background: rgb(163, 144, 46);
    background: linear-gradient(220deg, rgba(163, 144, 46, 1) 0%, rgba(185, 165, 63, 1) 36%, rgba(231, 212, 111, 1) 100%);
    border-bottom-style: solid;
    margin: 0px;
    width: 100%;
    padding: 10px;
    border-bottom-color: white;
}

header > a > img {
    position: absolute;
    width: 80px;
    height: 80px;
    margin: 0px auto;
}

header > h1 {
    margin-left: 100px;
}

nav {
    position: absolute;
    top: 20px;
    right: 5%;
}

nav a {
    background-color: white;
    color: black;
    display: block;
    padding: 16px 4px;
    text-decoration: none;
    border-radius: 5px;
    margin: 7px;
}

nav a:hover {
    background-color: #7b7b7b;
    color: rgba(185, 165, 63, 1);
}


nav li {
    float: left;
    list-style-type: none;
    margin: 0px 5px 10px 0px;
    position: relative;

}

nav ul::after {
    content: "";
    display: table;
    clear: both;
}

nav ul {
    margin: 0px;
}


nav > ul > li {
    position: relative;
}

nav > ul li > ul {
    display: none;
    background: rgb(163, 144, 46);
    background: linear-gradient(20deg, rgba(163, 144, 46, 1) 0%, rgba(185, 165, 63, 1) 36%, rgba(231, 212, 111, 1) 100%);
    color: black;
    box-shadow: 7px 7px 7px black;
    width: 200px;
    padding: 5px;
    position: absolute;
    top: 58px;
    left: 7px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    list-style-type: none;
    text-align: left;
    z-index: 1;
}

nav > ul > li:hover > ul {
    display: flex;
    flex-direction: column;
}


nav li > ul > li > a {
    display: inline-block;
    padding: 3px;
    border-radius: 3px;
    margin: 2px;
}

nav li > ul > li > a:hover {
    background-color: #7b7b7b;
    color: rgba(185, 165, 63, 1);
    border-radius: 3px;
}

@media all and (orientation: portrait) {
    header {
        position: sticky;
        top: 0px;
        padding: 20px;
    }

    header > a > img {
        position: absolute;
        width: 130px;
        height: 130px;
        margin: 0px;
    }

    header > h1 {
        margin: 30px;
        margin-left: 150px;
        font-size: 60px;

    }

    nav {
        display: none;
        position: sticky;
        left: 0%;
        top: 170px;
        margin: 20px;
    }


    header:hover > nav {
        display: flex;

    }


    nav > ul > li {
        margin: 10px 35px 10px 0px;
        font-size: 30px;
    }


    nav > ul > li > ul {
        display: none;
    }

    nav > ul > li:hover > ul {
        display: none;
    }

}
