* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    background-color: #fff1e5;
    font-family: 'Merriweather', 'Noto Sans', serif;
}

header {
    text-align: center;
    padding-top: 20px;
}

@media screen and (max-width: 600px) {
    header h1 {
        font-size: 18px;
    }
}

header::after {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: #ccc;
    margin: 20px auto;
    border-radius: 1px;
}

main {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 10px;
}

.linkshead {
    height: 100px;
    font-size: 18px;
}
.maincontentspacer {
    height: 20px;
}

.content {
    background: #000;
    color: #fff;
    padding: 20px;
}

.content a {
    color: #fff;
    text-decoration: underline;
}
footer {
    text-align: center;
    padding: 20px 10px;
    font-size: 14px;
    color: #555;
}

footer a {
    color: #555;
    text-decoration: none;
    border-bottom: 1px dashed #555;
}
/* Fade in animation for all text elements */
.fade-in-text {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* Keyframes for fade in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply fade in to common text elements */
h1, h2, h3, h4, h5, h6 {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

h2::before {
    height: 10px;
    content: "";
    display: block;
    width: 100%;
    margin-bottom: 5px;
    background: transparent
}

/* Responsive image design */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.image-container:hover img {
    transform: scale(1.05);
}

/* Image grid layout - Random sizes */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-auto-rows: 200px;
    gap: 15px;
    margin: 30px 0;
    padding: 20px 0;
}

.image-grid .image-container {
    margin: 0;
    position: relative;
}

/* Random size variations */
.image-grid .image-container:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.image-grid .image-container:nth-child(2) {
    grid-column: span 1;
    grid-row: span 1;
}

.image-grid .image-container:nth-child(3) {
    grid-column: span 1;
    grid-row: span 2;
}

.image-grid .image-container:nth-child(4) {
    grid-column: span 2;
    grid-row: span 1;
}

.image-grid .image-container:nth-child(5) {
    grid-column: span 1;
    grid-row: span 1;
}

.image-grid .image-container:nth-child(6) {
    grid-column: span 1;
    grid-row: span 1;
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

.usedlib {
    list-style: none;
}

.usedlib li {
    padding: 5px 0;
}
@media screen and (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-auto-rows: 150px;
        gap: 12px;
        margin: 20px 0;
        padding: 15px 0;
    }
    
    /* Adjust spans for tablet */
    .image-grid .image-container:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .image-grid .image-container:nth-child(3) {
        grid-column: span 1;
        grid-row: span 1;
    }
    
    .image-grid .image-container:nth-child(4) {
        grid-column: span 1;
        grid-row: span 2;
    }
}

@media screen and (max-width: 600px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 120px;
        gap: 10px;
        margin: 15px 0;
        padding: 10px 0;
    }
    
    /* Reset spans for mobile - simpler layout */
    .image-grid .image-container:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }
    
    .image-grid .image-container:nth-child(2),
    .image-grid .image-container:nth-child(3),
    .image-grid .image-container:nth-child(4),
    .image-grid .image-container:nth-child(5),
    .image-grid .image-container:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

@media screen and (max-width: 480px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 100px;
        gap: 8px;
    }
    
    .image-container {
        border-radius: 6px;
    }
    
    .image-container img {
        border-radius: 6px;
    }
    
    /* Even simpler mobile layout */
    .image-grid .image-container:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }
    
    .image-grid .image-container:nth-child(2),
    .image-grid .image-container:nth-child(3),
    .image-grid .image-container:nth-child(4),
    .image-grid .image-container:nth-child(5),
    .image-grid .image-container:nth-child(6) {
        grid-column: span 1;
        grid-row: span 1;
    }
}

h2::after {
    content: "";
    display: block;
    width: 130px;
    height: 2px;
    background-color: #000;
    margin: 10px 0;
    border-radius: 1px;
}
p {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

a {
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    text-decoration: none;
    color: #000;
    transition: color 0.3s ease;
    text-decoration: underline;
}

a:hover {
    color: #0056b3;
}

/* Stagger animation delays for multiple elements */
.fade-in-text:nth-child(1) { animation-delay: 0s; }
.fade-in-text:nth-child(2) { animation-delay: 0.2s; }
.fade-in-text:nth-child(3) { animation-delay: 0.4s; }
.fade-in-text:nth-child(4) { animation-delay: 0.6s; }
.fade-in-text:nth-child(5) { animation-delay: 0.8s; }
.fade-in-text:nth-child(6) { animation-delay: 1s; }

::selection {
    background-color: #000;
    color: #fff;
}