/* Grunnleggende styling */
body {
    background-color: #f5f5f5;
    font-family: Georgia, serif;
    margin: 0;
    padding: 0;
}

/* Hovedinnhold */
#hoved {
    width: 80%;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    border: 1px solid #cccccc;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* Titler */
h1, h2 {
    font-family: Arial, sans-serif;
    text-align: center;
    color: #333;
}

/* Grid-layout for steinkort */
#steinListe {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    justify-content: center;
}

/* Kort-stil for hver stein */
.stein {
    background-color: #c9d6d6;
    border: 2px solid #7a9a99;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.1);
}

.stein:hover {
    transform: scale(1.05);
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.2);
}

.stein h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 5px;
}

.stein p {
    font-size: 14px;
    color: #555;
    margin: 5px 0;
}

/* Sletteknapp */
.slett-knapp {
    background-color: #CC0000;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 12px;
    margin-top: 10px;
}

.slett-knapp:hover {
    background-color: darkred;
}

/* Form-stil */
form {
    background: white;
    padding: 25px;
    margin: auto auto;
    max-width: 400px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

input, textarea, button {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 6px;
}

button {
    background: #5588AA;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #446688;
}

@media (max-width: 600px) {
    #hoved {
        width: 95%;
        padding: 15px;
    }

    #steinListe {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}
