/*
color palette
rich black: #010B13
prussian blue: #003153
cerulean: #437F97
olive: #849324
selective yellow: #FFB30F
jasper: #CD4631
almost white: #F7FFF7
*/

/*Global qualities
--------------------*/
html {
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    color: #010B13;
    margin: 0;
    padding: 0;
    font-family: 'EB Garamond', serif;
    font-size: 18px;
    line-height: 1.5;
}

img {
    width: 300px;
}

a {
    color: #FFFFFF;
    text-decoration: dashed;
    
}

a:hover {
    text-decoration: none;
}

h1 {
    font-size: 50px;
}

h2 {
    font-size: 30px;
}

h1, h2 {
    font-family: 'Bad Script', cursive;
    margin: 0;
}

.content-wrap{
    max-width: 900px;
    width: 85%;
    margin: 0 auto;
    padding: 60px 0;
}

h3 {
    margin-bottom: 0;
}

.item-details h3 ~ p {
    margin: 0;
}

.divider > section {
    border-bottom: 3px dashed #003153;
    padding: 25px 0;
    
}

.divider > section:last-of-type {

    border-bottom: none;   
}

/*Nav Bar
--------------------*/
.topnav {
    background-color: #010B13;
}

.topnav table {
    background-color: #010B13;
    margin: 0 auto;
    height: 100px;
    width: 90%;
    font-weight: bold;
    font-family: 'Bad Script', cursive;
    /*make each cell the same size*/
    table-layout: fixed;
    text-align: center;
    justify-content: space-between;
  }
  
  /* Style the links inside the navigation bar */
  .topnav a {
    color: #f2f2f2;
    text-align: center;
    padding: 5px 5px;
    text-decoration: none;
    font-size: 30px;
  }
  
  /* Change the color of links on hover */
  .topnav a:hover {
    background-color: #ddd;
    color: black;
  }
  
  /* Add a color to the active/current link */
  .topnav a.active {
    background-color: #FFB30F;
    color: white;
  }

/*Profile
--------------------*/
header {
    background: #003153;
    color: #F7FFF7;
}

.keyword {
    color: #FFB30F
}

/*Projects
--------------------*/
.compmed {
    background: #437F97;
}

.compmed .btn {
    background: #003153;
    border-radius: 4px;
    padding: 8px;
    display: inline-block;
}

.compmed .btn:hover {
    background: rgba(0, 49, 83, 80%); 
}

.project-item {
    overflow: hidden;
}

.project-item h3 {
    margin-top: 0;
}

.project-item a {
    background: #003153;
    border-radius: 4px;
    padding: 8px;
}

.project-item a:hover {
    background: rgba(0, 49, 83, 80%); 
}

/*Paintings
--------------------*/
.painting {
    background: olive;
    font-size: 25px;
}

.painting h2 {
    font-size: 40px;
}

/*Games
--------------------*/
.games {
    background-image: url("boardgamebackground.jpeg");
    background-size: cover;
    background-position: top right;
    padding-bottom: 100px;
}

.games h2 {
    font-size: 40px;
}

.games p {
    width: 60%;
}

/*Fun Links
--------------------*/
footer {
    background: #CD4631;
}

footer h2, footer h3 {
    color: #F7FFF7;
}

.contact-list {
    list-style-type: none;
    padding: 0;
}

.contact-list a {
    padding: 15px;
    display: inline-block;
}

.contact-list a:hover {
    color: #FFB30F; 
}

/*Responses
---------------*/
@media screen and (min-width: 750px) {
    header, footer {
        text-align: center;
    }
    
    .project-item img {
        float: left;
        margin-right: 20px;
    }
    
    .job-item {
        display: grid;
        grid-template-columns: 1fr 2fr;
        column-gap: 20px;
    }
    
    .contact-list {
        display: flex;
        justify-content: center;
    }

    
}

@media screen and (max-width: 749px) {
    h1 {
        font-size: 75px;
        line-height: 0.9;
    }
    
    h2 {
        line-height: 1;
    }
    
    .contact-list a {
        padding: 5px;
    }
}
