﻿/*
Name: Son Doan
Course: ITWP1050
Assignment: Homework 4
*/

/* BODY */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

/* HEADER */
.hero {
    text-align: center;
    padding: 50px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;

    transition: transform 0.6s ease, background 0.6s ease, box-shadow 0.6s ease;
}

.hero:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, #1f2a36, #3d566e);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* HEADER TEXT */
.hero h1 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: transform 0.5s ease, letter-spacing 0.5s ease;
}

.hero:hover h1 {
    transform: translateY(-5px);
    letter-spacing: 2px;
}

.hero p {
    font-weight: 300;
}

/* CONTAINER */
.container {
    width: 80%;
    margin: auto;
}

/* CARDS */
.card {
    background: white;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

/* TEXT */
p {
    font-weight: 300;
}

/* IMAGES */
.images {
    text-align: center;
}

.img {
    width: 280px;
    margin: 10px;
    border-radius: 8px;
    transition: transform 0.4s ease;
}

/* IMAGE EFFECTS */
.rotate:hover {
    transform: rotate(10deg);
}

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

.multi:hover {
    transform: rotate(5deg) scale(1.1) skew(5deg);
}

/* TRANSITION BOX */
.transition-box {
    text-align: center;
    background-color: lightblue;
    padding: 20px;
    margin: 30px auto;
    width: 50%;

    transition: background-color 1s ease, transform 0.5s ease;
}

.transition-box:hover {
    background-color: orange;
    transform: scale(1.05);
}

/* 🔥 COMPARISON GRID */
.compare-grid {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

/* BOXES */
.compare-box {
    flex: 1;
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.compare-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* HEADINGS */
.compare-box h3 {
    text-align: center;
    margin-bottom: 10px;
}

/* LIST */
.compare-box ul {
    padding-left: 20px;
}

.compare-box li {
    margin-bottom: 8px;
    font-weight: 300;
}

/* COLORS */
.physical h3 {
    color: #2c3e50;
}

.mental h3 {
    color: #34495e;
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: #2c3e50;
    color: white;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .compare-grid {
        flex-direction: column;
    }
}