@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

html,
body {
    width: 100%;
    height: 100%;
    font-size: 100%;
    background-color: rgb(255, 255, 255);
    background-image: url('./image/bgmobarka.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    line-height: 1.5;
}

ol,
ul {
    list-style: none;
}

table {
    border-collapse: collapse;
    border-spacing: 0;
}

img,
svg {
    max-width: 100%;
    height: auto;
}

.buttons {
    text-align: center;
    position: fixed;
    top: 30px;
    right: 10px;
    width: 100px;
}

.gs_intro {
    overflow: hidden;
    background: #fff6eb;
    width: 100vw;
    height: 100vh;
}

.gs_intro .layout {
    position: relative;
}

.gs_intro .layout > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg img {
    width: 120vw;
    height: 120vh;
}

img {
    object-fit: cover;
    width: 100vw;
    height: 100vh;
}

.cloud {
    z-index: 9999;
}

.intro-text {
    position: absolute;
    top: 10%;
    text-align: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeIn 2s ease-in-out;
    z-index: 999999999;
    width: 100%;
    padding: 10px 25px;
}

p {
    font-weight: normal;
    margin-top: 15px;
}

.scroll-down {
    margin-top: 20px;
    font-size: 18px;
    animation: bounce 1.5s infinite alternate;
}

/* حركة النص عند الظهور */
@keyframes fadeIn {
    0% { opacity: 0; top: 1% }
    100% { opacity: 1; top: 10% }
}

/* حركة السهم للأسفل */
@keyframes bounce {
    0% { transform: translateY(0); }
    100% { transform: translateY(10px); }
}

/* خلفية رمضانية */
.ramadan-bg {
    background: url('./image/dbg.jpg') no-repeat center center;
    background-size: cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* تأثير إضاءة */
.ramadan-bg::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* صندوق الباب */
.logout {
    position: relative;
    width: 220px;
    height: 240px;
    border: 6px solid #ffffff;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    box-shadow: 0 0 20px rgb(255 255 255 / 50%);
}

/* باب التهنئة */
.logout .doorway {
    position: absolute;
    width: 100%;
    height: 100%;
}

.logout .doorway .door {
    transition: transform 2s ease-in-out;
    transform-origin: 0% 0%;
    width: 100%;
    height: 100%;
    background: url('./image/door.jpg') no-repeat center;
    background-size: cover;
    border-radius: 10px;
}

/* 🔥 زر فتح التهنئة */
.float_btn {
    margin-top: 20px;
}

/* 🌟 زر رمضان المتحرك */
.open-btn {
    position: relative;
    padding: 15px 54px;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    background: linear-gradient(45deg, #00BCD4, #009688);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 15px rgb(37 107 94);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    animation: floating 2s infinite ease-in-out;
}

/* 💫 تأثير إضاءة متحرك على الزر */
.open-btn::before {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 10%, transparent 50%);
    transform: rotate(25deg);
    transition: all 0.8s ease-in-out;
}

/* 💡 عند تمرير الماوس */
.open-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 204, 0, 1);
}

.open-btn:hover::before {
    top: 100%;
    left: 100%;
}

/* 🚀 حركة الاهتزاز (Floating Animation) */
@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

.form {
    padding: 28px 14px;
    border-radius: 5px;
    background: linear-gradient(137deg, #ffffff, #ffffff);
    margin: 49px auto;
    box-shadow: 0 1px 3px 0px #00000036;
    border: 1px solid #fff9f0;
}

input[type="text"] {
    margin: 2px auto 17px;
    width: 60%;
    padding: 12px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

p.usn {
    background: #000000a8;
    padding: 23px 40px;
    border-radius: 9px;
    font-size: 20px;
    color: #fff;
}

.gs_share {
    display: none;
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    padding: 30px;
    text-align: center;
}

.gs_share p {
    margin: 16px;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button {
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

/* ألوان الأزرار */
.x { background-color: #000; } /* X (تويتر) */
.facebook { background-color: #1877F2; }
.whatsapp { background-color: #25D366; }
.telegram { background-color: #0088CC; }
.threads { background-color: #000; }

.button:active {
    transform: scale(0.95);
}

body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
    background: #fff6eb;
}

.gs_intro {
    overflow: hidden;
    width: 100vw;
    height: 98vh;
    position: relative;
    display: none;
}

.gs_intro .layout {
    position: relative;
    height: 100vh;
}

.gs_intro .layout > div {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cloud {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    pointer-events: none;
    animation: floatClouds 8s infinite alternate ease-in-out;
}

@keyframes floatClouds {
    0% { transform: translateY(0px); }
    100% { transform: translateY(20px); }
}

.animated {
    animation: moveUpDown 3s infinite alternate ease-in-out;
}

@keyframes moveUpDown {
    0% { transform: translateY(0px); }
    100% { transform: translateY(15px); }
}

.congrats-section {
    display: none;
    text-align: center;
    padding: 25px;
    background: linear-gradient(to bottom, #fff6eb, #ffe4b2);
    color: #5a3e2b;
    font-size: 20px;
    font-weight: bold;
    border-radius: 15px;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(0);
    transition: transform 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
}

.congrats-section.show {
    transform: translateY(0);
    opacity: 1;
}

.congrats-button {
    padding: 11px 26px;
    font-size: 20px;
    background: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.3s, transform 0.2s;
    display: block;
    margin: 15px auto;
    width: 50%;
    min-width: 220px;
}

.congrats-button:hover {
    background: #218838;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .fns img {
        object-fit: contain;
        width: 100%;
        height: auto;
    }
}
