/* CSS Document used for homework 4 assignment
Author: Braxton Young
Course: ITWP 1050
File: style.css
*/

/* CSS element selector for body declarations, added line-height */

body {
    margin: 15px; 
    font-family: "Spectral", cursive, Arial, Helvetica, sans-serif;
    font-size: 2em;
    text-align: center;
    line-height: 3rem;
}

/* Updating main body color background */

.body-content {
    background-color: #f2f2f2;
    padding: 30px;
    border-radius: 10px;
    margin: 0 auto;
    width: 85%;
    text-align: left;
}

/* CSS universal selector for text color for each HTML */

* {
    color: #0e0d0d;
}

/* CSS element for H1, font family, text shadow, letter spacing, 
small caps font variant. Addidng SKEW function for homwork 4 */

h1 {
    font-family: "Spectral", cursive, Arial, Helvetica, sans-serif;
    text-shadow: 2px 2px 0px rgb(238, 9, 9);
    letter-spacing: 5px;
    font-variant: small-caps;
    white-space: nowrap;
    
    
    
}

/* CSS element selector for number headings */

h2 {
    font-weight: bold;
    color: rgb(248, 8, 8);
    text-align: center;
}

/* Adding paragraph elements to indent */

p {
    text-indent: 2em;
}

/* CSS element selector for footer declarations */

footer {
    margin-top: 50px;
    margin-bottom: 50px;
}

/* CSS element selector for image declarations */

.image-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 30px;
    padding: 20px 0;
    overflow-x: auto;
   
}

.image-row img {
    width: 400px;
    height: auto;
    border: 5px dotted black;
    border-radius: 20px;
    object-fit: cover;
}


/* CSS step 1 - background gradient 1 of 2 option */

.gradient1 {
    background-image: radial-gradient(rgba(87, 87, 222, 0.5), rgb(211, 91, 111, 0.3));
    width: auto;
    height: 33rem;
}

/* CSS step 2 - Background Image 2 of 2 option */

.background-image {
    background-image: url(images/kentucky.jpg);
    background-size: cover;
    background-position: center;
    height: 10rem;
    width: auto;
}

/* H1 element for web fonts step 2 a-e */

@font-face{
    font-family: "Spectral";
    font-weight: 400;
    font-style: normal;
    src: url(Spectral/Spectral-Regular.ttf)
}


/* CSS ::after pseudo-element */

.external-link::after {
    content: ' (external)';
    color: red
}

.underline {
    text-decoration: underline;
}

/* homework4, step 1, include rotate function and step 2 include scale function */
.rotate {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 30rem;
    height: 12rem;
    background: rgb(31, 31, 35);
    margin: 5rem auto;
    transform: perspective(200px)
               scaleZ(1)
               rotateX(45deg);
    padding: 1rem;
    box-sizing: border-box;
    border-radius: 15px;
}

/*homework 4, step 3, using the skew element */

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

/*homework 4, step 4, using the transform property */

.game {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.game img {
    width: 400px;
    height:250px;
    border: 5px dotted black;
    border-radius: 20px;
    align-content: center;
    padding: 1rem;
    object-fit: cover;
    transform: rotate(-10deg) scale(1.05);
    transition: transform 0.4s ease-in-out;
}

.game img:hover {
    transform: rotate(0deg) scale(1.1);
}

/*homework 4, step 5, transisitions */

.transition {
    background-color: #080500;
    transition-property: background-color;
    transition-duration: 0.5s;
    transition-delay: 0.3s;
}

.transition:hover {
    background-color: #97d8d0;
}
