﻿.DatabaseFull {
    background-image: url('/images/Backgrounds/homebackground.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

    .DatabaseFull::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.4); /* Dark overlay */
        z-index: -1; /* Ensure the overlay is behind the content */
    }

.Database-Section {
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two equal columns */
    grid-template-rows: auto auto; /* Two rows: one for the top sections, one for the bottom */
    grid-template-areas:
        "Database-Image Database-Details";
    gap: 20px; /* Space between left and right sections */
    align-items: start; /* Align content to the top */
    padding: 10px;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    place-items: center;
}


    .Database-Section h1, .Database-Section p, .Database-Section h3, .Database-Section h2, .Database-Section img {
        position: relative; /* Ensure content appears on top of the overlay */
        z-index: 2;
    }

.Database-Image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    grid-area: Database-Image;
    order: 2; /* Default order for desktop view */
    height: 400px;
    width: 400px;
    align-content: center;
    background-color: rgba(0,0,0,0);
}

.Database-Details {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    grid-area: Database-Details;
    order: 1; /* Default order for desktop view */
}
.StellaDatabase {
    grid-area: StellaDatabase;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap; /* Use flex-wrap to prevent items from overflowing */
    align-items: center;
    justify-content: flex-start;
    margin-top: 50px; /* Adjust as needed */
    background-color: rgb(0, 6, 49, 0.20);
}

.databaseslots {
    display: flex;
    justify-content: center; /* Center the database items horizontally */
    flex-wrap: wrap; /* Allow wrapping for responsiveness */
    gap: 20px; /* Space between individual items */
    width: 100%;
}

.databaseslot1, .databaseslot2, .databaseslot3, .databaseslot4 {
    text-align: center;
    width: 150px; /* Control the width of the database items */
    margin-bottom: 20px; /* Space between slots */
    background-color: rgba(0, 0, 0, 0.5); /* 50% transparent background for each slot */
    padding: 10px;
    border-radius: 10px; /* Optional: Rounded corners */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Optional: Shadow for better visual effect */
    border: 2px solid white;
}

    .databaseslot1 img, .databaseslot2 img, .databaseslot3 img, .databaseslot4 img {
        width: 100%; /* Ensure the image takes up full width of the slot */
        height: auto;
        border-radius: 10px; /* Optional: Rounded corners */
        object-fit: cover; /* Ensure the image maintains its aspect ratio */
    }

.databaseslots {
    display: flex;
    justify-content: space-between; /* Space the database items horizontally */
    width: 100%; /* Take full width of the container */
}

.databaseslot1, .databaseslot2, .databaseslot3, .databaseslot4 {
    text-align: center;
    margin: 0 10px;
}

@media (max-width: 768px) {
    .DatabaseFull {
        grid-template-columns: 1fr; /* Stack sections vertically on small screens */
        grid-template-areas:
            "Database-Details"
            "Database-Image"
            "StellaDatabase"; /* Ensure proper stacking order */
    }
}