/* reset rule to set defaults to zero */
* {
    margin: 0; 
    padding: 0;
    border: 0; 
    box-sizing: border-box; /* i'll explain this on wednesday */
}

/* test css rule */
body {
    border-top: 40px solid #733;
    background-color: #555;
    color: olivedrab;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    
}

h1 {
    font-family: 'Rubik Moonrocks', cursive;
    margin-top: 20px; /* add margin around h1*/
    text-align: center;
}

/*adjacent selector */
h1 + p {
    text-align: center;
    color: olivedrab;
    margin-top: 0px;
}

/*type selector */
header {
    background-color: rgba(250,250,40,.7);

}

p {
    margin: 10px 40px; /* 10px top and bottom, 40px left and right */
}


h2 {
    text-align: center;
    background-color: rgba(250,250,40,.7);
    border-bottom: 4px solid olivedrab;
}

/* descendent selector */

ul li {
    text-align: left;
    margin-left: 35px;
    color: olive;
    text-shadow: 2px 2px 2px #222;
}

/* class selector */

.AttentionMessage1 {
    background-color: orangered;
    color: #eee;
    font-weight: bold;
    box-shadow: 0px 0px 4px #222;
    margin: 40px;
}

nav {
    margin: 30px 10px 50px 10px; /* top right bottom left */
 }

.button1 {
    display: block; /*make them into block elements */
    background-color: #ff4;
    color: #222;
    font-weight: bold;
    text-decoration: none; /*get rid of the underline */
    border-radius: 16px;
    padding: 12px; /*space between text and broder */
    width: 300px;
    text-align: center; 
    margin: 20px auto; /*center a block element on the page */

    /* transition effect for button hover */
    transition: all 300ms ease-in-out;
}

/* pseudo class */
.button1:hover {
    background-color: orangered;
    color: #FFF;

}