* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #faf7f2, #ead8c3);
    animation: fade 1s ease;
}

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

header {
    background: linear-gradient(45deg, #3E2723, #6D4C41);
    color: white;
    text-align: center;
    padding: 35px;
    box-shadow: 0 5px 20px #999;
}

header h1 {
    margin: 0;
    font-size: 45px;
    color: #FFD180;
}

header p {
    font-size: 20px;
}

footer {
    background: #3E2723;
    color: white;
    text-align: center;
    padding: 20px;
}

button {
    background: linear-gradient(45deg, #3E2723, #A1887F);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 15px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.4s;
}

button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px #D7A86E;
}

.back-btn {
    display: inline-block;
    margin: 30px;
    padding: 15px 35px;
    background: linear-gradient(45deg, #3E2723, #A1887F);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 18px;
    transition: 0.4s;
}

.back-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px #D7A86E;
}

@keyframes up {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.img-skeleton {
    position: relative;
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
}

.img-skeleton::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #EAD8C3 25%, #faf7f2 50%, #EAD8C3 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: inherit;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.img-skeleton.loaded::before {
    opacity: 0;
    pointer-events: none;
}

.img-skeleton img {
    display: block;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.img-skeleton.loaded img {
    opacity: 1;
}
