@font-face {
    font-family: 'CustomFont1';
    src: url('fonts/m.ttf') format('truetype');
}

@font-face {
    font-family: 'CustomFont2';
    src: url('fonts/arabtype.ttf') format('truetype');
}

@font-face {
    font-family: 'CustomFont3';
    src: url('fonts/BCompset.ttf') format('truetype');
}

.rtl-text {
    background-color: #f0f0f0;
    padding: 4px;
    border: 1px solid #ccc;
    border-radius: 5px;
    text-align: justify;
    direction: rtl;
    line-height: 1.5;
    margin: 0;
    font-size: 16px;
}

/* Style pour le select */
select, option {
    direction: rtl;
    text-align: center;
}

select {
    font-size: 16px;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 2px solid #4a90e2;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

select:focus {
    outline: none;
    border-color: #357ABD;
    box-shadow: 0px 0px 10px rgba(53, 122, 189, 0.3);
}

option {
    font-size: 14px;
    padding: 5px;
    background-color: #f9f9f9;
}

/* Style commun pour le bouton */
button {
    padding: 10px 20px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: #357ABD;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0px);
}

/* Style pour le conteneur */
.container {
    margin: 20px auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 600px) {
    .container {
        width: 90%;
        padding: 15px;
    }

    select, button {
        font-size: 14px;
        padding: 8px;
    }

    h1 {
        font-size: 22px;
    }
}

@media (max-width: 400px) {
    .container {
        width: 100%;
        padding: 10px;
    }

    select, button {
        font-size: 12px;
        padding: 6px;
    }

    h1 {
        font-size: 20px;
    }
}

.top-buttons {
    top: 10px;
    right: 10px;
    display: flex;
    gap: 10px; /* Espacement entre les boutons */
}
