html{
    scroll-behavior: smooth;
}

body {
    background-color: #dedede;
    font-family:'Courier New', Courier, monospace;
}

h1 {
    text-align: center;
    font-family:Arial, sans-serif;
    font-size: 32px;
}

a {
    color: #000;
    text-decoration: none;
    font-family:Arial, sans-serif;
    padding: 10px 15px;
    border-radius: 25px;
}

p {
   font-size: 25px;
   font-family:Arial, sans-serif;
}

img{
  width:100%;
  border: 2px solid black;
}

p{
  text-align:center;
}

div img{
    width:80vw;
    height: 80vw;
    display:block;
    margin:auto;
}

div{
  display: inline-block;
  width: 24%;
  margin: 5px;
  padding: 2px;
}

figcaption {
    text-align: center;
}

.grid {
    display:grid;
    grid-row-gap: 10px;
    grid-column-gap: 10px;
    width: 100%
}

footer {
    text-align: center;
    margin: 2vh;
}

footer a{
    background-color: #444;
}

@media all and (min-width: 772px){
    body {
        background-color:antiquewhite;
    }

    .grid {
        grid-template-columns: 50% 50%;
    }

    figure img{
        border-radius: 50%;
        width: 40vw;
        height: 40vw;
    }

    figure.last {
        grid-column-start: 1;
        grid-column-end: 3;
    }
}

@media all and (min-width: 992px){
    body {
        background-color:burlywood;
    }

    figure img{
        border-radius: 0%;
    }

    figure:nth-child(3n) img{
        width: 80vw;
        height: 80vw;
    }

    figure:nth-child(3n){
        grid-column-start: 1;
        grid-column-end: 3;
    }
}

@media all and (min-width: 1200px) {
    
    nav ul {
        display: flex;
        justify-content: space-between;
    }

    nav ul li {
        align-self: center;
    }

    nav {
        display: block;
        width: auto;
    }

    header{
        display: block;
        align-content: center;
    }

    main {
        grid-column-start: 1;
        grid-column-end: 3;
        display: block;
    }

    footer{
        grid-column-start: 1;
        grid-column-end: 3;
    }
}

@media all and (prefers-reduced-motion: reduce){
    html {
        scroll-behavior:unset;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #1e1e1e;   
        color: #e8e8e8;
    }
    
    figure {
        background-color: #2b2b2b; 
        color: #f5d97a;              
        border: 2px solid #444;      
    }

    figure figcaption {
        color: #e6e6e6;              
    }

    a {
        color: #fff;
        text-decoration: none;
        font-family:Arial, sans-serif;
    }

    a:hover, a:active {
        background-color: #fff;
        color: #000;
    }
}
















/* 
main {
    border: 5px #000 solid;
    margin: 10px;
}
 */
/* 

.container {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
}
 */
/* img{
    width: 200px;
    height: 200px;
    padding: 5px;
} */

/* .child {
    position: relative;
    display: inline-block;
    border: 5px black solid;
    margin: 5px;
    border-radius: 5px;
} */

/* 

.label {
    display: none;
    position: absolute;
    top: 40%;
    left: 40%;
} */
/* 
.button {
    display: inline-block;
    border: 2px solid #000;
    padding: 5px;
    border-radius: 25px;
}
 */
/* 
.button:hover {
    background-color:#fff;
} */

/* 
footer {
    display: flex;
    justify-content: center;
} */

/* 
header {
    border-radius: 5px;
    border: 5px #000 solid;
    margin: 10px;
} */

/* 
.label {
    display: none;
    position: absolute;
    top: 40%;
    left: 40%;
} */
/* 
.child:hover .label {
    display: block;
} */