
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    background-color: #090909;
    color: #f4f4f4;
    font-family: 'Montserrat', sans-serif; 
    font-size: 16px;
    display: flex;
    flex-direction: column;
}

.main-container {
    flex: 1; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-content {
    display: flex;
    flex-direction: row;
    gap: 4rem; 
    align-items: center;
    max-width: 1200px;
    width: 90%;
    justify-content: center;
}

.graphics-group {
    display: flex;
    gap: 1.5rem; 
    align-items: center;
}

.rotating-cd {
    width: 300px; 
    height: 300px;
    object-fit: cover;
}

.text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
}

.text-group p {
    margin: 0.5rem 0;
}

.domain-name {
    font-size: 4rem;
    font-weight: bold;
    margin: 1rem 0;
}

.footer {
    width: 100%;
    padding: 2rem;
    position: relative;
    box-sizing: border-box;
}

.footer p {
    font-size: 1rem;
    margin: 0;
    text-align: left;
    color: rgba(254, 254, 254, 0.3);
}

@media (max-width: 768px) {
    .center-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .domain-name {
        font-size: 2.5rem;
    }

    .rotating-cd {
        width: 200px;
        height: 200px;
    }
}

/* Subpage image gallery (1-4 images, arranged automatically) */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 2rem;
    justify-content: center;
    justify-items: center;
    align-items: center;
}

.image-gallery > :only-child {
    --tile: min(80vw, 65vh);
    grid-column: 1 / -1;
}

.image-gallery > :first-child:nth-last-child(2),
.image-gallery > :first-child:nth-last-child(2) ~ * {
    --tile: min(42vw, 60vh);
}

.image-gallery > :first-child:nth-last-child(3),
.image-gallery > :first-child:nth-last-child(3) ~ * {
    --tile: min(29vw, 50vh);
    grid-row: 1;
}

.image-gallery > :first-child:nth-last-child(n+4),
.image-gallery > :first-child:nth-last-child(n+4) ~ * {
    --tile: min(40vw, 34vh);
}

.image-gallery img,
.image-gallery video {
    display: block;
    width: var(--tile);
    height: var(--tile);
    object-fit: contain;
}

@media (max-width: 768px) {
    .image-gallery {
        grid-template-columns: auto;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .image-gallery > :first-child:nth-last-child(n+2),
    .image-gallery > :first-child:nth-last-child(n+2) ~ * {
        grid-row: auto;
    }

    .image-gallery img,
    .image-gallery video {
        width: auto;
        height: auto;
        max-width: min(85vw, 480px);
        max-height: 75vh;
    }
}

::-moz-selection { /* Code for Firefox */
  background: #74537d;
}

::selection {
  background: #74537d;
}
