/* GOOGLE FONT */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

* { box-sizing: border-box; margin:0; padding:0; }

body {
    font-family: 'Roboto', sans-serif;
    background: #1f1f2e; /* dark mode background */
    color: #fff;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.app-container {
    width: 350px;
    max-width: 90%;
    text-align: center;
}

header h1 {
    color: #ff6eb4; /* pink header */
    margin-bottom: 5px;
}

header p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 20px;
}

/* Flashcard */
.flashcard {
    width: 100%;
    height: 180px;
    perspective: 1000px;
    margin-bottom: 20px;
    cursor: pointer;
}

.card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
}

.card-inner.flip {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backface-visibility: hidden;
    font-size: 18px;
    line-height: 1.4;
}

/* Front */
.card-front {
    background: linear-gradient(135deg, #ffb6c1, #ff69b4); /* pink gradient */
    color: #1f1f2e;
    font-weight: 500;
}

/* Back */
.card-back {
    background: linear-gradient(135deg, #ffe4e1, #ff1493);
    color: #1f1f2e;
    transform: rotateY(180deg);
    font-weight: 700;
}

/* Buttons */
.buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    background: #ff69b4;
    color: #fff;
    transition: all 0.3s ease;
}

.btn:hover {
    background: #ff1493;
    transform: translateY(-2px);
}

/* Add Card */
.add-card {
    background: #2c2c3e;
    padding: 20px;
    border-radius: 15px;
    margin-top: 10px;
}

.add-card input, .add-card textarea {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border-radius: 10px;
    border: none;
    outline: none;
    font-size: 14px;
}

.add-card textarea {
    resize: none;
    height: 60px;
}

.add-btn {
    background: #ff6eb4;
    width: 100%;
}

.add-btn:hover {
    background: #ff1493;
    transform: translateY(-2px);
}
