/*

Name: Safaa Sabir
Course: ITWP 1050
Assignment: Homework 5

*/


/* Page Styling */

main {
    max-width: 1100px;
    margin: 0 auto;
}


body {
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f0f8ff;
    margin: 20px;
    line-height: 1.6;
}


/* Header */
h1 {
    text-align: center;
    font-size: 50px;
}


h2 {
    text-align: center;
    font-size: 30px;
}

h3 {
    text-align: center;
    font-size: 30px;
}

/* Flex layout for text */
.text-content {
    display: flex;
    gap: 40px;
    margin-bottom: 80px;
    align-items: flex-start;
}

.column {
    width: 48%;
}

.column h2,
.column h3 {
    margin-top: 0;
}


/* Responsive images */
img {
    max-width: 100%;
    height: auto;
}


/* Images Layout */
.images {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 60px 0;
}


/* Rotation Function */
.rotate {
    transform: rotate(5deg);
    width: 300px;
    margin: 10px; 
}


 /* Scale Function */
.scale {
    width: 300px;
    margin: 10px;
    transform: scale(1.1);
} 


/* Skew Function */
.skew {
    transform: skew(10deg, 5deg);
    width: 300px;
    margin: 10px;
}


/* Animation Requirment */
@keyframes moveBox {
    0% { transform: translatex(0); }
    50% { transform: translatex(50px); }
    100% { transform: translatex(0); }

}

.multi-transform {
    animation: moveBox 3s infinite;
}


/* Multiple Transforms */
.multi-transform {
    width: 200px;
    height: 100px;
    margin: 60px auto;
    background-color: lightblue;
    text-align: center;
    line-height: 100px;


    /* Multiple transforms applied */
    transform: rotate(10deg) scale(1.1) translateX(20px);
}


/* Transition Requirement */
.transition-box {
    background-color: blue;
    color: white;

    transition-property: background-color, transform;
    transition-duration: 0.5s;
    transition-delay: 0.2s;
}
/*          Edit               */

/* Hover effect */
.transition-box:hover {
    background-color: red;
    transform: scale(1.2);
}


/* Flexbox layout */

.topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    background-color: #ddd;
    padding: 20px;
    margin-top: 30px;
}

.topic {
    background-color: coral;
    padding: 15px 25px;
    font-size: 1.2rem;
    border-radius: 8px;
}



/* Media query for 800px */
@media  screen and (max-width: 800px) {
    h1 {
        font-size: 24px;
    }

    body{
        font-size: 14px;
    }
}

/* Media query for 600px */
@media screen and (max-width: 600px) {
    body{
        background-color: lightyellow;;
    }
    
}

/* Footer */
footer {
    margin-top: 30px;
    text-align: center;
}