body {
    margin: 0;
    font-family: sans-serif;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 400px;
}

.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    padding: 30px;
    margin: 20px 0;
    cursor: grab;
    transition: transform 0.3s ease;
}

.card.dragging {
    opacity: 0.8;
}

.buttons button {
    font-size: 18px;
    padding: 10px 20px;
    margin: 10px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

#result {
    font-weight: bold;
    margin-top: 20px;
}

.card {
    position: relative;
    user-select: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.card.swipe-right {
    transform: translateX(300px) rotate(15deg);
    opacity: 0;
}

.card.swipe-left {
    transform: translateX(-300px) rotate(-15deg);
    opacity: 0;
}

#result {
    font-weight: bold;
    margin-top: 20px;
    min-height: 24px;
    /* <- reserva el espacio */
    transition: opacity 0.2s ease;
}

.correct {
    color: green;
    opacity: 1;
}

.incorrect {
    color: red;
    opacity: 1;
}

#result.hidden {
    opacity: 0;
}

.start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    font-family: sans-serif;
}

.start-screen select,
.start-screen button {
    font-size: 18px;
    padding: 10px;
    margin-top: 10px;
}

.flags {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
}

.flag-btn {
    font-size: 0;
    /* Oculta espacio del texto */
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.flag-btn img {
    width: 64px;
    height: 48px;
    border-radius: 6px;
    border: 2px solid transparent;
    transition: transform 0.2s, border 0.2s;
}

.flag-btn:hover img {
    transform: scale(1.1);
}

.flag-btn.selected img {
    border: 2
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

.popup.hidden {
    display: none;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    max-width: 300px;
}

.share-buttons a {
    display: block;
    margin: 8px 0;
    text-decoration: none;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
    transition: all 0.2s;
}

.share-buttons a:hover {
    background: #f0f0f0;
}

.popup-content button {
    margin-top: 15px;
    padding: 8px 16px;
    font-size: 14px;
    background: #333;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.popup-content button:hover {
    background: #555;
}

.share-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #000;
}

.share-icon img {
    width: 24px;
    height: 24px;
}
.hero-img {
    max-width: 300px;
    width: 80%;
    margin-bottom: 20px;
    border-radius: 12px;
  }
  