* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Verdana;
    padding: 10px;
    background: #f1f1f1;
    max-width: 1200px;
    margin: 0 auto;
}

quote {
    font-style: italic;
}

/* Header and Title */
.header {
    padding: 30px;
    text-align: center;
    background-image: url(../images/header.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 3px 3px 5px 3px darkgray;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.header h1 {
    font-size: 50px;
    font-weight: bolder;
    color: white;
    text-shadow: 5px 5px 5px grey;
}

.header h2 {
    color: white;
    text-shadow: 5px 5px 5px grey;

}

/* Style the top navigation bar */
.topnav {
    overflow: hidden;
    background-color: red;
    box-shadow: 3px 3px 5px 3px darkgray;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    position: sticky;
    top: 0px;

}

.topnav .icon {
    float: right;
    display: none;
}

/* Style the topnav links */
.topnav a {
    float: left;
    display: block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    border: 1px solid brown;
}

/* Change color on hover */
.topnav a:hover {
    background-color: darkred;
    color: white;
}

/* Change color of Active link */
.topnav a.active {
    background-color: darkorange;
    border-top-right-radius: 10px;
    color: black;
    font-weight: bolder;
}

.biography {
    display: grid;
    grid-template-areas: "photo qualifications";
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 10px;
}

#myphoto {
    grid-area: photo;
    margin: 0;
    padding: 0;
}

#qualifications {
    grid-area: qualifications;
    padding-right: 10px;
    line-height: 21px;

    ;
}
#skills {
	margin-left: 10px;
    line-height: 23px;
}

/* Create two unequal columns that floats next to each other */
/* Left column */
.leftcolumn {
    float: left;
    width: 49%;
}

/* Right column */
.rightcolumn {
    float: right;
    width: 49%;
    background-color: #f1f1f1;

}

.centeredimage {
    margin: 0px auto 0px auto;
}

/* postimg image */
.postimg {
    background-color: white;
    border: 1px solid grey;
    border-radius: 10px;
    box-shadow: 3px 3px 5px 3px darkgray;
    padding: 0px;
    width: 100%;
    display: block;

}

/* Add a card effect for articles */
.card {
    background-color: white;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 3px 3px 5px 3px darkgray;
    border-radius: 10px;
}

.spreadlist {

    line-height: 39px;
}

.spacedparagraph {
    line-height: 33px;
}

/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}

/* Footer */
#footer {
    background-color: antiquewhite;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    place-items: center;
    height: 100px;
    box-shadow: 3px 3px 5px 3px darkgray;
    border-radius: 10px;
    margin-top: 10px;
}

.icon img {
    width: 50px;
    height: 50px;
    transition: width 1s, height 1s;

}

.icon img:hover {
    width: 70px;
    height: 70px;
}

.highrisk {
    
    background-image: url(../images/arrowToHigh.gif), url(../images/RiskKnob.jpg);
    background-repeat: no-repeat;
    background-size:contain;
    color:crimson;
    padding-top:385px;
    padding-left: 10px;
    padding-right:10px;
    border-radius: 20px;
}

.mildrisk {
    background-image: url(../images/arrowToMild.gif), url(../images/RiskKnob.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    color:black;
    padding-top:375px;
    padding-left: 10px;
    padding-right:10px;
    border-radius: 20px;
}
.lowrisk {
    background-image: url(../images/arrowToLow.gif), url(../images/RiskKnob.jpg);
    background-repeat: no-repeat;
    background-size: contain;
    color:black;
    padding-top:375px;
    padding-left: 10px;
    padding-right:10px;
      border-radius: 20px;
}

/* Responsive layout - when the screen is less than 800px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 800px) {

    .leftcolumn,
    .rightcolumn {
        width: 100%;
        padding: 0;
        float: none;
    }

}

figcaption {
    text-align: center;
}

/* Responsive layout - when the screen is less than 400px wide, make the navigation links stack on top of each other instead of next to each other */
@media screen and (max-width: 700px) {
    .topnav a {
        display: none;
        float: none;
        width: 100%;
    }

    .topnav .icon {
        display: block;
        right: 0;
        top: 0;
        text-align: right;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
        width: 100%;
    }

    .topnav.responsive .icon {
        text-align: right;
    }

}
