﻿/* General */

* {
    box-sizing: border-box;
}

body {
    background: linear-gradient( 135deg, rgba(63, 42, 28, 0.9), rgba(139, 111, 71, 0.8), rgba(27, 59, 111, 0.85) ), url('../images/bg.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    font-family: Arial, sans-serif;
}


/* Main Container */

.container {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    width: 100%;
    max-width: 1100px;
    padding: 60px 50px;
    margin: auto;
    border-radius: 25px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Logos */

.logos-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 35px;
    gap: 20px;
}

    .logos-container img {
        max-height: 85px;
        max-width: 45%;
        object-fit: contain;
    }


/* Titles */

#body_content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

    #body_content h1,
    #body_content h2 {
        color: #1b3b6f;
        font-weight: 800;
        width: 100%;
    }

    #body_content h1 {
        font-size: 36px;
        margin-bottom: 15px;
    }

    #body_content h2 {
        font-size: 30px;
        margin-bottom: 15px;
    }

    #body_content p.subtitle {
        color: #555;
        font-size: 18px;
        margin-bottom: 25px;
        font-weight: 600;
    }


/* Welcome Section */

#welcome_section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 750px;
    margin: 0 auto;
}

    #welcome_section .welcome_container,
    #welcome_section .welcome-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        width: 100%;
    }

    #welcome_section #start_button {
        position: static;
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        color: #FF6600;
        border: 3px solid transparent;
        border-image: linear-gradient( to right, #1b3b6f 50%, #00732f 50% ) 1;
    }

        #welcome_section #start_button span {
            color: #FF6600;
        }


/* Buttons */

.lang-btn {
    position: static;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    font-size: 1.4rem;
    font-weight: bold;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
    background: rgba(255, 255, 255, 0.95);
}

    .lang-btn:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    }

    .lang-btn:active {
        transform: translateY(-2px);
    }


/* Language Selection */

#lang_section {
    width: 100%;
}

    #lang_section .language-container {
        display: flex;
        justify-content: center;
        align-items: stretch;
        gap: 30px;
        width: 100%;
        max-width: 750px;
        margin: 0 auto;
    }

    #lang_section .lang-btn {
        flex: 1;
        min-width: 0;
        min-height: 130px;
        padding: 25px;
        background: rgba(255, 255, 255, 0.96);
        border-radius: 18px;
        font-size: 1.5rem;
        font-weight: 700;
    }

    #lang_section .english-btn {
        color: #012169;
        border: 3px solid #012169;
    }

    #lang_section .arabic-btn {
        color: #00732f;
        border: 3px solid #00732f;
    }

    #lang_section .lang-btn span {
        color: inherit;
        white-space: nowrap;
    }

    #lang_section .flag {
        width: 60px;
        height: 40px;
        flex-shrink: 0;
        object-fit: cover;
        border-radius: 6px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(0, 0, 0, 0.15);
    }


/* Footer */

.container > hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 30px 0 20px;
}

#footer {
    width: 100%;
    text-align: center;
}

    #footer p {
        color: #555;
        font-size: 14px;
    }


/* Responsive */

@media (max-width: 600px) {
    body {
        padding: 12px;
    }

    .container {
        padding: 30px 20px;
    }

    .logos-container img {
        max-height: 65px;
    }

    #body_content h1 {
        font-size: 1.3rem;
    }

    #body_content h2 {
        font-size: 1.2rem;
    }

    #body_content p.subtitle {
        font-size: 1rem;
    }

    #lang_section .language-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    #lang_section .lang-btn {
        width: 100%;
        max-width: 300px;
        min-height: 90px;
        font-size: 1.1rem;
        padding: 12px 20px;
    }

    #lang_section .flag {
        width: 45px;
        height: 30px;
    }
}


.marquee-box {
    width: 100%;
    overflow: hidden;
    direction: ltr;
}

.moving-text {
    display: block;
    width: max-content;
    white-space: nowrap;
    animation: moveText 6s ease-in-out infinite alternate;
}

@keyframes moveText {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(100vw - 100%));
    }
}

.cancel-btn {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 22px;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(242, 153, 74, 0.4);
    display: inline-block;
    text-decoration: none;
    margin-top: 15px;
    width: 200px;
}

    .cancel-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(220, 38, 38, 0.5);
    }

.pdf-content {
    width: 100%;
    height: 100%;
    min-height: 700px;
    border: none;
    background: #fff;
}
