@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap");

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: "Tajawal", sans-serif;
    direction: rtl;
}

.header-text {
    background-color: #eef2ef;
    text-align: center;
    padding: 8px 0px;
}

.container2 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background-color: #eef2ef;
}

.card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    margin: 10px;
    flex: 1 1 300px;
    max-width: 300px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

.card img {
    width: 100%;
    height: auto;
}

.content {
    padding: 15px;
    text-align: right;
    /* To align text to the right */
}

h3 {
    color: #8b4513;
    font-size: 1.2em;
    margin: 0 0 10px 0;
}

p {
    font-size: 0.9em;
    color: #333;
}

.button-1 {
    background-color: rgb(146, 64, 64);
    color: white;
    border: none;
    padding: 10px 30px;
    cursor: pointer;
    font-size: 0.9em;
    margin-top: 20px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    border-radius: 8px;
}

.button-1:hover {
    background-color: white;
    color: rgb(146, 64, 64);
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
    }
}

/* Media queries for responsiveness */
@media (min-width: 768px) {
    .card {
        max-width: 405px;
        /* Adjust maximum width for larger screens */
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Wrapper to center the alert in the middle of the screen */
.success1-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed; /* Fixed positioning to stay in the center of the screen */
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(
        0,
        0,
        0,
        0.5
    ); /* Optional: semi-transparent background */
    z-index: 9999; /* Ensure it's on top of other content */
}

/* Alert styling */
.success1 {
    background-color: #d4edda; /* Light green background */
    border: 1px solid #c3e6cb; /* Border with a darker green */
    color: #155724; /* Dark green text */
    padding: 15px 30px; /* Padding inside the alert */
    border-radius: 4px; /* Rounded corners */
    font-size: 16px; /* Font size */
    text-align: center; /* Center the text inside */
    display: flex; /* Flex layout for icon and text */
    align-items: center; /* Center icon and text vertically */
    position: relative; /* To position the close button */
    flex-direction: column;
    gap: 10px;
}

/* Close button styling */
.close-btn {
    background: none; /* No background */
    border: none; /* No border */
    color: #155724; /* Same color as the alert text */
    font-size: 20px; /* Larger size for visibility */
    font-weight: bold; /* Bold text */
    position: absolute; /* Positioned inside the alert */
    top: 5px; /* Position from top */
    right: 22px; /* Position from right */
    cursor: pointer; /* Pointer cursor */
}

.close-btn :hover {
    background-color: #d4edda;
}

/* Icon styling */
.success1 i {
    margin-right: 10px; /* Space between icon and text */
    font-size: 54px; /* Icon size */
}

/* Bold and styled "Well done!" */
.success1 span {
    font-weight: bold; /* Bold "Well done!" */
    margin-right: 5px; /* Space between "Well done!" and message */
}

.option {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.success1 p {
    font-weight: 700;
}

.btn-suc {
    background-color: rgb(146, 64, 64);
    color: white;
    border: none;
    padding: 10px 30px;
    cursor: pointer;
    font-size: 0.9em;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    border-radius: 8px;
}

.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 87.27%;
    /* Aspect ratio (height/width * 100) 480/550 = 0.8727 */
    height: 0;
    overflow: hidden;
}

.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
