body {
    font-family: 'Arial', sans-serif;
    background-color: #fdf2f2;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-align: center;
    width: 95%;
    max-width: 500px;
    border: 2px solid #d32f2f;
    margin: 10px 10px;
}

h1 { color: #d32f2f; text-transform: uppercase;font-size: 1.6rem;}
h2 {color:#d32f2f; font-size: 1.1rem;}
.ong-xam-wrapper {
    position: relative;
    width: 250px;
    height: 300px; 
    margin: 0 auto 20px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.ong-xam {
    width: 140px;
    height: 200px; 
    background: linear-gradient(to right, #b71c1c, #d32f2f, #b71c1c);
    border-radius: 5px 5px 40px 40px; 
    border: 6px solid #ffc107;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.ong-xam::after {
    content: "";
    position: absolute;
    top: -10px;
    left: -6px;
    width: calc(100% + 12px);
    height: 20px;
    background: #ffc107;
    border-radius: 50%;
}
.logo-ong-xam {
            width: 70%;
            height: auto;
            opacity: 0.9;
            filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3)); /* Tạo độ nổi cho logo */
        }


.la-xam-container {
    position: absolute;
    bottom: 60px; 
    width: 100%;
    height: 280px;
    z-index: 5;
}

.la-xam {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 32px; 
    height: 250px; 
    background: #fff3e0;
    border: 1px solid #d32f2f;
    border-radius: 5px 5px 0 0;
    transform-origin: bottom center;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 15px;
    box-sizing: border-box;
    box-shadow: 2px -2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
}

.la-xam::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid #e53935;
    border-radius: 3px;
    z-index: 1;
}

.la-xam span {
    z-index: 2;
    font-family: 'montserrat';
    font-size: 8px;
    font-weight: 800;
    color: #b71c1c;
    text-transform: uppercase;
    writing-mode: vertical-rl;    
    max-height: 180px; 
    overflow: hidden;
    display: inline-block;
    line-height: 1.2;
    letter-spacing: 1px;
    margin: 0 auto;
}


.la1 { transform: translateX(-50%) rotate(-20deg); }
.la2 { transform: translateX(-50%) rotate(-15deg); }
.la3 { transform: translateX(-50%) rotate(-10deg); }
.la4 { transform: translateX(-50%) rotate(-5deg); }
.la5 { transform: translateX(-50%) rotate(0deg); }
.la6 { transform: translateX(-50%) rotate(5deg); }
.la7 { transform: translateX(-50%) rotate(10deg); }
.la8 { transform: translateX(-50%) rotate(15deg); }
.la9 { transform: translateX(-50%) rotate(20deg); }


.shake { animation: shake 0.12s infinite; }

@keyframes shake {
    0% { transform: translate(2px, 0) rotate(0deg); }
    50% { transform: translate(-2px, 0) rotate(-1deg); }
    100% { transform: translate(2px, 0) rotate(1deg); }
}


button {
    background: #d32f2f;
    color: gold;
    border: 2px solid #8b0000;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

button:hover:not(:disabled) { background: #ff0000; transform: translateY(-3px); }
button:disabled { background: #ccc; cursor: not-allowed; border-color: #999; }

#ket-qua {
    margin-top: 15px;
    padding: 20px;
    background: #fff9f9;
    border-radius: 15px;
    border: 2px dashed #d32f2f;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.hidden { display: none; }
.tho { font-style: italic; color: #444; margin: 15px 0; white-space: pre-line; line-height: 1.6; }
.giai { font-weight: bold; color: #b71c1c; font-size: 18px; }
.so { font-size: 22px; color: #d32f2f; margin: 0; }