/* Generell reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

/* Body med gradient bakgrunn */
body {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(135deg, #ff9a9e, #fad0c4, #a18cd1, #fbc2eb);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    color: #333;
}

/* Animert gradient */
@keyframes gradientMove {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}

/* Header og søkefelt */
header {
    margin: 20px 0;
    width: 100%;
    display: flex;
    justify-content: center;
}

header input {
    width: 300px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    outline: none;
}

/* Main container */
main {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px;
}

.container1 {
    width: 90%;
    max-width: 1200px;
    height: 70vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px;
}

/* Kortene for karakterene */
.container1 div {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.container1 div:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.container1 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 10px;
}

.container1 p {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}
