/* ==================== FORCE DESKTOP VIEW ==================== */
html, body {
  min-width: 1024px !important;   /* Force desktop width */
  width: 1024px !important;
  max-width: 1024px !important;
  overflow-x: auto;               /* Scroll if smaller screens */
  margin: 0 auto;
}

/* Base body styling */
body {
  font-family: 'Noto Sans Devanagari', sans-serif;
  background: white;
  padding-top: 60px;
}

 button {
        width: 250px;
        height: 80px; /* बटन की ऊँचाई */
        font-size: 18px;
        font-weight: bold;
        border: none;
        border-radius: 8px;
        background: #007bff;
        color: white;
        cursor: pointer;
        transition: 0.3s;
    }

    button:hover {
        background: #0056b3;
    }
h3 {
  margin-bottom: 20px;
}

button {
  padding: 2px 2px;
  font-size: 16px;
}

.main-btn {
  color: black;
}

.layer-btn {
  margin-left: 20px;
  width: auto;
  padding: 10px;
}

.sub-layer-btn {
  background-color: white;
  margin-left: 40px;
}

.layer,
.sub-layer,
.explanation-box {
  margin: 10px auto;
  max-width: 600px;
  display: none;
  padding: 10px;
  background: white;
}

.show {
  display: block !important;
}

