* {
    box-sizing: border-box;
}

body {
    background-color: rgb(122, 86, 66);
    transition: background-color 2s;
}

.greeting {
    background-color: rgb(212, 132, 86);
    color: white;
    padding: 20px;
    width: 100px;
    height: 100px;
    font-size: 10px;
    /* transition: background-color 2s, width 2s, height 2s; */
    /* transiton all will transiton all changes in this element without having to list changes individually */
    transition: all 2s;
}

.mobile {
    display: none;
}

/* .greeting:hover { */
    /* background-color: black; */
/* } */

/* max-width media queries are desktop-first */
/* min-width media queries are mobile-first */

/* this media query is for screensizes smaller than or equal to 900px */
@media screen and (max-width: 900px) {
    body {
        background-color: rgb(162, 70, 45);
    }

    .greeting {
        background-color: rgb(71, 87, 86);
        width: 200px;
        height: 200px;
        font-size: 20px;
    }  
}

/* this media query is for screensizes smaller than or equal to 700px */
@media screen and (max-width: 700px) {
    body {
        background-color: rgb(86, 41, 60);
    }

    .greeting {
        background-color: rgb(195, 169, 84);
        width: 300px;
        height: 300px;
        font-size: 30px;
    }
}

/* this media query is for screensizes smaller than or equal to 500px */
@media screen and (max-width: 500px) {
    body {
        background-color: rgb(185, 89, 42);
    }

    .greeting {
        background-color: rgb(151, 58, 67);
        width: 400px;
        height: 400px;
        font-size: 40px;
    }

    /* this is just the default vibible display, makes it visbile again */
    .mobile {
        display: block;
    }

    /* display:none; hides an element */
    .desktop {
        display: none;
    }
}