/* General Body Styles */
body {
    background-color: #000000;
    color: white;
    font-family: Arial, sans-serif;
    margin: auto;
    padding: 0;
    overflow: auto;
    min-height: 100vh;
    padding-left: 200px;
    padding-right: 200px;
    max-width: 500px;
    border: solid;
    border-color: #1dff00;
    margin-top: 50px;
}

/* Header Section */
.header {
    grid-area: header;
    background-color: #000;
    color: #ffff00;
    text-align: center;
    padding: 22px;
}

/* Footer */
.footer {
    grid-area: footer;
    background-color: #000;
    text-align: center;
    padding: 0px;
}

/* Box Styles */
.box {
    background-color: #666;
    background-image: url("images/stars.gif");
    padding: 0px;
    margin-bottom: 20px;
    margin-top: 20px;
    text-align: center;
    align-content: center;
}
   
.grid-box {
    border: solid;
    border-radius: 5px;
    border-color: #13ff00;
    background-color: black;
    padding: 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.directory {
    background-color: #666;
    background-image: url("images/stars.gif");
    padding: 5px;

  display: flex;
  flex-wrap: wrap;
    justify-content: center;
    gap: 5px;

    width: fit-content;
    margin: 0 auto; /* stay centered */
}

.directory img {
    transition: transform 0.2s ease;
}
.directory img:hover {
    transform: scale(1.3);
}
@media (max-width: 1100px) {
    .directory {
        grid-auto-flow: row; /* stack */
        justify-items: center; /* keep items centered */
    }
}

/* Side-by-side alignment */
.content-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.content-row .box {
    flex: 1;
    max-width: 400px;
}
.content-row .directory {
    flex: 0 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "content"
            "footer";
        padding-left: 20px;
        padding-right: 20px;
    }

    .right {
        display: none;
    }

    .content-row {
        flex-direction: column;
        align-items: center;
    }
}