* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: darkcyan;
    color: #EEE;
    background-image: url(../images/glass-art.png.jpg);
    font-family: Verdana;
    background-size: cover;
    
}

#container {
    border: 8px solid silver;
    min-height: 96vh;
    background-color: rgba(0, 0, 0, .7);
}

nav a { 
    text-decoration: none; 
    padding: 5px 10px; 
} 

nav a:hover { 
    background-color: lightblue; 
    color: #fff; 
}

header {
    min-height: 300px;
}

h1 {
    color: aquamarine;
    text-align: center;
}

.content p{
    color: aqua;
}


footer {
    text-align: center;
    background-color: gray;
    height: 43px;
}

img { 
    border-radius: 5px; 
    box-shadow: 2px 2px 5px teal;
    max-width: 15%; 
    height:auto; 
}

.three_boxes {
    margin: 150px auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;

}

.three_boxes div {
    flex: 0 0 20%;
    aspect-ratio: 1;
    border: 8px solid darkblue;
    border-radius: 0%;
    transform: rotate(-45deg);
    position: relative;
    overflow: hidden;
}

section.three_boxes div figure {
    background-size: 500%;
    width: 145%; 
    aspect-ratio: 1;
    transform: rotate(45deg);
    position: absolute;
    top: -23%; left: -23%;
}

section.three_boxes div:nth-child(1) figure {
    background-image: url(../images/painting_1.jpg);
    background-position: 35% 50%;
}

section.three_boxes div:nth-child(2) figure {
    background-image: url(../images/painting_2.jpg);
    background-position: 54% 48%;
}

section.three_boxes div:nth-child(3) figure {
    background-image: url(../images/painting_3.jpg);
    background-position: 73% 55%;
}

nav a {
    padding: 8px 12px;
    background-color: rgb(255, 195, 40);
    color: #234;
    text-decoration: none;
    margin: 9px;
}

@media screen and (min-width: 1020px){

    header {  
        text-align: left;
    }

    nav a {
       flex-direction: column;
    }

    article {
        flex-basis: 400px;
    }

    article > header {
       margin: 0px;
    }

   article > p:nth-of-type(1){
     margin-top: 16px;
   }

   article > p:nth-of-type(1)::first-letter {
       display: block;
       color: blue;
       font-size: 3em;
       float: left;
       padding: 8px;
   }

   .nav-primary .desktop {
     display: inline;
   }

}





