/* ----- 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;
    transition: font-weight 0.6;
}

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: background-color 0.9s ease;
}


/* ----- Images ----- */
img {
    width: 15vw;
    height: auto;
    margin: 5vw;
    transition: transform 0.5s ease-in-out;
    }

    /* 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. */



/* ----- 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(-50deg);
}

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

.scale{
    transform: scale(2, 0.8);
}

.skew{
    transform: skew(40deg, 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);
    transition: all;
    transform:scale(1.1)
}

h2{
    transition: ease(0.4);
    background-color: blueviolet;
}

h1:hover{
    font-weight: 800;
}