@font-face {
    font-family: 'Cairo';
    src: url('fonts/Cairo-Regular.woff2') format('woff2'),
         url('fonts/Cairo-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Cairo', sans-serif;
    margin: 30px;
    color: white;
    background-image:
        linear-gradient(to top right, rgba(255, 0, 0, 0.2), rgba(255, 0, 0, 0.05)),
        url("images/s.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

h1 {
    color: white;
    text-align: center;
    animation: fadeInDown 1s ease-in-out;
}

h2 {
    color: white;
    margin-top: 30px;
    text-align: right; 
    text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

h2.images-title {
    text-align: center !important;
}

ul, ol {
    padding-right: 20px;
    text-align: right; 
}

p, table, a {
    animation: fadeIn 2s ease;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

table, th, td {
    border: 1px solid #aaa;
    padding: 10px;
    text-align: center;
}

.images-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

img {
    border-radius: 10px;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

img:active {
    transform: scale(1.5);
    transition: transform 0.3s ease;
}

a {
    display: inline-block;
    margin-top: 15px;
    color: #00796b;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    text-shadow: 2px 2px 5px rgba(0,0,0,2.7);
}

a:hover {
    color: #004d40;
}

footer {
    text-align: center;
    color: #ccc;
    margin: 40px 0 20px 0;
    font-size: 14px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
    background: rgba(0, 0, 0, 0.4);
    padding: 10px 0;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.8);
    border-radius: 5px;
}

/* ✅ حركات */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ✅ الخلفيات للنصوص */
p, table {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    margin-bottom: 20px;
}