body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin: 0;
}

h1 {
    color: #333;
    margin-bottom: 10px;
}

.title-image {
    max-width: 400px;
    max-height: 100px;
    margin-bottom: 10px;
}

.stats {
    display: flex;
    justify-content: space-between;
    width: 400px;
    margin-bottom: 20px;
}

.stats div {
    background-color: #fff;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.stats #timer {
    font-weight: bold;
    transition: color 0.3s;
}

.game-board {
    display: grid;
    grid-template-columns: repeat(4, 100px);
    grid-gap: 10px;
    max-width: 430px;
}

.card {
    height: 100px;
    background-color: #2c3e50;
    border-radius: 5px;
    cursor: pointer;
    font-size: 40px;
    color: white;
    transition: transform 0.5s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-back-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}

.card.flipped .card-back-image {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.card.flipped {
    transform: rotateY(180deg);
    background-color: transparent !important;
}

.card-front-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.card .content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.card-front-emoji-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
}

.card.flipped .content {
    opacity: 1;
    pointer-events: auto;
}

.card.matched {
    opacity: 0.7;
    cursor: default;
}

.win-message {
    margin-top: 20px;
    font-size: 24px;
    color: #27ae60;
    font-weight: bold;
    display: none;
}

.game-over-message {
    margin-top: 20px;
    font-size: 24px;
    color: #e74c3c;
    font-weight: bold;
    display: none;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

button:hover {
    background-color: #2980b9;
}

button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

.admin-button {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 10px 20px;
    background-color: #9b59b6;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    z-index: 1000;
    transition: background-color 0.3s;
}

.admin-button:hover {
    background-color: #8e44ad;
}

.admin-panel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.admin-section {
    background-color: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.admin-section h2 {
    margin-top: 0;
    color: #333;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="color"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-group input[type="file"] {
    padding: 5px;
}

.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 5px;
}

.preview-box {
    width: 100px;
    height: 100px;
    border: 2px solid #ddd;
    border-radius: 5px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.stats-table th,
.stats-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.stats-table th {
    background-color: #3498db;
    color: white;
}

.stats-table tr:hover {
    background-color: #f5f5f5;
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.back-link:hover {
    text-decoration: underline;
}

.btn-save {
    background-color: #27ae60;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.btn-save:hover {
    background-color: #229954;
}

.btn-save:disabled {
    cursor: not-allowed;
    opacity: 0.8;
}

/*
========================================

    🎯 MEMORY GAME - SISTEMA GAME 🎯

    ========================================

    

    👨‍💻 Desarrollado con ❤️ por:

    Nicolás Sagastegui - NASC.DEV 🚀

    

    🌐 Redes Sociales:

    - Instagram Dev: https://www.instagram.com/nasc_dev

    - Instagram Personal: https://www.instagram.com/nico_sagas/

    - Facebook: https://www.facebook.com/nico.sagastegui.7

    - Twitter/X: https://x.com/NASCdev

    - GitHub: https://github.com/nicosagas1

    - TikTok Dev: https://www.tiktok.com/@nasc_dev

    - TikTok Personal: https://www.tiktok.com/@nico_sagas

    

    🌟 Contacto:

    - Web: https://mipropiapaginaweb.onrender.com

    - WhatsApp: https://wa.me/5491146737100

    

    🛠️ Tecnologías:

    - Python 3.x
    - Flask 3.0.0
    - SQLite3
    - bcrypt 4.1.2
    - HTML5 / CSS3 / JavaScript
    - Werkzeug 3.0.1

    

    © 2025 NASC.DEV - Todos los derechos reservados
*/

