body {
    font-family: 'Cairo', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(120deg, #2980b9, #8e44ad);
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

header {
    background-color: rgba(51, 51, 51, 0.7);
    color: #fff;
    padding: 0.5em 0;
    text-align: center;
    width: 100%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative; 
}

header h1 {
    font-size: 2em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

main {
    padding: 10px;
    text-align: center;
    width: 80%;
    margin-top: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.frame {
    border: none;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 10px;
    margin-top: 10px;
    border-radius: 15px;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #333;
    font-size: 0.9em;
    transition: box-shadow 0.3s ease; 
}

.frame:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2); 
}

.header-frame {
    border: none;
    background-color: rgba(51, 51, 51, 0.5);
    padding: 10px;
    margin-top: 5px;
    border-radius: 15px;
    width: 95%;
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s ease; 
}

.header-frame:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2); 
}

.program-info {
    font-size: 0.8em;
    line-height: 1.2;
    padding: 5px;
    margin-top: 5px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    width: 95%;
}

.program-info h2 {
    margin-top: 0;
    margin-bottom: 5px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 1.2em; 
}

.program-info p {
    margin-bottom: 0;
    color: #eee;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Buttons Styling */
.buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
    width: 100%;
    position: relative; 
}

.license-button {
    background-color: #3498db; 
    border: none;
    color: white;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    margin: 5px;
    cursor: pointer;
    border-radius: 20px; 
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); 
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.license-button:hover {
    background-color: #2980b9;
    transform: translateY(-3px); 
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4); 
}

/* Floating effect for header */
.float {
    position: absolute;
    width: 100%;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    bottom: -10px;
    left: 0;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    pointer-events: none; 
}

/* Modal Styling */
#licenseModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
}

#licenseModal .modal-content {
    background-color: #f9f9f9; 
    width: 90%; 
    max-width: 700px; 
    margin: 50px auto;
    padding: 30px; 
    border-radius: 20px; 
    position: relative;
    color: #333;
    direction: rtl;
    text-align: right;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); 
    font-family: 'Cairo', sans-serif; 
}

#licenseModal .close-button {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 28px; 
    cursor: pointer;
    color: #777; 
    transition: color 0.3s ease; 
}

#licenseModal .close-button:hover {
    color: #000; 
}

#licenseModal h2 {
    font-size: 2.2em; 
    margin-bottom: 20px;
    color: #2c3e50;
    border-bottom: 3px solid #3498db; 
    padding-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); 
}

#licenseModal ol {
    padding-right: 30px; 
    line-height: 1.8; 
    font-size: 1.2em; 
    color: #34495e;
}

#licenseModal li {
    margin-bottom: 12px;
    padding-right: 10px; 
    position: relative; 
}

/* تصميم متجاوب */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.8em;
    }

    main {
        width: 95%;
    }

    .header-frame {
        width: 95%;
        padding: 8px;
    }

    .program-info {
        width: 100%;
    }

    .license-button {
        width: calc(100% - 10px); 
        margin: 5px;
        padding: 10px;
        font-size: 12px;
    }

    #licenseModal .modal-content {
        width: 95%;
        margin: 25px auto;
    }
}

/* Responsive design for modal */
@media (max-width: 768px) {
    #licenseModal .modal-content {
        width: 95%;
        margin: 20px auto;
        padding: 20px;
    }

    #licenseModal h2 {
        font-size: 1.8em;
    }

    #licenseModal ol {
        font-size: 1em;
        padding-right: 20px;
    }
}