* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #181818;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    margin: 20px 0;
}

.header-title {
    font-size: 2rem;
    font-weight: bold;
    color: #e60023;
    background: linear-gradient(90deg, #e60023, #ff4b2b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-top: 5px;
}

.form-container {
    background-color: #282828;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
}

.add-card-title {
    font-size: 1.5rem;
    color: #ff4b2b;
    text-align: center;
    margin-bottom: 15px;
}

form input, form button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
}

form input {
    background-color: #333;
    color: #fff;
}

form input::placeholder {
    color: #777;
}

.submit-button {
    background-color: #e60023;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px rgba(230, 0, 35, 0.5);
}

.submit-button:hover {
    background-color: #ff4b2b;
    box-shadow: 0px 6px 12px rgba(255, 75, 43, 0.6);
}

.cards-wrapper {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    width: 100%;
}

.container {
    width: 300px;
    background-color: #222;
    color: white;
    border-radius: 8px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 20px rgba(255, 75, 43, 0.5);
}

.image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.capsule {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
}

.text {
    padding: 15px;
}

.text h1 {
    font-size: 1rem;
    font-weight: bold;
    margin: 0;
    color: #fff;
}

.text p {
    font-size: 0.85rem;
    color: #ccc;
    margin: 5px 0 0;
}

footer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: #777;
}

@media (max-width: 600px) {
    .header-title {
        font-size: 1.6rem;
    }

    .form-container, .container {
        width: 90%;
    }
}
