/* CSS reset rule */
* {
    margin: 0; padding: 0; border: 0;
    box-sizing: border-box;
}

body {
    background-color: hsl(29, 38%, 22%);
    color: #EEE;
    font-family: verdana;
    padding-bottom: 80px;
}

ol {
    margin: 50px;
}

ol li {
    margin-bottom: 10px;
    list-style-type: upper-roman;
}

header {
    border: 5px solid #222;
    margin: 10px auto; /* center the block */
    width: 80%;
    max-width: 500px;
    padding: 8px;
    border-radius: 50%; /* turns to circle */
    aspect-ratio: 1/1;
    display: flex;
    background-image: linear-gradient(160deg,hsl(29, 38%, 22%),hsl(335, 39%, 70%));
    /*display: none; */
}

header h1 {
    align-self: center; /* vertical center */
    text-align: left;
    font-weight: normal;
    font-size: 2em;
    text-transform: lowercase;
}

header h1 span {
    color: hsl(359, 30%, 55%);
}

/* pseudo clas selector */
header:nth-of-type(2) {
    display: none;
}

nav {
    text-align: center;
}

nav a {
    color: hsl(335, 39%, 70% /1);
    text-decoration: none;
    padding: 8px 32px;
}

nav a:nth-of-type(3) {
    text-decoration: line-through;
}

/* id selector, very important */
#hero {
    background-image: url(../images/horse.jpg);
    aspect-ratio: 2/1;
    background-size: cover;
    background-position: 50% 50%;
    position: relative;
}

#hero p {
    background-color: rgba(240, 240, 240, .6);
    position: absolute; top: 60%; left: 0;
    width: 100%;
    padding: 32px 8px;
}

#hero p a {
    display: block; /* converts hyperlink to block */
    text-decoration: none;
    font-weight: bold;
    width: 200px;
    border: 2px solid hsl(29, 38%, 22%);
    padding: 24px 8px;
    margin: 0 auto;
    text-align: center;
    border-radius: 32px;
    color: hsl(29, 38%, 22%);
    background-color: hsl(335, 39%, 70%, /.6);
    transition: background-color .3s linear;
}

#hero p a:hover {
    background-color: hsl(335, 39%, 70%, / 1);
    color: #222; 
}