/* * style.css - safety/over-18 directory * * This file contains CSS styles specific to the 'over-18' subdirectory of the 'safety' folder. * It includes styles for content filtering and visual presentation in a mature or adult-oriented context. * * The styles are designed to ensure appropriate content visibility and display, * with consideration to age-appropriate content consumption. */ /* General styling for the over-18 section */ .over-18 { display: none; } /* Show content when the user is mature enough */ .mature { display: block; } /* Style for the overlay that indicates maturity level */ .maturity-indicator { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(255, 255, 255, 0.7); z-index: 1000; opacity: 0; transition: opacity 0.3s ease; } .maturity-indicator.active { opacity: 1; } /* Style for the maturity level indicator text */ .maturity-level-text { position: absolute; top: 10px; left: 10px; color: #000; font-size: 16px; font-weight: bold; pointer-events: none; } /* Style for the close button in the maturity indicator */ .close-btn { position: absolute; top: 10px; right: 10px; color: #fff; background-color: #ff4d4d; border-radius: 50%; padding: 5px 10px; cursor: pointer; font-size: 16px; line-height: normal; } .close-btn:hover { background-color: #cc3333; } /* Style for the overlay container */ .overlay-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 1000; opacity: 0; transition: opacity 0.3s ease; } .overlay-container.active { opacity: 1; } /* Style for the overlay content */ .overlay-content { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; color: #fff; font-family: sans-serif; font-size: 24px; line-height: 30px; background-color: rgba(0, 0, 0, 0.8); padding: 20px; border-radius: 10px; } /* Style for the close button in the overlay */ .close-btn-overlay { position: absolute; top: 10px; right: 10px; color: #fff; background-color: #ff4d4d; border-radius: 50%; padding: 5px 10px; cursor: pointer; font-size: 16px; line-height: normal; } .close-btn-overlay:hover { background-color: #cc3333; } /* Style for the overlay content title */ .title { margin-bottom: 15px; font-size: 28px; color: #eee; font-weight: bold; } /* Style for the overlay content paragraph */ .paragraph { font-size: 18px; color: #ccc; } /* Style for the overlay content buttons */ .button { margin-top: 20px; padding: 10px 20px; border-radius: 5px; font-size: 16px; color: #000; background-color: #0080ff; border: none; cursor: pointer; box-shadow: 0px 2px 5px rgba(0,0,0,0.5); } .button:hover { background-color: #0055cc; }