/* General styles for body and headings */
body {
    background-color: #33292c;
    font-family: sans-serif;
    background-image: url('https://vingerhoedjes.davidnet.net/Assets/noise.png');
    background-repeat: repeat;
    background-blend-mode: overlay;
    margin: 0;
    padding: 0;
    color: white;
}

h1 {
    text-align: center;
    margin: 0;
    padding: 0;
    font-size: 3em;
}

/* Styles for topbar elements */
.topbarcenter {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.topbar {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.topbar2 {
    display: flex;
    gap: 25px;
    height: 40px;
    background-color: rgba(75, 49, 116, 0.5);
    position: absolute;
    right: 20px;
    border-radius: 20px;
    width: fit-content;
}

.topbar2 > button {
    background: none;
    border: none;
}

.image-button img {
    height: 30px;
    width: 30px;
}

/* Flexbox for topbar3 to align img and p side by side */
.topbar3 {
    display: flex;
    gap: 25px;
    height: 40px;
    background-color: rgba(172, 51, 51, 0.5);
    position: absolute;
    left: 15px;
    border-radius: 5px; /* Changed to 5px for a more typical border radius */
    width: 120px;
    align-items: center;
    padding-left: 10px;
    font-family: sans-serif;
    font-weight: bold;
    flex-direction: row;
}

.topbar3 > img {
    height: 20px;
}

.topbar3 > p {
    width: 170px;
    font-size: smaller;
    margin: 0; /* Ensure no default margin pushes the elements */
}

#syncerr {
    display: flex;
    flex-direction: row;
}

.topbar-content {
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

/* Additional styles for grid layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20px, 200px));
    gap: 20px;
    padding: 20px;
    justify-items: center;
    align-items: center;
}

.grid-item {
    width: 180px;
    height: 240px;
}

.grid-item img {
    overflow: hidden; /* Clip content to the dimensions of .grid-item */
    width: 100%; /* Make sure the image fills the .grid-item */
    height: 100%;
    object-fit: cover; /* Maintain aspect ratio and cover the area */
    cursor: pointer;
}

@media screen and (max-width: 300px) {
    .grid-container {
        grid-template-columns: 1fr; /* Vertical layout */
        justify-content: center; /* Center horizontally */
        align-content: center; /* Center vertically */
        justify-self: center;
    }

    .grid-item {
        justify-self: center;
        user-select: none;
    }
}

footer {
    padding-left: 20px;
    width: calc(100% - 20px);
    bottom: 0px;
    background-color: rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

#footcenter {
    text-align: center;
}