html, body {
    margin: 0;
    padding: 0;
}
html {
    height: 100%;
    background-image: url("resources/background-1.png");
    background-size: cover;
    /*background-color: rgb(97 99 107);*/
    display: grid;
    grid-template-columns: 80% 20%;
}
body {
    min-height: 100%;
    grid-column: 1 / 2;
    display: grid;
    grid-template-columns: 274px auto;
    background-color: rgba(86, 85, 85, 0.856);
    margin: 0;
    font-family: 'Catamaran';
    color: white;
    min-width: 984px;
    width: 100%;
}
header {
    grid-column: 1 / 2;
    display: grid;
    grid-template-rows: 100px auto auto 150px;
    background-image: url(./resources/header-background.png);
    background-size: cover;
}
header img {
    height: 70%;
    width: 90%;
    padding: 0px 10px 0px 10px;
    align-self: center;
}
header h1 {
    border: 1px solid white;
    width: fit-content;
    padding: 0px 10px 0px 10px;
    font-size: 36px;
    align-self: center;
    margin-left: 20px;
    display: none;
}
header p {
    font-size: 12px;
    margin: 20px;
    opacity: 0.9;
    grid-row: 4 / 5;
    background-color: #918f8fe0;
    border: 1px solid white;
    height: fit-content;
}
nav {
    grid-row: 2 / 4;
}
nav ul {
    list-style-type: none;
}
nav h2 {
    padding-left: 20px;
}
nav h2:hover {
    background-color: #918f8f8f;
}
.active {
    background-color: #918f8f8f;
    
}

#bodytext {
    grid-column: 2 / 3;
    display: grid;
    grid-template-columns: 75% 25%;
    grid-template-rows: 75px 200px 250px 200px auto;
    margin-left: 20px;
    overflow: auto;
}
#bodytext h2 {
    font-size: 40px;
    color: goldenrod;
    width: fit-content;
    padding: 0 10px 
}
#portrait {
    grid-row: 1 / 3;
    grid-column: 2 / 3;
    margin-top: 20px;
}
#portrait img {
    width: 150px;
    height: 200px;
}
#biography {
    grid-row: 2 / 3;
}
#biography p {
    margin-left: 30px;
    margin-right: 20px;
}
#qualifications {
    grid-row: 3 / 4;
    margin-top: 20px;
}
#qualifications h3 {
    margin-left: 30px;
}
#qualifications p {
    margin-left: 50px;
}
#promise {
    grid-row: 4 / 5;
    margin-top: 20px;
}
#promise p {
    margin-left: 30px;
}
.dropdown {
    display: none;
}

h1 {
    font-weight: 400;
}
h2 {
    font-size: 30px;
    font-weight: 400;
    margin: 10px;
}
h3 {
    font-size: 24px;
    font-weight: 400;
    margin: 0;
}
p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.3;
    margin: 0;
}
a {
    text-decoration: none;
    color: white;
}

@media only screen and (max-width: 984px) {
    #portrait {
        grid-column: 1 / 2;
        grid-row: 5 / 6;
        margin-top: 40px;
    }
}

@media only screen and (max-width: 830px) {
    html {
        grid-template-columns: 100%;
        grid-template-rows: 100%;
        width: 100%;
        background-image: url(./resources/background-2.png);
        background-size: cover;
    }
    body {
        grid-template-columns: 100%;
        grid-template-rows: 100px auto;
        justify-items: center;
        min-width: 100%;
    }
    header {
        grid-row: 1 / 2 ;
        grid-template-columns: auto 300px auto;
        /*width: 300px;*/
        width: 100%;
        height: 100%;
        background-image: url(./resources/header-background-3.png);
        background-size: cover;

    }
    header h1 {
        grid-column: 2 / 3;
    }
    header img {
        grid-column: 2 / 3;
    }
    header nav {
        grid-column: 2 / 3;
        width: 80%;
        border: none;
    }
    header p {
        grid-column: 2 / 3;
        width: 90%;
    }
    #bodytext {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
        width: 90%;
        grid-template-columns: 100%;
        grid-template-rows: auto auto auto auto;
    }
    #bodytext p {
        min-width: 300px;
    }
    #biography {
        grid-row: 1 / 2;
    }
    #qualifications {
        grid-row: 2 / 3;
    }
    #promise {
        grid-row: 3 / 4;
    }
    #portrait {
        grid-row: 4 / 5;
    }
    .dropdown {
        display: inline;
        grid-column: 3 / 4;
        margin-top: 35px;
    }
    .dropdown img {
        width: 40px;
        height: 30px;
    }
    .dropdown-content {
        display: none;
    }
}

@media only screen and (max-width: 414px) {
    html {
        grid-template-columns: 100%;
        grid-template-rows: 100%;
        width: 100%;
    }
    body {
        grid-template-columns: 100%;
        grid-template-rows: 100px auto;
        justify-items: center;
        width: 100%;
    }
    header {
        grid-row: 1 / 2 ;
        grid-template-columns: auto 250px auto;
        width: 100%;
        height: 100%;
    }
    header h1 {
        grid-column: 2 / 3;
        font-size: 28px;
    }
    header img {
        grid-column: 2 / 3;
    }
    header h2 {
        font-size: 24px;
    }
    header nav {
        grid-column: 2 / 3;
        width: 80%;
        border: none;
    }
    header p {
        grid-column: 2 / 3;
        width: 90%;
    }
    #bodytext {
        grid-row: 2 / 3;
        grid-column: 1 / 2;
        width: 90%;
        grid-template-columns: 100%;
        grid-template-rows: auto auto auto auto;
    }
    #bodytext h2 {
        font-size: 30px;
    }
    #bodytext h3 {
        font-size: 20px;
    }
    #bodytext p {
        min-width: 250px;
        font-size: 16px;
    }
    #biography {
        grid-row: 1 / 2;
    }
    #qualifications {
        grid-row: 2 / 3;
    }
    #promise {
        grid-row: 3 / 4;
    }
    #portrait {
        grid-row: 4 / 5;
    }
    .dropdown {
        display: inline;
        grid-column: 3 / 4;
        margin-top: 35px;
    }
    
}