* { -webkit-tap-highlight-color: rgba(255, 255, 255, 0); transition: 0.1s ease-in; margin: 0; padding: 0; font-family: 'Tajawal'; } #preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: #2c3e50; /* Solid background color */ display: flex; justify-content: center; align-items: center; z-index: 999999; /* Ensure it is on top of everything */ } .loader { display: flex; justify-content: space-between; align-items: flex-end; width: 80px; /* Width of the loader */ } .dotss { width: 15px; /* Size of each dot */ height: 15px; /* Size of each dot */ border-radius: 50%; background-color: #3498db; /* Dot color */ animation: bounce 0.6s infinite alternate; /* Bouncing animation */ } .dotss:nth-child(2) { animation-delay: 0.2s; /* Delay for the second dot */ } .dotss:nth-child(3) { animation-delay: 0.4s; /* Delay for the third dot */ } @keyframes bounce { 0% { transform: translateY(0); } 100% { transform: translateY(-30px); /* Height of the bounce */ } } body { background-color: #f9f9fa; /* Light mode background color */ color: #d4caca; /* Light mode text color */ transition: background-color 0.3s ease, color 0.3s ease; overflow-x: hidden; /* Prevent horizontal scroll */ margin: 0; padding: 0; height: 100%; /* Ensures the body and html take up the full height of the viewport */ width: 100%; } header { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; background-image: linear-gradient(rgb(246, 250, 255), rgb(255, 255, 255), rgba(247, 247, 247, 0.507)); /* Header background color */ color: #fff; /* Header text color */ box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); position: sticky; top: 0; border-radius: 0 0 12px 12px; z-index: 10000; } :root { --button-background: dodgerblue; --button-color: white; --dropdown-highlight: dodgerblue; --dropdown-width: 160px; --dropdown-background: white; --dropdown-color: black; } .buttone { display: flex; /* Changed to flex for better centering */ justify-content: center; align-items: center; /* Center vertically */ width: 100%; height: 100%; } .buttone i { color: #0084ff; font-weight: 400; font-size: 1.5em; /* Adjust icon size */ } .dropdown { width: 40px; /* Increased size for better touch targets */ height: 40px; /* Increased size for better touch targets */ border-radius: 50%; border: none; font-weight: bolder; display: flex; /* Changed to flex for better centering */ justify-content: center; align-items: center; /* Center vertically */ background-color: #0082fc25; box-shadow: 0px 0px 2px #309bff; cursor: pointer; /* Change cursor to pointer for better UX */} /* Media query for mobile devices */ @media (max-width: 600px) { .dropdown { width: 40px; /* Adjusted size for mobile */ height: 40px; /* Adjusted size for mobile */ } .buttone { width: 100%; /* Ensure full width on mobile */ height: 100%; /* Ensure full height on mobile */ } .buttone i { font-size: 1.2em; /* Slightly smaller icon on mobile */ } } .dropdown summary { display: flex; /* Ensure summary is also a flex container */ justify-content: center; /* Center the content */ align-items: center; /* Center the content vertically */ outline: none; padding: 0; /* Remove default padding */ margin: 0; /* Remove default margin */ width: 100%; /* Ensure it takes full width */ height: 100%; /* Ensure it takes full height */ } .dropdown > summary::-webkit-details-marker { display: none; /* Hide the default marker */ } .dropdown summary:focus { outline: none; } .dropdown summary:focus { outline: none; } .dropdown ul { position: absolute; margin: 20px 0 0 0; padding: 20px 0; width: var(--dropdown-width); left: 50%; margin-left: calc((var(--dropdown-width) / 2) * -1); margin-left: 30px; box-sizing: border-box; z-index: 9000; background: var(--dropdown-background); border-radius: 6px; list-style: none; } .dropdown ul li { padding: 0; margin: 0; } .dropdown ul li a:link, .dropdown ul li a:visited { display: inline-block; padding: 10px 0.8rem; width: 100%; box-sizing: border-box; color: var(--dropdown-color); text-decoration: none; } /* Dropdown triangle */ .dropdown ul::before { content: ' '; position: absolute; width: 0; height: 0; top: -10px; left: 50%; margin-left: -10px; margin-left: 40px; border-style: solid; border-width: 0 10px 10px 10px; border-color: transparent transparent var(--dropdown-background) transparent; } /* Close the dropdown with outside clicks */ .dropdown>summary::before { display: none; } .dropdown[open]>summary::before { content: ' '; display: block; position: fixed; top: 0; right: 0; left: 0; bottom: 0; z-index: 1; } header .site-name { font-size: 1.5em; font-weight: bold; color: #2086f3; font-size: bolder; } #mode-toggle { width: 40px; /* Increased size for better touch targets */ height: 40px; /* Increased size for better touch targets */ border-radius: 50%; border: none; font-weight: bolder; display: flex; /* Changed to flex for better centering */ justify-content: center; align-items: center; /* Center vertically */ background-color: #0082fc25; box-shadow: 0px 0px 2px #309bff; cursor: pointer; /* Change cursor to pointer for better UX */ -webkit-text-fill-color: #0084ff;} #mode-icon { text-align: center; justify-content: center; } .topic-linkoz { font-weight: 400; font-size: large; } .topic-linkoz.activenow { background-color: #b9dcfd; -webkit-text-fill-color: #007ef3; font-weight: 600; } .mergg { margin: auto; margin-bottom: 200px; text-align: center; } .main-content { margin: auto; width: 96%; margin-bottom: 100px; } .section { margin-bottom: 20px; } .section h2 { font-size: 1.5em; margin-bottom: 10px; color: #353535; /* Section title color */ } .dark-mode .section h2 { color: #c7e4ff; } .dark-mode header { background-image: linear-gradient(#2222298c, rgba(67, 67, 83, 0.541)); /* Header background color */ box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); backdrop-filter: blur(9px); } .dark-mode footer .sc-bottom-bar { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); background-image: radial-gradient(circle at 36px 6px, rgba(0, 140, 255, 0.178) 36px, #43b7fa1e 37px); } /* Topics */ .topics .topic-links { display: flex; overflow-x: auto; overflow-x: scroll; margin: auto; } .topic-link { flex: 0 0 auto; margin: 10px; padding: 5px 10px; background: #ddecfa; /* Topic link background color */ color: #0084ff; /* Topic link text color */ border-radius: 20px; font-size: 0.8em; font-weight: 600; text-decoration: none; scroll-behavior: smooth; transition: 0.4s; transition: background-color 0.7s; } .dark-mode .topic-link { color: #86bdf0; /* Topic link text color */ background-image: linear-gradient(#2f2f36, rgba(67, 67, 83, 0.603)); /* Header background color */ } .topic-link:last-child { margin-right: 0; } .topic-link:hover { color: #ffffff; /* Topic link text color */ background-image: linear-gradient(#0084ff, rgb(10, 141, 218), #0253eb); /* Darker shade of primary color */ } .dark-mode .topic-link:hover { color: #ffffff; /* Topic link text color */ background: rgba(255, 255, 255, 0); } .topic-link.activenow { color: #ffffff; /* Topic link text color */ background-image: linear-gradient(#0084ff, rgb(10, 141, 218), #0253eb); /* Darker shade of primary color */ } /* Categories */ .categories .category-cards { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 50px; gap: 20px; } .categories { width: 100%; margin: auto; } .category-card{ padding-bottom: 10px; border-radius: 8px; box-shadow: 0 6px 4px rgba(0, 0, 0, 0.295); cursor: pointer; animation: zoomIn 0.5s ease-in-out; color:#39f548; max-width: 420px; background: linear-gradient(to bottom, rgba(255, 0, 0, 0),rgba(255, 0, 0, 0),rgba(255, 0, 0, 0), rgba(0, 140, 255, 0.123)); width:90%; margin: auto; } .category-card img { width:100%; max-height:200px; border-radius: 8px; margin:0; } .category-card .category-info { padding: 10px; } .category-card .category-name { font-size: 1.1em; font-weight: bold; color: #000000; } .dark-mode .category-name { color: #86bdf0; } .category-card .category-description { font-size: 0.8em; color: #333232; } .category-card i { margin-left:4px; } .dark-mode .category-description { color: #bdbdbd; } /* Responsive adjustments */ @media (max-width: 768px) { .category-card { max-height: 320px; } } @media (max-width: 576px) { .category-card { flex-basis: calc(100% - 20px); } } /* Dark mode adjustments */ body.dark-mode { background-color: #222229; color: #d8e5f7; } .bottom-nav.dark-mode { background-color: #333; box-shadow: 0 -2px 4px rgba(255, 255, 255, 0.1); } .bottom-nav.dark-mode .nav-item.active { color: #8cd3f3; } .dark-mode { background-color: rgb(0, 0, 0); color: white; } :root { --primary-color: #0D6FFA; --accent-color: #49CE95; --danger-color: #EC3582; --fore-color: rgba(0, 0, 0, 0.65); --main-cast-shadow: 0px 3px 12px rgba(0, 0, 0, 0.08), 0px 3px 6px rgba(0, 0, 0, 0.12); } footer { position: fixed; bottom: 15px; left: 0; right: 0; width: 90%; margin: auto; z-index: 1000; } .sc-bottom-bar { border-radius: 15px; display: flex; padding: 16px 36px; justify-content: space-between; height: 27px; font-size: 24px; background-image: radial-gradient(circle at 36px 10px, rgba(0, 140, 255, 0.226) 36px, rgb(255, 255, 255) 37px); box-shadow: 0 0 5px rgba(105, 105, 105, 0.123); transition: cubic-bezier(0.27, 0.23, 0.08, 0.96) .45s; } .sc-nav-indicator { position: absolute; width: 56px; height: 56px; margin: auto; bottom: 21px; left: 0; background-color: rgb(1, 54, 114); background-image: linear-gradient(#0084ff, rgb(10, 141, 218), #0253eb); box-shadow: var(--main-cast-shadow); border-radius: 50%; transition: cubic-bezier(0.45, 0.73, 0, 0.29) .3s; } .sc-menu-item { color: var(--fore-color); transition: ease-in-out .7s; cursor: pointer; -webkit-text-fill-color: #91c4ff; } .sc-current { position: relative; color: #ffffff; -webkit-text-fill-color: rgb(255, 255, 255); z-index: 3; transform: translate3d(0px, -22px, 0px); } .sc-bottom-bar a { text-decoration: none; } h1, h2, h3 { font-family: 'Tajawal', sans-serif; font-weight: 700; /* Bold weight */ direction: rtl; } #Menssw p, #Menssw span { font-family: 'Tajawal', sans-serif; font-weight: 400; /* Regular weight */ direction: rtl; } #h2mar { margin-right: 17px; } .merg { height: 50px; } .wowalert { position: fixed; top: 20px; right: -400px; background: white; border-radius: 12px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12); padding: 14px 22px; font-size: 12px; color: #333; display: flex; align-items: center; gap: 14px; z-index: 10000; transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1); max-width: 320px; border-left: 4px solid transparent; } .wowalert-show { right: 20px; opacity: 1; transform: translateY(0); } .wowalert-icon { font-size: 15px; flex-shrink: 0; } .wowalert-content p { margin: 0; line-height: 1.5; font-weight: 200; } .wowalert-error { background: #FFF5F5; border-color: #FF4444; color: #CC0000; } .wowalert-error .wowalert-icon { color: #FF4444; } .wowalert-success { background: #F0FFF4; border-color: #00C851; color: #007E33; } .wowalert-success .wowalert-icon { color: #00C851; } .wowalert-info { background: #E3F2FD; border-color: #2196F3; color: #0d47a1; } .wowalert-info .wowalert-icon { color: #2196F3; } .wowalert-progress { position: absolute; bottom: 0; left: 0; height: 3px; background: rgba(0, 0, 0, 0); width: 100%; border-radius: 0 0 12px 12px; overflow: hidden; margin-left: 3px; } .wowalert-progress::after { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; animation: progress 3s linear forwards; } .wowalert-error .wowalert-progress::after { background: #FF4444; } .wowalert-success .wowalert-progress::after { background: #00C851; } .wowalert-info .wowalert-progress::after { background: #2196F3; } @keyframes progress { to { transform: scaleX(1); } } #Menssw { margin: 0; width: 100%; padding: 0; box-sizing: border-box; } .moah3 { -webkit-text-fill-color: rgb(255, 255, 255); grid-column: 1 / span 2; margin: auto; padding: 20px; background-color: #666666; border-radius: 13px; margin-bottom: 20px; margin-top: 20px; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } .context { width: 80%; position: absolute; top: 50vh; } .context h1 { text-align: center; color: #fff; font-size: 50px; } #setting { border-radius: 13px; background: rgba(255, 255, 255, 0.466); border-radius: 8px; box-shadow: 0 0px 30px rgba(255, 255, 255, 0.164); backdrop-filter: blur(5.8px); -webkit-backdrop-filter: blur(4.8px); } .subdiv { width: 80%; margin: auto; position: fixed; top: 0; left: 0; height: 70%; overflow-y: auto; margin-top: 65px; margin-bottom: 75px; padding-top: 60px; padding-bottom: 13px; display: grid; grid-template-columns: 1fr; border-radius: 24px 0px 0px 24px; background-color: #ffffff00; scrollbar-width: thin; scrollbar-color: #007ef3 rgb(1, 4, 32); direction:rtl; transition: all 0.7s cubic-bezier(0.445, 0.05, 0.55, 0.95); } .subdiv::-webkit-scrollbar { width: 4px; } .subdiv::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0); } .subdiv::-webkit-scrollbar-thumb { background: #007ef3; border-radius: 19px; } .subdiv::-webkit-scrollbar-thumb:hover { background: #007ef3; } .afas, .afas:visited:focus:active { width: 70%; height: max-content; text-decoration: none; padding: 14px; margin-bottom: 15px; margin-right: 20px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transition: all 0.2s ease; border-radius: 16px; border-right: 0; position: relative; text-align: right; -webkit-text-fill-color: #646464; background-color: #ffffff; text-wrap: wrap; overflow: hidden; text-decoration: none !important; display: flex; align-items: center; } .dark-mode .afas,.afas:visited:focus:active{ background-image:linear-gradient(#1a1a1d,#1a1a1d,#1a1a1d); -webkit-text-fill-color: #ffffff; } .afas:hover{ background-color: rgb(255, 255, 255); -webkit-text-fill-color: #007ef3; } .afas.selected { background: #f0f8ff; border: 2px solid #007ef3; } .three { width: 19%; /* Set the width of the side bar */ position: fixed; /* Position the side bar fixed on the screen */ top: 0; /* Set the distance from the top of the screen */ right: 0; /* Set the distance from the left of the screen */ height: 50%; margin-top: 200px; /* Set the height of the side bar to match the screen height */ display: flex; flex-direction: column; align-items: center; justify-content: center; align-self: center; border-top-left-radius: 45px; border-bottom-left-radius: 45px; background-color: #ffffff; box-shadow: 0 0 4px rgba(78, 78, 78, 0.205); } .dark-mode .three{ background-image:linear-gradient(#1a1a1d,#1a1a1d,#1a1a1d); } .three i { height:30%; justify-content: center; align-items: center; text-align: center; display: flex; width: 100%; direction: rtl; font-style: normal; transition: 0.2s ease-out; -webkit-text-fill-color: #023952; cursor: pointer; background-color: rgba(255, 255, 255, 0); text-decoration: none; } .dark-mode .three i,.dark-mode .three i i{ -webkit-text-fill-color: #91c4ff; } .dark-mode .three .threeactive,.dark-mode .three .threeactive i{ -webkit-text-fill-color: #0079fa; } .three .threeactive i{ -webkit-text-fill-color: #0079fa; } .three .threeactive{ border-top-right-radius:55px ; border-radius:55px ; box-shadow: 0 0 2px rgb(139, 166, 255); width: 90%; font-weight: 400; -webkit-text-fill-color: #0079fa; background-color: #0082fc25; } @keyframes scrole{ from{ opacity: 0.3; scale: 0.5; } to{ opacity: 1; scale: 1; } } /* Modern END Button */ #exm { position: fixed; bottom: 2rem; right: 2rem; width: 56px; height: 56px; border-radius: 50%; background: #007ef3; color: white; border: none; box-shadow: 0 8px 24px rgba(0, 126, 243, 0.3); display: none; justify-content: center; align-items: center; font-size: 1.8rem; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } #exm:hover { transform: scale(1.1); box-shadow: 0 12px 32px rgba(0, 126, 243, 0.4); } /* Smooth Animations */ @keyframes cardEnter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .ques{ display: grid; width: 90%; padding: 9px; margin: auto; max-width: 700px; background-image: linear-gradient(#fcfcfc,#fcfcfc,#fcfcfc, #fcfcfc,rgb(231, 246, 255)); margin-top: 25px; border-radius: 14px; font-weight:500; font-size: medium; box-shadow: 0px 0px 3px rgba(126, 126, 126, 0.5); -webkit-text-fill-color: #006cfa; direction: rtl; animation: scrole linear; animation-timeline: view(); animation-range: entry 0 cover 20%; scroll-behavior: smooth; } .dark-mode .ques { background-image: linear-gradient(#242431,#242431,#242431, #242431,rgb(1, 28, 58)); box-shadow: 0px 0px 2px rgba(255, 255, 255, 0.616); -webkit-text-fill-color: #81b7ff; } .scroll-watcher{ height:3px; position: fixed; top:0; background-color: #0079fa; width: 0%; box-shadow: 0 0 4px #0079fa; transform-origin: left; border-radius: 8px; z-index: 10000; } .opdiv { display: grid; } .dark-mode .ans{ -webkit-text-fill-color: #c2dbfc; } .ans { width: 95%; margin: auto; border-radius: 8px; margin-bottom: 5px; margin-top: 7px; cursor: pointer; padding: 6px; background-color: rgba(103, 189, 247, 0.158); -webkit-text-fill-color: #424242; } .ans:hover { background-color: rgba(0, 81, 255, 0.418); transition: 300ms; } .hrd { width: 100%; } .dark-mode .ques Div .button{ background-color: #223247; -webkit-text-fill-color: #4595ff; } .ques Div .button { border: none; margin-bottom: 2px; border-radius:30%; width: 40px; -webkit-text-fill-color: #222222; box-shadow: 1px 3px 6px rgba(56, 56, 56, 0.185); margin-right: 13px; font-weight: bold; font-size: 18px; cursor: pointer; transition: 0.4s ease-in-out; background-color: #00000009; } .ques Div .button:active { background-color: #007ef3; -webkit-text-fill-color: white; } .buttons { display: flex; flex-wrap: wrap; margin-top:4px ; } .dark-mode .unittags{ -webkit-text-fill-color: #d8d7d7; } .unittags { text-align: center; align-items: center; justify-content: center; padding:7px; font-weight: 500; max-width: fit-content; min-width: 30px; -webkit-text-fill-color: #000000; font-size: small; border: 1px solid rgba(128, 128, 128, 0.685); border-radius: 14px; margin-top: 13px; margin-right: 4px; } .ans input[type='radio'] { visibility:hidden; appearance: none; -webkit-appearance: none; width: 17px; height: 17px; border: 1px solid #727272; border-radius: 39%; margin-left: 8px; margin-right: 10px; background-color: transparent; position: relative; top: 3px; } .ans input[type="radio"]:checked::before { content: ""; display: block; width: 12px; height: 12px; background-color: #000000; border-radius: 30%; position: absolute; transform: translate(-50%, -50%); top: 50%; left: 50%; animation: appear 0.6s; } @keyframes appear { 0% { transform: translate(-50%, -50%) scale(0); background-color: #fff; transform: translateY(-100%); } 45% { transform: translate(-50%, -50%) scale(1.6); background-color: #64aedf; } 50% { transform: translate(-50%, -50%) scale(1.7); background-color: #ff009d; } 55% { transform: translate(-50%, -50%) scale(1.6); } 100% { transform: translate(-50%, -50%) scale(1); background-color: #ca8489; } } .action { position: fixed; background-color: #71baff85; width: 50px; left: 30px; height: 50px; bottom: 30px; border-radius: 50%; box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1); cursor: pointer; direction: ltr; z-index: 10000; } .action span { position: relative; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; color: #0084ff; font-size: 2em; transition: 0.3s ease-in-out; } .action.active span { transform: rotate(135deg); } .action ul { position: absolute; bottom: 50px; background: #fff; min-width: 250px; padding: 20px; border-radius: 20px; opacity: 0; visibility: hidden; transition: 0.4s; box-shadow: 0 0 13px rgba(0, 0, 0, 0.301); font-family: "Tajawal"; direction: rtl; } .dark-mode .action ul{ background: #242431; } .action.active ul { bottom: 55px; opacity: 1; visibility: visible; transition: 0.2s; } .action.active ul li { display: flex; font-size: large; font-weight: bolder; font-family: "Tajawal"; padding: 10px 0; transition: 0.2s; -webkit-text-fill-color: #5faaff; } .action ul li:hover { font-weight: bolder; } .action ul li:not(:last-child) { border-bottom: 1px solid rgba(119, 119, 119, 0.705); } .action ul li i { margin-right: 10px; opacity: 0.9; transform: scale(0.8); font-family: "Tajawal"; } .action ul li i:hover { opacity: 0.5; } #firquiz { width: 100%; max-width:800px; border-bottom: 6px solid rgb(11, 144, 233); border-radius: 0 0 25px 25px; margin: auto; padding-bottom: 10px; padding-top: 23px; display: none; } #seardiv { height: 30px; background-color:rgb(255, 255, 255); margin: auto; display: flex; align-items: center; transition: 1s ease-in-out; border-radius: 24px; margin-top:40px; width: 40%; padding: 5px; padding-bottom:0; box-shadow: 1px 0 2px rgba(0, 0, 0, 0.199); } .dark-mode #seardiv{ background-color: rgba(214, 240, 245, 0.178); } #seardiv:hover { width: 50%; padding: 5px; padding-bottom: 0; } #seardiv i { height: 100%; font-size: 24px; -webkit-text-fill-color: rgb(0, 132, 255); margin-left: 7px; } #realsear { width: 100%; height: 100%; outline: none; border: none; background-color: #02093000; font-family: "Tajawal", sans-serif; direction: rtl; } .switch { position: relative; display: inline-block; width: 60px; height: 34px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #bdc2d4; -webkit-transition: .4s; transition: .4s; } .slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: .4s; transition: .4s; } input:checked+.slider { background-color: #008cff; } input:focus+.slider { box-shadow: 0 0 1px #2196F3; } input:checked+.slider:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(26px); } .slider.round { border-radius: 34px; } .slider.round:before { border-radius: 50%; } #secdiv { display: flex; flex-direction: row; flex-wrap: nowrap; -webkit-text-fill-color: #252525; text-wrap: nowrap; gap:10px; direction: rtl; margin: auto; margin-right: 0; margin-top: 10px; margin-bottom: 20px; width: 100%; font-size: 14px; } #secdiv h4{ text-align: center; justify-content: center; margin-right: 13px; -webkit-text-fill-color: #097be6; margin-top: 5px; font-weight:500; } .dark-mode #secdiv h4{ -webkit-text-fill-color: #81b7ff; } #forban { direction: ltr; margin-bottom: 9px; } .dark-mode #forban button{ -webkit-text-fill-color: #4595ff; background-color: #223247; } @media print { .sensitive-content { display: none; } } #forban button { border: none; box-shadow: none; padding: 3px; width: 10%; -webkit-text-fill-color: #070707; margin-right: 10px; border-radius: 12px; background-color: #00000009; transition: 0.3s ease-out; } #forban button:active { background-color: #007ef3; } #toexp { width: 90%; padding: 8px; height: 30%; box-sizing: border-box; position: fixed; top: 22.78%; left: 50%; -webkit-text-fill-color: #000000; transform: translate(-50%, -50%); background-color: #ffffff46; backdrop-filter: blur(12px); text-align: center; direction: rtl; box-shadow: 0 0 7px rgba(0, 0, 0, 0.295); border-radius: 0 0 13px 13px; z-index: 9999; overflow-y: scroll; } #toexp p { text-wrap: wrap; } #closee { width: 30px; height: 30px; border: 1px solid #cccccc; border-radius: 50%; background-color: transparent; color: #0c9cdf; -webkit-text-fill-color: red; text-align: center; font-size: 24px; line-height: 30px; cursor: pointer; } #closee:active { background-color: #f2f2f2; } #timer{ position: fixed; top:56px; left:80%; margin-top: 5px; margin-right: 8px; justify-content: left; align-items: left; width: fit-content; background-color: rgba(255, 255, 255, 0.269); border: 1px solid rgb(221, 221, 221); border-radius: 13px; padding: 8px; visibility: hidden; z-index: 100000; } #mncosss{ position: fixed; top:56px; opacity:0.2; margin-top: 5px; margin-left: 8px; justify-content: left; align-items: left; width: fit-content; background-color: rgba(255, 255, 255, 0.269); border: 1px solid rgb(221, 221, 221); border-radius: 13px; font-size:small; visibility: visible; z-index: 100000; } .traswe { visibility: hidden; height: 100%; } .text { font-size: 20px; margin: 20px; text-align: center; } .range-slider { width: 97%; margin-top: 12px; direction: rtl; display: flex; margin-bottom: 25px; } .range-slider label { margin-left: 13px; -webkit-text-fill-color: #0784f8; direction: rtl; font-size: 14px; font-weight: medium; } .dark-mode .range-slider label{ -webkit-text-fill-color: #81b7ff; } /* Modal Styles */ /* Modal Styles */ #ulamat-1 { width: 80%; /* Set width to 90% */ max-width: 600px; /* Set a maximum width */ height: auto; /* Allow height to adjust based on content */ margin: auto; /* Center the modal */ background: rgba(1, 33, 92, 0.2); border-radius: 16px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); position: fixed; /* Fixed position */ top: 20%; /* Position from the top */ right: 0; /* Align to the right */ left: 0; /* Align to the left */ z-index: 1000; /* Ensure it appears above other elements */ direction: rtl; /* Right-to-left direction */ overflow: hidden; /* Prevent overflow */ display: block; /* Show the modal */ padding: 70px 20px; -webkit-text-fill-color: white; display:none; justify-content: center; align-content: center; } /* Close Icon Styles */ .close-icon { font-size: 24px; /* Icon size */ -webkit-text-fill-color: #ff4d4d; /* Red color for close icon */ padding: 10px; /* Padding around the icon */ cursor: pointer; /* Pointer cursor on hover */ transition: color 0.3s; /* Smooth color transition */ } .close-icon:hover { color: #ff1a1a; /* Darker red on hover */ } /* First Inner Div Styles */ #fir-di { width: 100%; display: grid; grid-template-columns: 1fr 1fr; justify-content: center; align-items: center; gap: 20px; padding: 20px 0; margin: auto; } /* Progress Circle Styles */ .progress-circle { position: relative; width: 150px; height: 150px; margin: 10px; } .circle-bg { fill: none; stroke: #e9ecef; stroke-width: 8; } .circle-progress { fill: none; stroke-width: 8; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset 0.8s ease; } .correct-progress { stroke: #1cff2f85; } .wrong-progress { stroke: #fc5353; } .circle-text { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; } .circle-value { font-size: 32px; font-weight: 700; -webkit-text-fill-color: white; } .circle-label { font-size: 14px; -webkit-text-fill-color: rgba(255, 255, 255, 0.8); } /* Second Inner Div Styles */ #sec-di { width: 100%; /* Full width */ display: grid; /* Flex layout */ grid-template-columns: 1fr 1fr 1fr; gap: 15px; /* Space between buttons */ justify-content: center; /* Center buttons */ margin: auto; /* Center the modal */ padding:20px 0 } /* Button Styles */ #sec-di button { background-color: #007AFF; /* Modern blue */ color: white; /* White text */ border: none; /* No border */ border-radius: 6px; /* Rounded corners */ width: 100%; /* Button width */ height: 40px; /* Fixed height for buttons */ box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Add shadow */ transition: background-color 0.3s, transform 0.2s; /* Add transition */ } #sec-di button:hover { background-color: #0056b3; /* Darker blue on hover */ transform: translateY(-2px); /* Lift effect */ } #sec-di button:active { background-color: #004494; /* Even darker on active */ } #scientific-calculator { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 95%; height: 250px; direction: ltr; max-height: 700px; background-color: #d80000; border: 1px solid #3384ff; box-shadow: 0 0 10px rgba(129, 129, 129, 0.1); } .close-button { position: absolute; top: 10px; right: 10px; cursor: pointer; background-color: red; color: white; border: none; padding: 5px; border-radius: 5px; z-index: 10000; } .noteishere { background-color: #006cfa00; border: 1px solid #000000; margin-bottom: 3px; display: flex; /* Use flexbox for centering */ justify-content: center; /* Center horizontally */ align-items: center; /* Center vertically */ text-align: right; /* Align text to the right for RTL */ padding: 3px; /* Optional: Add some padding for better spacing */ box-sizing: border-box; /* Ensure padding is included in height */ } .noteishere:hover { border: none; } .modal { display: none; /* Hidden by default */ position: fixed; /* Stay in place */ z-index: 1000; /* Sit on top */ left: 0; top: 0; width: 100%; /* Full width */ height: 100%; /* Full height */ overflow: auto; /* Enable scroll if needed */ background-color: rgba(0, 0, 0, 0.7); /* Black w/ opacity */ } .modal-content { margin: 20% auto; /* 15% from the top and centered */ padding: 20px; border-radius: 8px; width: 80%; /* Could be more or less, depending on screen size */ max-width: 500px; /* Max width */ /* From https://css.glass */ background: rgba(146, 177, 255, 0.2); border-radius: 16px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border: 1px solid rgba(146, 177, 255, 0.3); } .modal-content h2 { -webkit-text-fill-color: white; font-size: 24px; margin-bottom: 15px; } .modal-content input[type="text"] { width: 90%; padding: 10px; margin: 10px 0; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; direction: rtl; } .modal-content button { background-color: #006cfa; /* Xiaomi color */ color: white; padding: 10px 15px; border: none; border-radius: 4px; cursor: pointer; font-size: 16px; margin-right: 10px; /* Space between buttons */ transition: background-color 0.3s; } .modal-content button:hover { background-color: #E64A19; /* Darker shade on hover */ } .modal-content button:last-child { background-color: #ccc; /* Gray for close button */ } .modal-content button:last-child:hover { background-color: #bbb; /* Darker gray on hover */ } .chat-container h1 { text-align: center; color: #007AFF; /* Apple blue */ margin-bottom: 30px; } .chat-container #filter-container { display: flex; justify-content: center; margin-bottom: 20px; gap: 10px; } .chat-container select { padding: 10px; border: 1px solid #e0e0e0; border-radius: 4px; font-size: 14px; background-color: #fff; transition: border-color 0.3s; } .chat-container select:focus { border-color: #007AFF; outline: none; } .chat-container #messages-container { max-width: 800px; margin: 0 auto; background: white; border-radius: 8px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); padding: 20px; overflow-y: auto; /* Allow scrolling */ } .chat-container .message { margin-bottom: 15px; /* Space between messages */ display: flex; flex-direction: column; padding: 10px; border-radius: 10px; border: 1px solid #e0e0e0; /* Add border to messages */ direction: rtl; } .chat-container .message:last-child { margin-bottom: 0; /* No margin for the last message */ } .chat-container .message p { margin: 0; font-size: 16px; } .chat-container .message .timestamp { font-size: 12px; color: #888; margin-top: 5px; } .chat-container .user-message { align-self: flex-end; /* Align user messages to the right */ background-color: #007AFF; /* User message background */ color: white; /* User message text color */ border: 1px solid #0056b3; /* Darker border for user messages */ } .chat-container .support-message { align-self: flex-start; /* Align support messages to the left */ background-color: #f1f0f0; /* Support message background */ color: black; /* Support message text color */ border: 1px solid #d0d0d0; /* Border for support messages */ } .chat-container textarea { width: 100%; height: 60px; margin-top: 10px; padding: 10px; border: 1px solid #e0e0e0; border-radius: 4px; resize: none; font-size: 14px; transition: border-color 0.3s; } .chat-container textarea:focus { border-color: #007AFF; outline: none; } /* Chat Container Styles */ .chat-container { max-width: 600px; margin: 0 auto; margin-top: 10px; border-radius: 10px; overflow: hidden; } .chat-container .chat-box { padding: 20px; height: 400px; /* Fixed height for scrolling */ overflow-y: auto; /* Allow scrolling */ display: flex; flex-direction: column; gap: 10px; /* Space between messages */ } .chat-container .message { display: flex; flex-direction: column; padding: 10px; border-radius: 10px; max-width: 80%; /* Limit width */ word-wrap: break-word; /* Break long words */ } .chat-container .user-message { align-self: flex-end; /* Align user messages to the right */ background-color: #007AFF; /* User message background */ color: white; /* User message text color */ border: 1px solid #0056b3; /* Darker border for user messages */ } .chat-container .support-message { align-self: flex-start; /* Align support messages to the left */ background-color: #f1f0f0; /* Support message background */ color: black; /* Support message text color */ border: 1px solid #d0d0d0; /* Border for support messages */ } .chat-container .input-container { display: flex; padding: 10px; background-color: #f9f9f9; border-top: 1px solid #e0e0e0; position: sticky; bottom:0; } .dark-mode .chat-container .input-container , .dark-mode .chat-container{ background-color: #04051600; } .chat-container button:hover { background-color: #0056b3; /* Darker blue */ transform: translateY(-2px); } @media (max-width: 600px) { .chat-container { width: 100%; /* Full width on small screens */ } .chat-container h1 { font-size: 24px; } .chat-container .input-container { flex-direction: column; /* Stack input and button */ } .chat-container input[type="text"] { margin-right: 0; /* Remove right margin */ margin-bottom: 10px; /* Add bottom margin */ } } .input-container { display: flex; padding: 10px; background-color: #f9f9f9; border-top: 1px solid #e0e0e0; position: sticky; bottom: 0; } .input-wrapper { position: relative; /* Position relative for absolute positioning of the icon */ flex: 1; /* Allow the wrapper to take full width */ margin: auto; width:90%; } .send-icon { position: absolute; /* Position the icon absolutely */ left: 10px; /* Space from the left */ top: 50%; /* Center vertically */ transform: translateY(-50%); /* Adjust for vertical centering */ color: #007AFF; /* Icon color */ cursor: pointer; /* Change cursor to pointer */ } .chat-container input[type="text"] { flex: 1; padding: 10px 10px 10px 40px; /* Add padding to the left for the icon */ border: 1px solid #e0e0e06e; border-radius: 4px; font-size: 14px; margin-right: 10px; width:90%; } .chat-container input[type="text"]:focus { border-color: #007AFF; outline: none; } .shuffle-button { background-color: rgba(28, 183, 255, 0); /* Green background */ -webkit-text-fill-color: #87bbff; border: 1px solid #ccc; /* Border */ padding: 10px 10px; /* Some padding */ width:60px; height: 60px; text-align: center; /* Centered text */ text-decoration: none; /* No underline */ display: inline-block; /* Make the button inline */ font-size:12px; /* Increase font size */ margin: 10px 8px; /* Add some margin */ cursor: pointer; /* Pointer cursor on hover */ border-radius: 50%; /* Rounded corners */ text-wrap: wrap; } .shuffle-button:hover { background-color: #a1d6f5; /* Darker green on hover */ -webkit-text-fill-color: white; } .shuffle-button i { display: block; font-size: 14px; text-decoration: none; } .afas.selected { background-color: rgb(138, 188, 253); /* Highlight color */ -webkit-text-fill-color: white; } #exm{ padding: 10px; border-radius: 50%; width:50px; height: 50px; background-color: #ffffff; position: fixed; bottom: 120px; /* Set to 100px from the bottom */ left: 45%; /* Keep the horizontal positioning */ text-align: center; text-wrap: wrap; display: none; } /* Custom Select Styles */ #subfasl-select { margin-top:20px; margin-right: 20px; font-size:smaller; text-wrap:wrap; background-color: #ffffff00; /* Background color */ border: 1px solid #ccc; /* Border */ border-radius: 9px; /* Rounded corners */ width: 100px; height: 40px; /* Width of the select */ font-size: 16px; /* Font size */ color: #87bbff; /* Text color */ -webkit-text-fill-color: #87bbff; cursor: pointer; /* Pointer cursor */ transition: background-color 0.3s ease, border-color 0.3s ease; /* Smooth transition */ position: relative; /* Position for the arrow */ text-align:center; } /* Hover and Focus Effects */ #subfasl-select:hover { background-color: #e2e2e2; /* Change background on hover */ border-color: #888; /* Change border color on hover */ } #subfasl-select:focus { outline: none; /* Remove default outline */ border-color: #007bff; /* Change border color on focus */ box-shadow: 0 0 5px rgba(0, 123, 255, 0.5); /* Add shadow on focus */ } /* Style for options */ #subfasl-select option { background-color: #fff; /* Background color for options */ color: #333; /* Text color for options */ } /* Optional: Style for the dropdown when opened */ #subfasl-select:focus option { background-color: #f1f1f1; /* Background color for options when focused */ } #helno{ overflow-y: scroll; height: 100vh; scroll-behavior: smooth; } .containerzx { background: linear-gradient(to bottom, #87CEFA, #B0E0E6); text-align: center; position: relative; } .error h1 { font-size: 100px; color: #FF6347; animation: fadeIn 1s ease-in-out; } .error h2 { font-size: 24px; color: #333; margin: 10px 0; } .error p { color: #666; margin-bottom: 20px; } .btnzx { text-decoration: none; background-color: #FF6347; color: white; padding: 10px 20px; border-radius: 5px; transition: background-color 0.3s ease; } .btnzx:hover { background-color: #FF4500; } .clouds { position: absolute; top: 20%; left: 0; right: 0; display: flex; justify-content: space-around; animation: moveClouds 10s linear infinite; } .cloud { background: white; border-radius: 50%; position: relative; width: 100px; height: 60px; box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); } .cloud::before, .cloud::after { content: ''; background: white; border-radius: 50%; position: absolute; } .cloud::before { width: 80px; height: 50px; top: -20px; left: 10px; } .cloud::after { width: 60px; height: 40px; top: -10px; right: 10px; } @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } @keyframes moveClouds { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } .ul-circles * { margin: 0; padding: 0; box-sizing: border-box; } .ul-circles { --innerSize: 8rem; --rimSize: 2rem; display: grid; grid-template-columns: repeat(var(--repeatVal, 1), calc(var(--innerSize))); justify-content: center; gap: var(--rimSize); padding: var(--rimSize); font-family: sans-serif; list-style: none; } .ul-circles.ul-circles-vertical { --repeatVal: 1; } .ul-circles > li { display: grid; grid-template-rows: 1fr 1fr; gap: calc(var(--rimSize) / 16); aspect-ratio: 1/1; padding: calc(var(--rimSize) / 16); border-radius: 50%; text-align: center; position: relative; } .ul-circles > li::before, .ul-circles > li::after { content: ""; position: absolute; aspect-ratio: 1/1; border-radius: inherit; z-index: -1; } .ul-circles > li::before { width: calc(100% + calc(2 * var(--rimSize))); left: calc(var(--rimSize) * -1); top: calc(var(--rimSize) * -1); background: var(--accent-color); clip-path: polygon( var(--clipX1, 0%) var(--clipY1, 0%), var(--clipX2, 50%) var(--clipY1, 0%), var(--clipX2, 50%) var(--clipY2, 100%), var(--clipX1, 0%) var(--clipY2, 100%) ); box-shadow: inset 2px -2px 10px rgba(255, 255, 255, 0.25), inset -2px 2px 10px rgba(0, 0, 0, 0.5); } .ul-circles > li:nth-child(even)::before { --clipX1: 50%; --clipX2: 100%; } @media (min-width: 40rem) { .ul-circles { --repeatVal: auto-fit; } .ul-circles:not(.ul-circles-vertical) > li:nth-child(even)::before { --clipX1: 0%; --clipY1: 0%; --clipX2: 100%; --clipY2: 50%; } .ul-circles:not(.ul-circles-vertical) > li:nth-child(odd)::before { --clipX1: 0%; --clipY1: 50%; --clipX2: 100%; --clipY2: 100%; } } .ul-circles > li::after { width: 100%; background: #fdfdfd; box-shadow: -0.5rem 0.5rem 0.5rem rgba(0, 0, 0, 0.25); } .ul-circles > li > i { font-size: 2.5rem; color: var(--accent-color); align-self: end; } #eminem{ width: 100%; margin: 25px auto; margin-bottom: 200px; } #eminem h1,li{ font-family: 'Tajawal', sans-serif; font-weight: 700; /* Bold weight */ direction: rtl; color: rgb(63, 63, 63); text-align: center; } .dark-mode #eminem h1{ color: rgb(226, 226, 226); } /* Popup styles */ .popup { display: none; position: fixed; top: 50%; left: 50%; width:60%; transform: translate(-50%, -50%); max-width: 400px; height: 300px; z-index: 1000; padding: 20px; text-align: center; -webkit-text-fill-color: #cfcfcf; background: rgba(146, 177, 255, 0.2); border-radius: 16px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); border: 1px solid rgba(146, 177, 255, 0.3); } .popup.active { display: block; } .popup .close { cursor: pointer; color: red; font-weight: bold; position: absolute; top: 10px; right: 10px; } .overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 999; } .overlay.active { display: block; } .ul-circles li:hover { opacity: 0.8; } #loginFormes{ display: flex; /* Use flexbox */ flex-direction: column; /* Stack children vertically */ align-items: center; /* Center children horizontally */ } #loginFormes div { margin-bottom: 15px; /* Space between input fields */ } #loginFormes label { display: block; /* Make labels block elements */ margin-bottom: 5px; /* Space between label and input */ color: #333; /* Label color */ } #loginFormes input[type="text"] { width: 100%; /* Full width */ padding: 10px; /* Padding inside the input */ border: none; /* Remove default border */ border-radius: 5px; /* Rounded corners */ background: rgba(255, 255, 255, 0.2); /* Semi-transparent background */ color: #fff; /* Text color */ font-size: 16px; /* Font size */ transition: background 0.3s ease; /* Smooth transition for background */ } #loginFormes input[type="text"]:focus { background: rgba(255, 255, 255, 0.3); /* Change background on focus */ outline: none; /* Remove outline */ } #loginFormes button { width: 100%; /* Full width */ padding: 10px; /* Padding inside the button */ border: none; /* Remove default border */ border-radius: 5px; /* Rounded corners */ background: rgba(0, 123, 255, 0.7); /* Semi-transparent blue background */ color: #fff; /* Text color */ font-size: 16px; /* Font size */ cursor: pointer; /* Pointer cursor on hover */ transition: background 0.3s ease; /* Smooth transition for background */ } #loginFormes input[type="text"], button { width: 100%; /* Full width */ max-width: 300px; /* Set a max width for inputs and button */ } #loginFormes button:hover { background: rgba(0, 123, 255, 0.9); /* Darker blue on hover */ } #message { margin-top: 20px; /* Space above the message */ color: #ff0000; /* Red color for error messages */ -webkit-text-fill-color:#ff0000 ; animation: fadeIn 0.5s ease; /* Fade-in animation for messages */ } .modern-button { background-color: #4CAF50; /* Green background */ border: none; /* Remove borders */ color: white; /* White text */ padding: 15px 32px; /* Padding */ text-align: center; /* Centered text */ text-decoration: none; /* No underline */ display: inline-block; /* Inline-block for proper spacing */ font-size: 16px; /* Font size */ margin: 4px 2px; /* Margin */ cursor: pointer; /* Pointer cursor on hover */ border-radius: 8px; /* Rounded corners */ transition: background-color 0.3s, transform 0.2s; /* Smooth transition */ } .modern-button:hover { background-color: #45a049; /* Darker green on hover */ transform: scale(1.05); /* Slightly enlarge the button */ } .modern-button:active { transform: scale(0.95); /* Slightly shrink the button when clicked */ } /*new */ .main { width: 350px; height: 500px; background: red; overflow: hidden; background-color: #0056b3; border-radius: 10px; box-shadow: 5px 20px 50px #000; } .main #chk { display: none; } .main .signup { position: relative; width: 100%; height: 100%; } .main label { color: #fff; font-size: 2.3em; justify-content: center; display: flex; margin: 50px; font-weight: bold; cursor: pointer; transition: 0.5s ease-in-out; } .main input { width: 60%; height: 10px; background: #e0dede; justify-content: center; display: flex; margin: 20px auto; padding: 12px; border: none; outline: none; border-radius: 5px; } .main button { width: 60%; height: 40px; margin: 10px auto; justify-content: center; display: block; color: #fff; background: #573b8a; font-size: 1em; font-weight: bold; margin-top: 30px; outline: none; border: none; border-radius: 5px; transition: 0.2s ease-in; cursor: pointer; } .main button:hover { background: #6d44b8; } .main .login { height: 460px; background: #eee; border-radius: 60% / 10%; transform: translateY(-180px); transition: 0.8s ease-in-out; } .main .login label { color: #573b8a; transform: scale(0.6); } .main #chk:checked ~ .login { transform: translateY(-500px); } .main #chk:checked ~ .login label { transform: scale(1); } .main #chk:checked ~ .signup label { transform: scale(0.6); } /* Enhanced Team Components */ .team-hub { padding: 1rem; margin: 2rem 0; } .team-scroller { display: flex; gap: 0.8rem; padding: 0.5rem; overflow-x: auto; scrollbar-width: none; } .team-scroller::-webkit-scrollbar { display: none; } .mc-item { flex: 0 0 auto; background: #ddecfa; border-radius: 20px; padding: 10px 20px; color: #0084ff; display: flex; align-items: center; gap: 12px; font-size: 0.95em; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 4px rgba(0, 132, 255, 0.1); border: 1px solid rgba(0, 132, 255, 0.15); } .mc-item:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0, 132, 255, 0.2); } .mc-item i { font-size: 1.2em; transition: transform 0.3s ease; } .mc-item small { font-weight: 500; margin-left: 4px; } .team-add-btn { background: linear-gradient(135deg, #ddecfa, #c2e0ff); color: #0084ff; border: none; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; flex-shrink: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0, 132, 255, 0.2); } .team-add-btn:hover { background: linear-gradient(135deg, #0084ff, #0253eb); color: white; transform: scale(1.1) rotate(90deg); } /* Modern Modal Design */ .team-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.98); z-index: 100000; display: none; padding: 1rem; animation: modalEnter 0.3s ease; margin: auto; overflow-y: scroll; } @keyframes modalEnter { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .modal-contente { max-width: 600px; margin: 2rem auto; background: white; border-radius: 24px; padding: 1.5rem; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); } .search-box { display: flex; gap: 12px; margin-bottom: 1.5rem; position: relative; } .search-input { flex: 1; padding: 14px 24px; border: 2px solid #e0e7ff; border-radius: 30px; font-size: 1em; transition: border-color 0.3s ease; } .search-input:focus { border-color: #0084ff; outline: none; } .search-btn { background: linear-gradient(135deg, #0084ff, #0253eb); color: white; border: none; padding: 0 28px; border-radius: 30px; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; } .search-btn:hover { transform: scale(0.98); box-shadow: 0 4px 12px rgba(0, 132, 255, 0.3); } .search-btn i { font-size: 1.1em; } /* Results Design */ .team-result { background: #f8fbff; padding: 1.2rem; margin: 0.8rem 0; border-radius: 16px; display: flex; align-items: center; gap: 1.2rem; transition: all 0.3s ease; border: 1px solid #e0e7ff; } .team-result:hover { transform: translateX(5px); background: #ffffff; box-shadow: 0 4px 12px rgba(0, 132, 255, 0.1); } .team-result i { font-size: 1.4em; color: #0084ff; background: #e3f2ff; padding: 12px; border-radius: 14px; } .add-team-btn { background: transparent; border: 2px solid #0084ff; color: #0084ff; padding: 8px 20px; border-radius: 20px; font-size: 0.9em; margin-left: auto; transition: all 0.3s ease; } .add-team-btn:hover { background: #0084ff; color: white; transform: scale(0.98); } /* Dark Mode */ .dark-mode { .mc-item, .team-result { background: #2f2f36; border-color: #3a3a42; color: #86bdf0; } .team-add-btn { background: #3a3a42; color: #86bdf0; } .team-edit-btn { background: #3a3a42; color: #86bdf0; } .search-input { background: #2f2f36; border-color: #3a3a42; color: white; } .search-btn { background: linear-gradient(135deg, #86bdf0, #0253eb); } .add-team-btn { border-color: #86bdf0; color: #86bdf0; &:hover { background: #86bdf0; color: #2f2f36; } } .team-modal { background: rgba(18, 18, 18, 0.98); } .modal-content { background: #2f2f36; } } /* Mobile Optimization */ @media (max-width: 768px) { .team-scroller { padding: 0.5rem; gap: 0.5rem; } .mc-item { padding: 8px 16px; font-size: 0.85em; } .team-add-btn { width: 40px; height: 40px; } .team-edit-btn{ width: 40px; height: 40px; } .modal-content { width: 95%; margin: 1rem auto; padding: 1rem; } .search-box { flex-direction: column; } .search-btn { width: 100%; justify-content: center; padding: 12px; } } @media (max-width: 480px) { .team-modal { padding: 0.5rem; } .team-result { flex-direction: column; align-items: flex-start; gap: 0.8rem; } .add-team-btn { margin-left: 0; width: 100%; } .edit-team-btn { margin-left: 0; width: 100%; } } /* Add these styles */ .mc-item { transition: transform 0.2s ease; cursor: pointer; user-select: none; position: relative; overflow: hidden; } .mc-item.active-team { background: #0084ff20 !important; border: 2px solid #0084ff !important; } .mc-item:hover .team-delete-btn { opacity: 1; } .team-delete-btn:hover { color: #cc0000; } .team-content { flex-grow: 1; text-align: right; } .mc-item.dragging { opacity: 0.5; transform: scale(0.95); z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.2); } .swiping { transition: none !important; } .team-controls { display: flex; gap: 10px; margin-top: 1rem; } .team-edit-btn { background: linear-gradient(135deg, #ddecfa, #c2e0ff); color: #0084ff; border: none; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; flex-shrink: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0, 132, 255, 0.2); } .team-handle, .team-delete-btn { display: none; position: absolute; cursor: move; padding: 5px; } .mc-item.dragging { opacity: 0.5; } /* Show controls in edit mode */ .edit-mode .team-handle, .edit-mode .team-delete-btn { display: block; } .mc-item { position: relative; transition: transform 0.2s; } .mc-item.dragging { z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.2); } .team-handle { cursor: move; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #0098fd; background-color: #000000; border-radius: 50%; } .team-delete-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: transparent; border: none; color: #ff4444; cursor: pointer; } .team-result h4{ font-family: 'Tajawal', sans-serif; font-weight: 700; color:#353535 } /* Anki-specific styles */ .ank-container { max-width: 1200px; margin: 0 auto; padding-bottom: 80px; /* Space for add button */ } /* Folder/Deck/Card Cards */ .ank-folder-card, .ank-deck-card, .ank-card-item { background: white; border-radius: 12px; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05); transition: transform 0.2s, box-shadow 0.2s; overflow: hidden; cursor: pointer; } .ank-folder-card:hover, .ank-deck-card:hover, .ank-card-item:hover { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08); } /* Folder Card */ .ank-folder-card { padding: 20px; display: flex; align-items: center; } .ank-folder-icon { background: #e0f2fe; border-radius: 10px; width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; margin-right: 16px; color: #0ea5e9; } .ank-folder-info { flex: 1; } .ank-folder-name { font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; } .ank-deck-count { color: #64748b; font-size: 0.9rem; } .ank-folder-actions { display: flex; gap: 8px; } /* Deck Card */ .ank-deck-card { padding: 20px; } .ank-deck-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; } .ank-deck-name { font-weight: 600; font-size: 1.1rem; } .ank-card-count { background: #f1f5f9; padding: 2px 8px; border-radius: 20px; font-size: 0.85rem; } .ank-deck-actions { display: flex; justify-content: flex-end; } .ank-study-btn { background: #0ea5e9; color: white; border: none; padding: 6px 16px; border-radius: 6px; font-weight: 500; cursor: pointer; } .ank-study-btn:hover { background: #0284c7; } .ank-deck-edit-actions { display: flex; gap: 8px; margin-top: 10px; justify-content: flex-end; } /* Card Item */ .ank-card-item { padding: 20px; margin-bottom: 16px; } .ank-card-front { margin-bottom: 12px; } .ank-card-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 10px; } /* Action Buttons (Edit/Delete) */ .ank-action-btn { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: none; cursor: pointer; transition: all 0.2s; } .ank-edit-btn { background: #e0f2fe; color: #0ea5e9; } .ank-edit-btn:hover { background: #bae6fd; } .ank-delete-btn { background: #fee2e2; color: #ef4444; } .ank-delete-btn:hover { background: #fecaca; } /* Study View */ .ank-study-container { max-width: 600px; margin: 0 auto; padding-top: 40px; } .ank-progress-bar { height: 6px; background: #e2e8f0; border-radius: 3px; margin-bottom: 30px; overflow: hidden; position: relative; } .ank-progress { height: 100%; background: #0ea5e9; border-radius: 3px; transition: width 0.3s ease; } .ank-progress-text { position: absolute; top: -25px; right: 0; font-size: 0.8rem; color: #64748b; } .ank-study-card { background: white; border-radius: 16px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05); min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; padding: 30px; margin-bottom: 24px; } .ank-card-content { font-size: 1.5rem; line-height: 1.6; text-align: center; flex-grow: 1; display: flex; align-items: center; justify-content: center; } .ank-card-content.back { color: #334155; } .ank-flip-btn-container { text-align: center; margin-top: 20px; } .ank-flip-btn { color: #0ea5e9; background: none; border: none; font-weight: 500; font-size: 1rem; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; } .ank-flip-btn:hover { text-decoration: underline; } .ank-study-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; } .ank-study-btn { padding: 12px; border-radius: 8px; border: none; color: white; font-weight: 500; cursor: pointer; transition: opacity 0.2s; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; } .ank-study-btn:hover { opacity: 0.9; } .ank-repeat { background: #ef4444; } .ank-hard { background: #f97316; } .ank-easy { background: #22c55e; } .ank-super-easy { background: #8b5cf6; } /* Modals */ .ank-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 100; align-items: center; justify-content: center; } .ank-modal.ank-active { display: flex; } .ank-modal-content { background: white; border-radius: 16px; width: 90%; max-width: 500px; padding: 30px; position: relative; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); max-height: 90vh; overflow-y: auto; } .ank-close { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; cursor: pointer; color: #64748b; background: none; border: none; } .ank-modal-input { width:50%; padding: 12px 16px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; margin-bottom: 15px; } .ank-btn-primary { background: #0ea5e9; color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 500; cursor: pointer; transition: background 0.2s; display: inline-flex; align-items: center; gap: 8px; } .ank-btn-primary:hover { background: #0284c7; } .ank-btn-secondary { background: #e2e8f0; color: #334155; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 500; cursor: pointer; transition: background 0.2s; display: inline-flex; align-items: center; gap: 8px; } .ank-btn-secondary:hover { background: #cbd5e1; } .ank-hidden { display: none !important; } /* Statistics View */ .ank-stats-container { max-width: 800px; margin: 0 auto; padding-top: 20px; } .ank-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 30px; } .ank-stat-card { background: white; border-radius: 12px; padding: 20px; text-align: center; box-shadow: 0 4px 6px rgba(0,0,0,0.05); } .ank-stat-value { font-size: 2rem; font-weight: bold; color: #3b82f6; margin-bottom: 5px; } .ank-stat-label { color: #6b7280; font-size: 0.9rem; } .ank-stats-section { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); margin-bottom: 30px; } .ank-stats-section h2 { margin-bottom: 20px; } .ank-bar-chart { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); } .ank-bar-item { display: flex; align-items: center; margin-bottom: 15px; } .ank-bar-label { width: 40px; font-weight: 500; } .ank-bar-container { flex: 1; height: 24px; background: #f3f4f6; border-radius: 12px; overflow: hidden; margin: 0 15px; } .ank-bar { height: 100%; background: #3b82f6; border-radius: 12px; } .ank-bar-count { width: 40px; text-align: right; font-weight: 500; } .ank-stats-actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; } /* Settings View */ .ank-settings-container { max-width: 600px; margin: 0 auto; padding-top: 20px; } .ank-settings-form { background: white; border-radius: 12px; padding: 30px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); } .ank-form-group { margin-bottom: 20px; } .ank-form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #334155; } .ank-form-group input { width: 100%; padding: 12px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem; background: #f8fafc; } .ank-settings-actions { display: flex; gap: 12px; margin-top: 20px; } /* Editor Styles */ .ank-card-editable { min-height: 150px; padding: 15px; border: 1px solid #d1d5db; border-radius: 8px; margin-bottom: 20px; background-color: white; overflow: auto; -webkit-overflow-scrolling: touch; } .ank-card-editable:focus { outline: none; border-color: #3b82f6; box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); } .ank-card-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; padding: 10px; background: #f9fafb; border-radius: 8px; border: 1px solid #e5e7eb; } .ank-toolbar-btn { padding: 8px 12px; background-color: #f3f4f6; border: 1px solid #d1d5db; border-radius: 6px; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; gap: 5px; } .ank-toolbar-btn:hover { background-color: #e5e7eb; } /* Drawing Canvas */ .ank-drawing-container { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: white; z-index: 1000; padding: 20px; display: flex; flex-direction: column; box-shadow: 0 0 20px rgba(0,0,0,0.2); display: none; } .ank-drawing-container.ank-active { display: flex; } .ank-drawing-canvas { flex: 1; border: 1px solid #d1d5db; border-radius: 8px; background-color: white; cursor: crosshair; touch-action: none; } .ank-drawing-controls { display: flex; flex-wrap: wrap; gap: 15px; padding: 15px 0; align-items: center; } .ank-drawing-btn { padding: 10px 16px; background-color: #3b82f6; color: white; border: none; border-radius: 6px; cursor: pointer; transition: background-color 0.2s; font-weight: 500; } .ank-drawing-btn:hover { background-color: #2563eb; } /* Notifications */ .ank-notification { position: fixed; top: 20px; right: 20px; padding: 15px 20px; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); background-color: white; display: flex; align-items: center; justify-content: space-between; z-index: 10000; transform: translateX(120%); transition: transform 0.3s ease-out; max-width: 350px; } .ank-notification.ank-notification-show { transform: translateX(0); } .ank-notification.ank-notification-hide { transform: translateX(120%); } .ank-notification-info { border-left: 4px solid #3b82f6; } .ank-notification-success { border-left: 4px solid #10b981; } .ank-notification-warning { border-left: 4px solid #f59e0b; } .ank-notification-error { border-left: 4px solid #ef4444; } .ank-notification-content { flex: 1; margin-right: 15px; } .ank-notification-close { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: #6b7280; } /* Empty States */ .ank-empty-state { text-align: center; padding: 40px 20px; color: #6b7280; grid-column: 1 / -1; } .ank-empty-state i { font-size: 4rem; color: #9ca3af; margin-bottom: 15px; display: block; } /* Due Count Badge */ .ank-due-count { background: #fef2f2; color: #dc2626; padding: 2px 8px; border-radius: 12px; font-size: 0.85rem; margin-left: 8px; } /* Add Button */ .ank-add-btn { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 3.5rem; height: 3.5rem; border-radius: 9999px; background-color: #3b82f6; color: white; font-size: 1.5rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); cursor: pointer; border: none; z-index: 50; } .ank-add-btn:hover { background-color: #2563eb; } /* Back Button */ .ank-back-btn { display: flex; align-items: center; gap: 8px; color: #334155; background: none; border: none; cursor: pointer; padding: 8px 0; font-size: 1rem; } .ank-back-btn:hover { color: #0ea5e9; } /* Responsive Design */ @media (max-width: 768px) { .ank-study-controls { grid-template-columns: repeat(2, 1fr); } .ank-stats-grid { grid-template-columns: repeat(2, 1fr); } .ank-folder-card, .ank-deck-card, .ank-card-item { padding: 16px; } .ank-study-card { min-height: 250px; padding: 20px; } .ank-stats-actions, .ank-settings-actions { flex-direction: column; } } @media (max-width: 480px) { .ank-stats-grid { grid-template-columns: 1fr; } .ank-study-controls { grid-template-columns: 1fr; } .ank-deck-actions .ank-study-btn { width: 100%; } } /* Utility classes */ .ank-flex { display: flex; } .ank-items-center { align-items: center; } .ank-justify-between { justify-content: space-between; } .ank-justify-end { justify-content: flex-end; } .ank-mb-4 { margin-bottom: 1rem; } .ank-mb-6 { margin-bottom: 1.5rem; } .ank-mr-2 { margin-right: 0.5rem; } .ank-mt-4 { margin-top: 1rem; } .ank-p-4 { padding: 1rem; } .ank-p-8 { padding: 2rem; } .ank-bg-gray-50 { background-color: #f9fafb; } .ank-min-h-screen { min-height: 100vh; } .ank-text-2xl { font-size: 1.5rem; } .ank-font-bold { font-weight: 700; } .ank-grid { display: grid; } .ank-grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); } .ank-gap-4 { gap: 1rem; } .ank-rounded-full { border-radius: 9999px; } .ank-shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); } .ank-cursor-pointer { cursor: pointer; } .ank-fixed { position: fixed; } .ank-bottom-6 { bottom: 1.5rem; } .ank-right-6 { right: 1.5rem; } .ank-w-14 { width: 3.5rem; } .ank-h-14 { height: 3.5rem; } .ank-text-white { color: white; } .ank-text-2xl { font-size: 1.5rem; line-height: 2rem; } .ank-bg-blue-500 { background-color: #3b82f6; } .ank-transition { transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; } .ank-block { display: block; } .sm\:ank-grid-cols-2 { @media (min-width: 640px) { grid-template-columns: repeat(2, minmax(0, 1fr)); } } .md\:ank-grid-cols-3 { @media (min-width: 768px) { grid-template-columns: repeat(3, minmax(0, 1fr)); } } .md\:ank-p-8 { @media (min-width: 768px) { padding: 2rem; } } /* Icon styling */ .ank-icon { font-size: 1.2em; vertical-align: middle; } .ank-btn-icon { margin-right: 0.5rem; } /* Dark Mode Overrides */ .dark-mode .ank-container { background-color: #121826; color: #e5e7eb; } .dark-mode .ank-folder-card, .dark-mode .ank-deck-card, .dark-mode .ank-card-item { background: #1f2937; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); } .dark-mode .ank-folder-icon { background: #1e3a5f; color: #7dd3fc; } .dark-mode .ank-deck-count, .dark-mode .ank-card-count { color: #9ca3af; } .dark-mode .ank-study-btn { background: #1e40af; } .dark-mode .ank-study-btn:hover { background: #1e3a8a; } .dark-mode .ank-progress-bar { background: #2d3748; } .dark-mode .ank-study-card { background: #1f2937; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3); } .dark-mode .ank-modal-content { background: #1f2937; box-shadow: 0 20px 25px rgba(0, 0, 0, 0.3); } .dark-mode .ank-modal-input { background: #111827; border-color: #374151; color: #f3f4f6; } .dark-mode .ank-stat-card, .dark-mode .ank-stats-section, .dark-mode .ank-bar-chart, .dark-mode .ank-settings-form { background: #1f2937; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); } .dark-mode .ank-bar-container { background: #2d3748; } .dark-mode .ank-card-editable { background: #111827; border-color: #374151; } .dark-mode .ank-card-toolbar { background: #1f2937; border-color: #374151; } .dark-mode .ank-notification { background-color: #1f2937; } .dark-mode .ank-drawing-container { background-color: #121826; } .dark-mode .ank-drawing-canvas { background-color: #1f2937; border-color: #374151; } /* Specific text color overrides */ .dark-mode .ank-folder-name, .dark-mode .ank-deck-name, .dark-mode .ank-bar-label, .dark-mode .ank-bar-count, .dark-mode .ank-stat-value, .dark-mode .ank-stat-label, .dark-mode .ank-stats-section h2 { color: #f3f4f6; } /* Button overrides */ .dark-mode .ank-btn-secondary { background: #374151; color: #f3f4f6; } .dark-mode .ank-btn-secondary:hover { background: #4b5563; } /* Input placeholder */ .dark-mode ::placeholder { color: #9ca3af; } /* Special case for due count badge */ .dark-mode .ank-due-count { background: #7f1d1d; color: #fecaca; } .ank-notification-container { position: fixed; top: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 10000; max-width: 350px; } .ank-notification-progress { position: absolute; bottom: 0; left: 0; height: 4px; width: 100%; background: rgba(255, 255, 255, 0.3); transform-origin: left; transform: scaleX(1); } @keyframes ank-progress { to { transform: scaleX(0); } } .team-result.active-team, .mc-item.active-team { background-color: rgba(0, 150, 255, 0.1); border-left: 3px solid #0096ff; } .team-result, .mc-item { cursor: pointer; transition: background-color 0.2s; } .team-result:hover, .mc-item:hover { background-color: rgba(0, 0, 0, 0.05); } .unsubscribe-btn{ width: 40px; height: 40px; border-radius: 50%; border: none; font-weight: bolder; display: flex; justify-content: center; align-items: center; background-color: #0082fc25; box-shadow: 0px 0px 2px #309bff; cursor: pointer; -webkit-text-fill-color: #0084ff; } /* Enhanced Card Modal Styles */ .ank-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; } .ank-modal.ank-active { opacity: 1; pointer-events: auto; } .ank-modal-content { background-color: white; border-radius: 0.5rem; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); position: relative; } .ank-modal-header { padding: 1.5rem; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; } .ank-close { font-size: 1.5rem; font-weight: bold; cursor: pointer; color: #6b7280; transition: color 0.2s; } .ank-close:hover { color: #1f2937; } .ank-card-content-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; padding: 1.5rem; } @media (max-width: 768px) { .ank-card-content-wrapper { grid-template-columns: 1fr; } } .ank-card-side { display: flex; flex-direction: column; gap: 0.75rem; } .ank-card-side-header { display: flex; justify-content: space-between; align-items: center; } .ank-card-counter { font-size: 0.875rem; color: #6b7280; } .ank-card-editable { min-height: 200px; padding: 1rem; border: 1px solid #e5e7eb; border-radius: 0.375rem; background-color: white; outline: none; transition: all 0.2s; } .ank-card-editable:focus { border-color: transparent; box-shadow: 0 0 0 2px #3b82f6; } .ank-card-editable[data-placeholder]:empty:before { content: attr(data-placeholder); color: #9ca3af; } .ank-toolbar-group { display: flex; align-items: center; gap: 0.25rem; padding: 0 0.5rem; border-right: 1px solid #e5e7eb; } .ank-toolbar-group:last-child { border-right: none; } .ank-toolbar-btn { padding: 0.5rem; border-radius: 0.25rem; background: none; border: none; cursor: pointer; color: #4b5563; transition: all 0.2s; } .ank-toolbar-btn:hover { background-color: #f3f4f6; color: #1f2937; } .ank-toolbar-select { padding: 0.25rem; border-radius: 0.25rem; border: 1px solid #e5e7eb; background-color: white; cursor: pointer; } .ank-toolbar-color { width: 1.75rem; height: 1.75rem; border: 1px solid #e5e7eb; border-radius: 0.25rem; cursor: pointer; padding: 0; } .ank-preview-toggle { padding: 0 1.5rem 1.5rem; display: flex; justify-content: center; } .ank-modal-actions { padding: 1.5rem; border-top: 1px solid #e5e7eb; display: flex; justify-content: flex-end; gap: 0.75rem; } /* Preview Modal Styles */ .ank-preview-content { padding: 1.5rem; } .ank-preview-card { border: 1px solid #e5e7eb; border-radius: 0.5rem; padding: 1.5rem; margin-bottom: 1rem; } .ank-preview-card-front, .ank-preview-card-back { padding: 1rem; border-radius: 0.375rem; background-color: #f9fafb; } .ank-preview-card-front { margin-bottom: 1rem; } .ank-preview-card hr { border: none; border-top: 1px dashed #d1d5db; margin: 1rem 0; } .ank-card-toolbar { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.5rem; background: #fff; border-bottom: 1px solid #e5e7eb; transition: all 0.3s ease; } .ank-card-toolbar.ank-hidden { display: none; } .ank-notification-container { position: fixed; top: 20px; right: 20px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; } .ank-notification { position: relative; padding: 15px; border-radius: 5px; color: white; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); transform: translateX(100%); transition: transform 0.3s ease; max-width: 300px; } .ank-notification-show { transform: translateX(0); } .ank-notification-hide { transform: translateX(100%); } .ank-notification-info { background-color: #3b82f6; } .ank-notification-success { background-color: #10b981; } .ank-notification-error { background-color: #ef4444; } .ank-notification-progress { position: absolute; bottom: 0; left: 0; height: 3px; width: 100%; background-color: rgba(255, 255, 255, 0.3); } .ank-notification-close { position: absolute; top: 5px; right: 5px; background: none; border: none; color: white; cursor: pointer; } @keyframes ank-progress { from { width: 100%; } to { width: 0; } } .team-result[data-subscribed="true"] { border-left: 4px solid #4CAF50; } .team-result[data-subscribed="true"] .add-team-btn { background-color: #4CAF50; cursor: not-allowed; } .ank-card-content img { max-width: 100%; max-height: 200px; display: block; margin: 0 auto; } .ank-uploaded-image { max-width: 100% !important; max-height: 200px !important; display: block !important; margin: 0 auto !important; } .ank-card-content img, .ank-card-front img, .ank-card-back img, .ank-card-preview img { max-width: 100%; max-height: 200px; display: block; margin: 0 auto; } .ank-toolbar-btn[title*="Front"] { border: 2px solid #3b82f6; } .ank-toolbar-btn[title*="Back"] { border: 2px solid #ef4444; } .ank-uploaded-image { max-width: 100%; max-height: 200px; display: block; margin: 10px auto; border: 2px dashed #ccc; padding: 5px; } .ank-uploaded-image[data-side="front"] { border-color: #3b82f6; } .ank-uploaded-image[data-side="back"] { border-color: #ef4444; } .card-preview-text { font-size: 18px; line-height: 1.6; color: var(--text-color); flex: 1; } .card-preview-text { font-size: 18px; line-height: 1.6; color: var(--text-color); flex: 1; padding: 15px; background: white; border-radius: 6px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); margin: 10px 0; overflow-y: auto; max-height: calc(100% - 40px); } .card-preview-text img { max-width: 100%; height: auto; border-radius: 4px; margin: 10px 0; } .dark-mode .question-number { background-color: #223247; -webkit-text-fill-color: #4595ff; } .question-number{ display: inline-block; background-color: rgb(11, 144, 233); -webkit-text-fill-color: white; color: white; width: 28px; height: 28px; border-radius: 0 8px 0 8px; text-align: center; line-height: 33px; font-weight: bold; margin-right:-9px; margin-left: 10px; margin-bottom: 5px;; box-shadow: 0 2px 3px rgba(0,0,0,0.2); } .nand{ margin-bottom: 0; } #quiz-control-panel { position: sticky; top: 5px; /* Reduced from 60px for better mobile viewing */ left: 50%; transform: translateX(-50%); display: flex; gap: 10px; /* Reduced gap for mobile */ align-items: center; background: rgba(255, 255, 255, 0.9); border-radius: 15px; padding: 10px 15px; /* Reduced padding for mobile */ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); z-index: 1000; transition: all 0.3s ease; width: 50%; max-width: 90%; /* Prevents panel from touching screen edges */ flex-wrap: wrap; /* Allows items to wrap on small screens */ justify-content: center; /* Centers items when they wrap */ } /* Responsive adjustments */ @media (max-width: 768px) { #quiz-control-panel { width:100%; top:5px; gap: 8px; padding: 8px 12px; border-radius: 12px; transform: translateX(-1%); } } @media (max-width: 480px) { #quiz-control-panel { width:100%; top:5px; gap: 5px; padding: 6px 10px; border-radius: 10px; transform: translateX(-1%); } } #quiz-control-panel:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15); } .control-timer { display: flex; align-items: center; text-align: center; justify-content: center; gap: 8px; cursor: pointer; padding: 2px 6px; border-radius: 10px; background: linear-gradient(145deg, #f0f0f0, #ffffff); box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1); transition: all 0.2s ease; width: 25%; } .control-timer:hover { transform: translateY(-2px); } .timer-display { font-family: 'Segoe UI', system-ui, sans-serif; font-weight: 600; font-size: 1.1rem; color: #333; text-align: center; justify-content: center; } .timer-icon { font-size: 1.2rem; } .score-counter { display: flex; gap: 10px; } .counter { position: relative; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; } .counter-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0.2; z-index: 0; } .correct-counter .counter-bg { background-color: #4CAF50; } .incorrect-counter .counter-bg { background-color: #F44336; } .counter-value { font-family: 'Segoe UI', system-ui, sans-serif; font-weight: 700; font-size: 1.1rem; z-index: 1; } .correct-counter .counter-value { color: #2E7D32; } .incorrect-counter .counter-value { color: #C62828; } .action-buttons { display: flex; gap: 8px; } .action-btn { width: 30px; height: 30px; border-radius: 8px; border: none; background: linear-gradient(145deg, #f0f0f0, #ffffff); box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.1); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; font-size: 1.5rem; } .action-btn:hover { transform: translateY(-2px); box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.15); } .action-btn .icon { font-size: 1.2rem; } .btn-1:hover { background: linear-gradient(145deg, #e3f2fd, #bbdefb); } .btn-2:hover { background: linear-gradient(145deg, #fff8e1, #ffecb3); } .mdmd{ border:2px solid red } /* AI Popup Styles */ .ai-popup { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); } .ai-popup-content { background-color: #fefefe; margin: 10% auto; padding: 20px; border-radius: 8px; max-width: 600px; max-height: 70vh; overflow-y: auto; box-shadow: 0 4px 8px rgba(0,0,0,0.1); position: relative; -webkit-text-fill-color: #000000; direction: rtl; } .ai-quote { font-style: italic; color: #555; } .ai-warning { color: #e67e22; margin-bottom: 15px; } .ai-error { color: #e74c3c; } .ai-close-btn { position: absolute; right: 15px; top: 10px; font-size: 24px; font-weight: bold; cursor: pointer; } .ai-loading { display: none; text-align: center; padding: 20px; } .ai-spinner { border: 4px solid rgba(0, 0, 0, 0.1); border-radius: 50%; border-top: 4px solid #3498db; width: 40px; height: 40px; animation: spinz 1s linear infinite; margin: 0 auto 15px; } @keyframes spinz { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .ai-popup-actions { display: flex; justify-content: flex-end; margin-bottom: 10px; } .mb-container { max-width: 900px; margin: 0 auto; padding: 20px; } .mb-banner { position: relative; height: 500px; overflow: hidden; } .mb-slides { display: flex; height: 100%; transition: transform 800ms cubic-bezier(0.33, 1, 0.68, 1); } .mb-slide { min-width: 100%; height: 100%; position: relative; } .mb-slide-img { width: 100%; height: 100%; object-fit: cover; object-position: center; } .mb-slide-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); color: white; } .mb-slide-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 12px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); } .mb-slide-desc { font-size: 1.2rem; max-width: 600px; opacity: 0.9; } .mb-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; } .mb-dot { width: 14px; height: 14px; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; transition: all 0.3s ease; } .mb-dot.mb-active { background: white; transform: scale(1.2); } .mb-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); border: none; border-radius: 50%; width: 50px; height: 50px; color: white; font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.3s ease; opacity: 0.7; } .mb-nav-btn:hover { opacity: 1; background: rgba(255, 255, 255, 0.3); } .mb-prev-btn { left: 20px; } .mb-next-btn { right: 20px; } /* Progress bar */ .mb-progress { position: absolute; top: 0; left: 0; height: 4px; background: rgb(10 108 243 / 50%); width: 100%; z-index: 10; } .mb-progress-bar { height: 100%; background: white; width: 0%; transition: width 0.1s linear; } /* Responsive design */ @media (max-width: 992px) { .mb-banner { height: 400px; } .mb-slide-title { font-size: 2rem; } .mb-slide-desc { font-size: 1rem; } } @media (max-width: 768px) { .mb-banner { height: 350px; border-radius: 12px; } .mb-slide-title { font-size: 1.8rem; } .mb-slide-overlay { padding: 30px 20px; } } @media (max-width: 576px) { .mb-banner { height: 230px; } .mb-slide-title { font-size: 1.5rem; } .mb-nav-btn { width: 40px; height: 40px; font-size: 1.2rem; } .mb-dots { bottom: 10px; } } /* Settings View Specific Styles (prefixed with st-) */ .st-form-group { margin-bottom: 1.5rem; position: relative; -webkit-margin-bottom: 1.5rem; } .st-form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: #333; -webkit-margin-bottom: 0.5rem; } .st-select, .st-input { width: 100%; padding: 0.75rem 1rem; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem; transition: border-color 0.3s; -webkit-appearance: none; -moz-appearance: none; appearance: none; -webkit-transition: border-color 0.3s; } .st-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1em; } .st-select:focus, .st-input:focus { border-color: #007bff; outline: none; box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1); -webkit-box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1); } .st-button { background-color: #007bff; color: white; border: none; padding: 0.75rem 1.5rem; border-radius: 4px; font-size: 1rem; cursor: pointer; transition: background-color 0.3s; -webkit-transition: background-color 0.3s; width: 100%; margin-top: 1rem; } .st-button:hover { background-color: #0069d9; } .st-message { margin-top: 1rem; padding: 0.75rem 1rem; border-radius: 4px; text-align: center; } .st-message.success { background-color: #d4edda; color: #155724; } .st-message.error { background-color: #f8d7da; color: #721c24; } /* Responsive adjustments */ @media (max-width: 768px) { .st-select, .st-input { padding: 0.5rem 0.75rem; font-size: 0.9rem; } .st-button { padding: 0.5rem 1rem; font-size: 0.9rem; } }