/* ----- Smooth Scroll ----- */
html {
    scroll-behavior: smooth;
}


/* ----- Universal Selector ----- */
* {
    margin: 0;
}


/* ----- Section Selectors ----- */
header {
    text-align: center;
    border-bottom: solid;
    border-width: 1pt;
}

section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 5vw;
}


/* ----- Typographic Selectors ----- */
h1 {
    margin: 2%;
    font-family: 'PT Serif', serif;
    font-size: 3vw;
    font-weight: 400;
    color: gray;
}

h2 {
    width: 40vw;
    margin: 5%;
    background-color: rgb(183, 183, 183);
    color: white;
    padding: 1% 0;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-transform: uppercase;

    transition: all 0.4s ease;
}


/* ----- Images ----- */
img {
    width: 15vw;
    height: auto;
    margin: 5vw;
    /* STEP 4: Add a transition so every transform change glides
       instead of jumping. Animate the transform, over half a
       second, with an ease-in-out timing function. */
    transition: transform 2s ease;
}


/* ----- Transform Property ----- */
/* STEP 3: Write one rule for each image class.
   - rotate:     turn it 45 degrees
   - translate:  move it 20px right and 40px down
   - scale:      make it 1.5 times bigger
   - skew:       slant it 30 degrees on X and 20 degrees on Y */

.rotate{
    transform: rotate(45deg);
}

.translate{
    transform: translate(20px, 40px);
}

.scale{
    transform: scale(1.5); 
}

.skew{
    transform: skew(30deg, 20deg);
}

/* ----- Hover Effects ----- */
/* STEP 4: Write a hover rule for each image class.
   - rotate:     turn it three quarters of a full turn
   - translate:  move it back to its starting spot
   - scale:      shrink it back to normal size
   - skew:       straighten it out */

.rotate:hover{
    transform: rotate(.75turn);
}


.translate:hover{
    transform: translate(0, 0);
}

.scale:hover{
    transform: scale(1);
}

.skew:hover{
    transform: skew(0deg, 0deg);
}
/* ----- Bonus ----- */
/* STEP 5 (bonus): When you hover over an h2, change its
   background to orange. Make the color change glide, too. */

   h2:hover{
    background-color: rgb(247, 167, 78);
    transform: scale(1.1);
   }