/* CSS Reset for uniform rendering across devices */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: sans-serif; background-color: #f4f4f4; color: #333; line-height: 1.6; }

/* 1. Age Gate Layer */
#age-gate {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: white; display: flex; justify-content: center; align-items: center; text-align: center; z-index: 100;
}
.gate-box { padding: 20px; }

/* Buttons */
.btn-group { margin-top: 20px; }
button { padding: 10px 20px; margin: 0 10px; font-size: 16px; cursor: pointer; border: none; }
.btn-enter { background-color: #d9534f; color: white; }
.btn-exit { background-color: #5bc0de; color: white; }

/* 2. Main Directory Container */
#main-content {
    display: none; /* Strictly hidden by default until JS executes */
    max-width: 800px; margin: 40px auto; padding: 20px; background-color: white; border: 1px solid #ccc;
}
header hr { margin: 20px 0; border: 0; border-top: 1px solid #eee; }

/* 3. Directory Grid & Routing Cards */
.directory-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 20px;
}
.link-card {
    display: block; padding: 15px; border: 1px solid #ddd; text-decoration: none; color: black; background-color: #f9f9f9;
}
.link-card:hover { background-color: #eaeaea; }
.link-card h3 { font-size: 18px; margin-bottom: 5px; }
.link-card p { font-size: 14px; color: #555; }