.explanation-box {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.sub-buttons > div {
  width: fit-content;
}

/* ==================== NAVBAR ==================== */
.nav-bar-scroll {
  overflow-x: auto;
  white-space: nowrap;
  margin: 5px 0;
}

.nav-bar {
  display: inline-flex;
  gap: 10px;
  min-width: max-content;
  background-color: white;
  align-items: center;
  height: 20px;
  line-height: 1;
}

.nav-bar button {
  background-color: #007bff !important;
  color: white !important;
  padding: 10px 18px !important;
  margin: 6px;
  font-size: 30px;
  font-weight: 600;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav-bar button:hover {
  background-color: #0056b3 !important;
  transform: translateY(-2px);
}

.nav-bar button.active {
  background-color: #28a745 !important;
  color: white !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* ==================== GRID HOME BUTTONS ==================== */
.sub-buttons {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(1, 1fr);
  transition: all 0.3s ease;
}

.sub-buttons.list-view {
  display: flex;
  flex-direction: column;
}

.sub-buttons.list-view > div {
  width: 100%;
}

/* ==================== IFRAME ==================== */
.iframe-wrapper {
  display: flex;
  justify-content: center;
  margin: 1.5em 0;
}

.iframe-wrapper iframe {
  width: 100%;
  max-width: 720px;
  height: 300px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* ==================== QUIZ ==================== */
.quiz-container {
  background: #fff;
  padding: 1.25em;
  margin: 2em auto;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  font-family: 'Segoe UI', sans-serif;
  max-width: 720px;
  color: #333;
  font-size: 16px !important;
}

.quiz-container h3 {
  margin-bottom: 1em;
  color: #2c3e50;
  font-size: 1.2rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5em;
}

.quiz-container .question {
  margin: 1.2em 0;
}

.quiz-container .question div:first-child {
  font-weight: 600;
  margin-bottom: 0.75em;
  font-size: 1rem;
}

.quiz-container .option {
  display: block;
  width: 100%;
  margin: 6px 0;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #f9f9f9;
  cursor: pointer;
  color: #333;
  transition: background 0.2s, transform 0.2s;
  text-align: left;
  font-size: 16px !important;
}

.quiz-container .option:hover:not(:disabled) {
  background-color: #e0e0e0;
  transform: scale(1.01);
}

.quiz-container button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.quiz-container .explanation {
  margin-top: 0.75em;
  font-size: 0.95rem;
  line-height: 1.4;
}

.quiz-container .explanation.correct {
  color: #27ae60;
}

.quiz-container .explanation.incorrect {
  color: #c0392b;
}

.quiz-container .next-btn {
  margin-top: 1.2em;
  padding: 10px 18px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.quiz-container .next-btn:hover {
  background-color: #2980b9;
}

/* ==================== INLINE CONTENT ==================== */
.inline-content {
  font-size: 16px;
  line-height: 1.5;
  color: #222;
  padding: 1em;
  border: 1px solid #ccc;
  margin: 1em 0;
  background: #f0f8ff;
}

.inline-content button,
.quiz-container button {
  font-size: 1.05em;
  padding: 8px 14px;
}

.inline-content ul li {
  font-size: 1.05em;
  margin-bottom: 6px;
}

.inline-ad {
  margin: 1em 0;
  padding: 0.5em;
  background: #eef;
  text-align: center;
}

/* ==================== BUTTON RESET ==================== */
body button:not(.quiz-container button) {
  background: yellow;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: blue;
  padding: 4px 6px;
  font: inherit;
  cursor: pointer;
  font-size: 30px;
  border-bottom: 2px solid blue;
}

body button:not(.quiz-container button):hover {
  background: none !important;
  text-decoration: underline;
  border-bottom: 2px solid darkblue;
}

/* ==================== FLOATING SOCIAL BUTTONS ==================== */
.floating-social-buttons {
  position: fixed;
  bottom: 20px;
  right: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.floating-social-buttons .social {
  width: 45px;
  height: 45px;
  background-color: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.floating-social-buttons .social:hover {
  transform: scale(1.1);
}

.floating-social-buttons .social img {
  width: 24px;
  height: 24px;
  filter: none;
}

/* Social media filters */
.social.whatsapp img {
  filter: invert(39%) sepia(77%) saturate(749%) hue-rotate(89deg) brightness(96%) contrast(91%);
}

.social.telegram img {
  filter: invert(50%) sepia(84%) saturate(745%) hue-rotate(175deg) brightness(91%) contrast(91%);
}

.social.youtube img {
  filter: invert(23%) sepia(90%) saturate(7456%) hue-rotate(2deg) brightness(102%) contrast(98%);
}

.social.instagram img {
  filter: invert(31%) sepia(90%) saturate(7486%) hue-rotate(320deg) brightness(95%) contrast(101%);
}

.social.facebook img {
  filter: invert(27%) sepia(96%) saturate(4994%) hue-rotate(212deg) brightness(95%) contrast(101%);
}

/* ==================== TABLE ==================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

th,
td {
  border: 1px solid #ddd;
  padding: 10px 14px;
  text-align: center;
}

th {
  background-color: #f8f8f8;
  font-weight: bold;
  color: #333;
}

tr:nth-child(even) {
  background-color: #f4f4f4;
}

tr:hover {
  background-color: #e2f0ff;
  transition: background-color 0.2s ease-in-out;
}

/* ==================== SHARE BUTTONS ==================== */
.share-buttons {
  margin-top: 20px;
}
.share-buttons a {
  text-decoration: none;
  color: white;
  padding: 6px 12px;
  border-radius: 5px;
  margin-right: 5px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 5px;
}
.share-whatsapp { background: #25D366; }
.share-facebook { background: #3b5998; }
.share-twitter { background: #1da1f2; }
.share-telegram { background: #0088cc; }
.share-instagram { background: #C13584; }
.share-linkedin { background: #0077b5; }
.share-email { background: #555; }

/* ==================== PRINT PROTECTION ==================== */
@media print {
  body {
    display: none;
  }
}
/* ==================== ANTI-COPY & ANTI-SCREENSHOT ==================== */

/* Disable text selection */
body, html {
  -webkit-user-select: none; /* Chrome / Safari */
  -moz-user-select: none;    /* Firefox */
  -ms-user-select: none;     /* IE/Edge */
  user-select: none;
  -webkit-touch-callout: none; /* iOS long-press */
}

/* Disable context menu hint (visual) */
body {
  -webkit-tap-highlight-color: transparent;
}

/* Watermark overlay */
.watermark {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  pointer-events: none; /* don’t block clicks */
  background-image: linear-gradient(
    -30deg,
    rgba(0,0,0,0.05) 1px,
    transparent 1px
  );
}
.watermark::before {
  content: "CONFIDENTIAL — EXAM HACKER";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-25deg);
  font-size: 32px;
  letter-spacing: 5px;
  color: rgba(0, 0, 0, 0.08);
  white-space: nowrap;
}

/* Protected note (corner tag) */
.protected-note {
  position: fixed;
  right: 12px;
  bottom: 12px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 10000;
  pointer-events: none;
}

/* Extra safety: hide content completely in print */
@media print {
  body * {
    visibility: hidden !important;
  }
  body::before {
    content: "⚠ Printing disabled";
    display: block;
    margin: 200px auto;
    font-size: 18px;
    color: #333;
    text-align: center;
  }
}
