body { user-select: none; font-family: monospace, Arial, sans-serif; background: url(https://images.pexels.com/photos/167682/pexels-photo-167682.jpeg); background-position: center; background-size: cover; background-repeat: no-repeat; background-attachment: fixed; position: relative; } body::after { content: ""; position: fixed; /* Fixed to ensure it stays visible while scrolling */ top: 0; left: 0; width: 100%; height: 100%; background: url('watermark.png') repeat; /* Repeating watermark */ background-size: 110px 85px; /* Adjust size as needed */ opacity: 0.06; /* Semi-transparent */ z-index: 9999; /* High z-index to place it above other content */ pointer-events: none; /* Ensures the watermark does not block interactions */ } .quiz-container, button, #results { position: relative; /* Ensures these elements remain in the normal stacking context */ z-index: 1; /* Keeps them below the watermark */ } .navbar-toggler:hover { background: #dee2e6; } /* Timer container styling */ /* Center the countdown timer horizontally and vertically */ .countdown { margin: 0 auto; /* Center horizontally */ display: flex; gap: 30px; font-family: sans-serif; justify-content: center; /* Center horizontally */ align-items: center; /* Center vertically */ height: 40vh; /* Full viewport height to vertically center */ } .time-section { text-align: center; font-size: 30px; } .time-group { display: flex; gap: 10px; } .time-segment { display: block; font-size: 100px; font-weight: 900; width: 100px; } .segment-display { position: relative; height: 100%; } .segment-display__top, .segment-display__bottom { overflow: hidden; text-align: center; width: 100%; height: 50%; position: relative; } .segment-display__top { line-height: 1.5; color: #eee; background-color: #111; } .segment-display__bottom { line-height: 0; color: #fff; background-color: #333; } .segment-overlay { position: absolute; top: 0; perspective: 400px; height: 100%; width: 100px; } .segment-overlay__top, .segment-overlay__bottom { position: absolute; overflow: hidden; text-align: center; width: 100%; height: 50%; } .segment-overlay__top { top: 0; line-height: 1.5; color: #fff; background-color: #111; transform-origin: bottom; } .segment-overlay__bottom { bottom: 0; line-height: 0; color: #eee; background-color: #333; border-top: 2px solid black; transform-origin: top; } .segment-overlay.flip .segment-overlay__top { animation: flip-top 0.8s linear; } .segment-overlay.flip .segment-overlay__bottom { animation: flip-bottom 0.8s linear; } @keyframes flip-top { 0% { transform: rotateX(0deg); } 50%, 100% { transform: rotateX(-90deg); } } @keyframes flip-bottom { 0%, 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0deg); } } /* Responsive Styles */ /* Default styles for larger devices (desktop/PC) */ @media (min-width: 951px) { /* All sections (days, hours, minutes, seconds) will be displayed */ .time-section { display: block; } } /* For tablets and phones (max-width 768px) */ @media (max-width: 1050px) { /* Hide everything except the 'days' section */ #hours, #minutes, #seconds { display: none; } /* Adjust the gap and layout */ .countdown { margin-top: 2rem; gap: 0px; /* Remove extra gap on small devices */ } .time-section { font-size: 50px; /* Increase the size of the days on small screens */ } } /* Quotes */ .quote-container { width: 80%; max-width: 90%; padding: 40px; background: rgba(255, 255, 255, 0.2); border-radius: 15px; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.3); text-align: center; margin: 2rem auto 9rem; font-family: 'Courier New', Courier, monospace; } .quote-text { font-size: 26px; font-style: italic; color: #333; line-height: 1.6; margin-bottom: 15px; } .quote-author { font-size: 20px; font-weight: bold; color: #555; text-align: right; } @media (max-width: 768px) { .quote-container { width: 90%; padding: 30px; } .quote-text { font-size: 20px; } .quote-author { font-size: 15px; } } /* Books */ .scrollable-text { overflow-y: auto; max-height: 150px; /* You can adjust this based on the card design */ scrollbar-width: thin; /* Firefox */ scrollbar-color: #4CAF50 #f1f1f1; /* Scrollbar thumb and track colors for Firefox */ } /* Custom Scrollbar for WebKit browsers (Chrome, Safari) */ .scrollable-text::-webkit-scrollbar { width: 2px; /* Width of the scrollbar */ } .scrollable-text::-webkit-scrollbar-track { background: #f1f1f1; /* Track color */ border-radius: 10px; } .scrollable-text::-webkit-scrollbar-thumb { background-color: #4CAF50; /* Scrollbar thumb color */ border-radius: 10px; border: 2px solid #f1f1f1; /* Adds padding inside the thumb */ } /* Hover effect for the scrollbar thumb */ .scrollable-text::-webkit-scrollbar-thumb:hover { background-color: #3e8e41; /* Darker shade on hover */ } /* Base link style */ .scrollable-text a { color: #007bff; /* Bootstrap primary link color */ text-decoration: none; /* Remove underline */ transition: all 0.3s ease; /* Smooth transition for the hover effect */ padding-bottom: 2px; /* Adds space for the underline effect */ position: relative; /* Required for the underline effect */ } /* Hover effect for the links */ .scrollable-text a:hover { color: #40A4FF; /* Change link color on hover */ text-decoration: underline; /* Optionally add an underline on hover */ background-color: rgba(76, 175, 80, 0.1); /* Adds a light green background */ } /* Optional underline animation on hover */ .scrollable-text a::after { content: ''; position: absolute; width: 0; height: 2px; display: block; background: #39FF14; /* Color underline */ transition: width 0.3s; bottom: 0; /* Position it at the bottom */ left: 0; } .scrollable-text a:hover::after { width: 100%; /* On hover, the underline expands */ } /* Focus effect (for accessibility) */ .scrollable-text a:focus { outline: none; /* Remove default outline */ box-shadow: 0 0 5px #39FF14; /* Add a subtle color shadow */ } .card { transition: transform 0.2s; background: rgba(245, 245, 245, 0.86); border: 1px solid black; } .card:hover { transform: translateY(-10px); } .card-date { color: #777; font-size: 0.9rem; margin-bottom: 5px; } .card-title { font-size: 1.1rem; font-weight: bold; margin-bottom: 10px; } .card-text { font-size: 1rem; color: #555; margin-bottom: 15px; } .btn-read-more { background-color: green; color: #fff; border-radius: 20px; padding: 5px 15px; margin-top: 5px; font-size: 0.9rem; text-transform: uppercase; border: none; transition: background-color 0.3s; } .btn-read-more:hover { background-color: rgb(71, 255, 86); } /* Ensure consistent image size */ .card-img-top { height: 200px; /* Set a fixed height */ width: 100%; /* Set the width to fill the container */ object-fit: cover; /* Maintain aspect ratio and fill the space */ border-top-left-radius: 8px; /* To match card border radius */ border-top-right-radius: 8px; /* To match card border radius */ } /* Style for the quiz container */ .quiz-container { background: #fff; border-radius: 10px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); padding: 20px; width: 100%; text-align: left; box-sizing: border-box; } /* Style for the main heading */ h1 { font-size: 2rem; margin-bottom: 60px; text-align: center; } /* Style for each quiz item (question) */ .quiz-item { background: #F8F8F8; padding: 0.5rem 0; margin-bottom: 50px; border: 2px solid black; box-shadow: 0 0 10px rgba(0, 0, 0, .5); } /* Style for question numbering */ .question-number { font-size: 1.2rem; font-weight: bold; padding: 0 1.5rem; } .question-divider { border: none; border-top: 1px solid black; margin: 10px 0; width: 100%; /* Adjust this percentage as needed */ margin-left: auto; margin-right: auto; /* Centers the line */ } /* Style for question headings */ .quiz-item h3 { font-size: 1.4rem; font-family: 'Courier New', Courier; margin-bottom: 20px; padding: 0 1.5rem; } /* Style for images in the quiz */ .question-image { max-width: 45%; height: auto; margin: 0.2rem 0; padding: 0 2rem; } .solution-image { max-width: 85%; height: auto; padding: 0 1rem; } /* Style for the list of choices */ ul { font-size: 1.2rem; font-family: 'Courier New', Courier; list-style-type: none; padding: 0 2rem; } li { line-height: 2rem; } input, label { cursor: pointer; } /* Style for correct answer labels */ .correct-answer { background-color: #d4edda; border-left: 5px solid #28a745; padding-left: 10px; font-weight: bold; color: #155724; } /* Style for buttons (submit and reload) */ button { background: #28a745; color: white; border: none; padding: 10px; border-radius: 5px; cursor: pointer; width: auto; text-align: center; margin-top: 20px; margin-bottom: 20px; } /* Style for button hover effect */ button:hover { background: #218838; } /* Style for the results container */ #results { display: flex; font-size: 18px; text-align: left; } #results h2 { margin-left: 20px; margin-top: 20px; font-size: 29px; text-align: center; justify-content: center; } /* Style for the "Show Image" button */ .show-image-btn { background: #007bff; color: white; border: none; padding: 8px 16px; border-radius: 5px; cursor: pointer; margin-top: 10px; margin-left: 2rem; } /* Style for "Show Image" button hover */ .show-image-btn:hover { background: #0056b3; } /* Responsive styles */ @media (max-width: 768px) { h1 { font-size: 1.9rem; } .question-number { font-size: 1.1rem; } .quiz-item h3 { font-size: 1.2rem; } ul { font-size: 1.1rem; } button { padding: 8px; font-size: 14px; } } body.no-select { user-select: none; /* Prevent text selection */ } @media (max-width: 480px) { h1 { font-size: 1.8rem; } .question-number { font-size: 1rem; padding: 0 0.5rem; } .quiz-item h3 { font-size: 1rem; padding: 0 0.5rem; } .question-image { max-width: 85%; height: auto; margin: 0.2rem 0; padding: 0 0.5rem; } ul { font-size: 0.9rem; padding: 0 0.2rem; } button { padding: 6px; font-size: 12px; } } @media print { html, body { display: none; /* hide whole page */ } } /*Progress Bar*/ .progress-container { margin: 5px auto; width: auto; max-width: 600px; } .progress { height: 30px; border-radius: 15px; overflow: hidden; background-color: #2c2f3350; } .progress-bar { font-weight: bold; }