body {
    margin: 0;
    min-height: 100vh; /* Ensure minimum height, allow growth */
    font-family: 'Arial', sans-serif;
    background: url('/images/notus.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Align to top to show first row */
    align-items: center;
    color: #fff;
    overflow-y: auto; /* Enable vertical scrolling */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for readability */
    z-index: -1;
}

.title {
    font-size: 100px;
    font-family: 'Impact', sans-serif;
    text-transform: uppercase;
    text-shadow: 4px 4px 8px #000;
    text-align: center;
    padding: 20px;
    color: <%= color %>; /* Dynamic color based on $NOTUS holding */
}

.menu-button {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    color: #00ff00;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

.menu {
    display: none;
    position: absolute;
    top: 50px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    padding: 10px;
    list-style: none;
    z-index: 10;
}

.menu li a {
    color: #00ff00;
    text-decoration: none;
}

.back-arrow {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    color: #00ff00;
    text-decoration: none;
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%; /* Full width */
    max-width: 1200px; /* Optional max width for large screens */
    box-sizing: border-box; /* Include padding in width */
    margin-top: 50px; /* Space for back arrow */
}

.nft-item {
    text-align: center;
}

.nft-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s;
    border: 5px solid gray; /* Initial gray frame until color is fetched */
}

.nft-item img:hover {
    transform: scale(1.05);
}

.nft-item a {
    color: #00ff00;
    text-decoration: none;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px;
    text-align: center;
    font-size: 18px;
    z-index: 10;
}

.footer a {
    color: #00ff00;
    text-decoration: none;
    margin: 0 15px;
}

.footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .title {
        font-size: 60px;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .back-arrow {
        font-size: 18px;
        top: 5px;
        left: 5px;
    }
    .menu-button {
        font-size: 18px;
        top: 5px;
        left: 5px;
    }
    .menu {
        top: 40px;
        left: 5px;
    }
    .footer {
        font-size: 14px;
    }
    .footer a {
        margin: 0 10px;
    }
}