body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #000000;
    color: #ffffff;
    margin: 0;
    padding: 20px;
    text-align: center;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

h1 {
    color: #ffffff;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.istruzioni {
    background-color: rgba(40, 40, 40, 0.9);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
}

#domandaInput {
    width: 85%;
    height: 70px;
    padding: 15px;
    border: 2px solid #555;
    border-radius: 8px;
    font-size: 16px;
    margin-top: 15px;
    resize: vertical;
    background-color: #1a1a1a;
    color: #ffffff;
    transition: border-color 0.3s;
}

#domandaInput:focus {
    border-color: #3498db;
    outline: none;
}

#domandaInput::placeholder {
    color: #888;
}

.pulsanti {
    margin-bottom: 40px;
}

#estraiBtn, #azzeraBtn {
    background: linear-gradient(145deg, #3498db, #2980b9);
    color: white;
    padding: 16px 35px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin: 0 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

#estraiBtn:hover, #azzeraBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

#azzeraBtn {
    background: linear-gradient(145deg, #e74c3c, #c0392b);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

#azzeraBtn:hover {
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.tavola {
    position: relative;
    width: 700px;
    height: 700px;
    margin: 40px auto;
    border: 2px dashed #444;
    border-radius: 50%;
    background-color: rgba(30, 30, 30, 0.7);
}

.posizione {
    position: absolute;
    width: 140px;
    text-align: center;
    transform: translate(-50%, -50%);
}

#passato {
    left: 50%;
    top: 15%;
}

#presente {
    left: 85%;
    top: 50%;
}

#futuro {
    left: 50%;
    top: 85%;
}

#inconscio {
    left: 15%;
    top: 50%;
}

#destino {
    left: 50%;
    top: 50%;
    z-index: 10;
}

.carta {
    width: 90px;
    height: 135px;
    margin: 0 auto;
    background-color: #2c3e50;
    border: 3px solid #7f8c8d;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s;
}

.carta:hover {
    transform: scale(1.05);
}

.etichetta {
    margin-top: 12px;
    font-weight: bold;
    color: #ffffff;
    font-size: 14px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px 8px;
    border-radius: 6px;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.descrizione {
    margin-top: 10px;
    font-size: 12px;
    color: #dddddd;
    height: 35px;
    overflow: hidden;
    line-height: 1.3;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 6px;
    border-radius: 5px;
}

.lettura {
    background-color: rgba(40, 40, 40, 0.9);
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.1);
    text-align: left;
    margin-top: 40px;
    border: 1px solid #444;
}

#domanda-mostrata {
    font-style: italic;
    color: #bbbbbb;
    margin-bottom: 25px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.4);
    border-left: 5px solid #3498db;
    border-radius: 5px;
}

#lettura-contenuto {
    line-height: 1.7;
    color: #eeeeee;
}

#lettura-contenuto strong {
    color: #3498db;
    text-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.messaggio-errore {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 14px;
    display: none;
}

.errore {
    border-color: #e74c3c !important;
    background-color: rgba(231, 76, 60, 0.1) !important;
}

.approfondimenti {
    background-color: rgba(40, 40, 40, 0.9);
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    border: 1px solid #333;
}

.approfondimenti h3 {
    color: #3498db;
    margin-bottom: 15px;
}

.approfondimenti p {
    margin-bottom: 15px;
    line-height: 1.5;
}

.facebook-btn, .messenger-btn {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px 5px;
    border-radius: 8px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.facebook-btn {
    background: linear-gradient(145deg, #3b5998, #2d4373);
    color: white;
}

.messenger-btn {
    background: linear-gradient(145deg, #0084ff, #0066cc);
    color: white;
}

.facebook-btn:hover, .messenger-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}


@media (max-width: 768px) {
    .container {
        padding: 20px;
        margin: 10px;
    }
    
    .tavola {
        width: 500px;
        height: 500px;
    }
    
    .posizione {
        width: 120px;
    }
    
    .carta {
        width: 70px;
        height: 105px;
    }
    
    .descrizione {
        font-size: 11px;
        height: 32px;
    }
}

@media (max-width: 550px) {
    .tavola {
        width: 400px;
        height: 400px;
    }
    
    .posizione {
        width: 100px;
    }
    
    .carta {
        width: 60px;
        height: 90px;
    }
    
    .etichetta {
        font-size: 12px;
    }
    
    .descrizione {
        font-size: 10px;
        height: 30px;
    }
}