/* =========================================
Name: Klajdi Bicaku
Course: ITWP 1050
Assignment: Homework 5
========================================= */

body {
font-family: Arial, sans-serif;
margin: 20px;
background-color: #f4f4f4;
color: #222;
}

header {
text-align: center;
}

h1 {
font-size: 2.5em;
transition: transform 0.5s;
}

h1:hover {
transform: scale(1.2);
}

h2 {
text-align: center;
margin-top: 20px;
}

p {
line-height: 1.6;
transition: color 0.3s;
}

p:hover {
color: #0077cc;
}

.images {
display: flex;
gap: 20px;
justify-content: center;
flex-wrap: wrap;
}

img {
width: 100%;
max-width: 300px;
height: auto;
transition: transform 0.5s;
border-radius: 8px;
}

img:hover {
transform: scale(1.1);
}

@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}

main {
animation: fadeIn 2s ease-in-out;
}

.grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 10px;
margin-top: 20px;
}

.box {
background-color: #0077cc;
color: white;
padding: 20px;
text-align: center;
border-radius: 8px;
}

/* MEDIA QUERY 800px */
@media (max-width: 800px) {
h1 {
font-size: 1.8em;
}

body {
font-size: 0.9em;
}

.grid {
grid-template-columns: repeat(2, 1fr);
}
}

/* MEDIA QUERY 600px */
@media (max-width: 600px) {
body {
background-color: #dbeafe;
}

.grid {
grid-template-columns: 1fr;
}
}

footer {
text-align: center;
margin-top: 20px;
font-size: 0.9em;
}