* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    direction: rtl;
}

body {
    background-color: #f4f4f9;
    color: #333;
    text-align: center;
}

.container {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #ff7f50;
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    background-color: #ff7f50;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #e0664f;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 80%;
    max-width: 400px;
}

.close-popup {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 24px;
    cursor: pointer;
}

.thinking {
    display: none;
    font-size: 20px;
    font-weight: bold;
    color: #0077cc;
}

.result-content {
    background-color: #fff5e1;
}

.tips {
    margin-top: 30px;
    background: #e6f7ff;
    padding: 15px;
    border-radius: 10px;
}

.tips h2 {
    color: #0077cc;
}

.tips ul {
    text-align: right;
    margin: 10px 20px;
}

.tips li {
    margin-bottom: 5px;
}

footer {
    margin-top: 20px;
    font-size: 14px;
    color: #777;
}


div#questionContainer,p#resultText {
    padding-bottom: 5%;
}