body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-image: url('https://www.manadork.no/wp-content/uploads/logo.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center center; 
  }

#login {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background: rgba(255, 255, 255, 0.9); /* Optional: Slight transparency */
    padding: 20px;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

#searchResults img, #cardList img {
    width: 200px;
    display: block;
    margin: 10px auto;
}

button {
    margin: 5px;
    padding: 5px 10px;
    cursor: pointer;
}

#cardList {
    display: grid;
    
    grid-template-columns: repeat(5, 1fr); /* Max 5 cards per row */
    gap: 15px;
    justify-content: center;
}

.card {
    background-blend-mode: screen;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 220px; /* Ensures all cards are the same width */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card img {
    width: 100%; /* Ensures the card images scale properly */
    max-width: 200px;
    border-radius: 5px;
}

.note-box { 
    width: 100%;
    padding: 5px;
    margin-top: 8px;
    background: rgba(255, 255, 255, 0.9); /* Slight transparency to fit different backgrounds */
    border-radius: 5px;
    text-align: center;
}

.note-box textarea {
    width: 71%;
    min-height: 50px;
    resize: none;
    border: 1px solid #000000;
    border-radius: 5px;
    padding: 5px;
    font-size: 14px;
}

@media screen and (max-width: 600px) {
    #cardList {
        display: grid;
        width: 600px;
        grid-template-columns: 47.5% 47.5%;
        gap: 5px;
        justify-content: center;
    }
  }
  