/* Import the main navigation styles */
@import url('style.css');

/* Override body background for rules page */
body {
    background: linear-gradient(180deg, #2d88c8, #358fd0, #69aede), 
                url('images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0;
    font-family: 'Comic Neue', cursive;
}

/* Content wrapper to work with sidebar */
.content-wrapper {
    margin-left: 80px; /* Just the main sidebar */
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0; /* Remove gap */
}

/* Rules body section */
.rules-body {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: center;
    padding: 20px;
    gap: 0px;
}


.rules-container {
    width: 100%;
    max-width: 1000px;
    margin: 0;
    padding: 40px;
    background-color: rgb(205, 204, 208);
    border: #000000 5px solid;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Title styling */
.rules-container h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 64px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

/* Last updated text */
.last-updated {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    margin-bottom: 30px;
    font-size: 0.95em;
}

/* Introduction section */
.rules-intro {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    padding: 25px;
    border-left: 5px solid #dc3545;
    margin-bottom: 35px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1);
}

.rules-intro strong {
    color: #dc3545;
    font-size: 1.1em;
}


.rules-intro ul {
    margin-top: 15px;
    margin-bottom: 15px;
}

.rules-intro p {
    margin: 10px 0;
    line-height: 1.8;
}

/* Individual rule sections */
.rule-section {
    margin-bottom: 10px;
    padding: 20px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}

.rule-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

/* Rule section headings */
.rule-section h2 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 700;
}

.rule-section h3 {
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 600;
    padding-left: 10px;
    border-left: 3px solid #95a5a6;
}

/* Lists */
.rule-section ul {
    list-style-type: disc;
    margin-left: 30px;
    line-height: 1.9;
    color: #495057;
}

.rule-section ul ul {
    list-style-type: circle;
    margin-top: 10px;
    margin-left: 25px;
}

.rule-section li {
    margin-bottom: 12px;
    color: #495057;
    font-size: 1.02em;
}

.rule-section li strong {
    color: #2c3e50;
    font-weight: 600;
}

.rule-section li bold {
    color: #000000;
    font-weight: bold;
}
/* Paragraphs */
.rule-section p {
    line-height: 1.9;
    color: #495057;
    margin-bottom: 15px;
    font-size: 1.02em;
}

.rule-section p strong {
    color: #2c3e50;
    font-weight: 600;
}

.rule-section em {
    color: #6c757d;
    font-style: italic;
}

/* Important notes/warnings */
.important-note {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    color: #856404;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.2);
}

.important-note strong {
    color: #856404;
    font-weight: 700;
}

/* Navigation styles */
.rules-nav {
    position: sticky;
    top: 80px;
    width: 200px;
    max-height: calc(100vh - 20px);
    padding: 15px 0;
    background-color: rgba(70, 69, 69, 0.26);
    border-radius: 10px 0 0 10px;
    border: 5px solid #000000;
    border-right: none;
    overflow-y: none;
    flex-shrink: 0;
    margin-right: -215px; /* Move it 3px to the right to overlap the border */
    justify-content: center;
}

.rules-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 0 10px;
}

.rules-nav li {
    margin: 0;
}
.rules-nav .nav-header {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    margin-top: 0px;
    margin-bottom: 0px;
}
.rules-nav a {
    color: #fff;
    padding: 1px 2px;
    border-radius: 5px;
    font-size: 14px;
    text-decoration: underline;
    transition: all 0.3s ease;
    display: block;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rules-nav a:hover {
    background: #ff6b6b;
    transform: scale(1.05);
}

/* Responsive design */
@media screen and (max-width: 1400px) {
    .rules-container {
        width: 100%;
    }
}

@media screen and (max-width: 1024px) {
    .rules-nav {
        display: none;
    }
    
    .rules-container {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .content-wrapper {
        margin-left: 60px;
        padding: 10px 5px;
    }
    
    .rules-container {
        width: 100%;
        padding: 20px;
    }
    
    .rules-container h1 {
        font-size: 2em;
    }
    
    .rule-section h2 {
        font-size: 1.8em;
    }
    
    .rule-section h3 {
        font-size: 1.5em;
    }
}

@media screen and (max-width: 480px) {
    .content-wrapper {
        margin-left: 0;
        padding: 10px;
    }
    
    .rules-container {
        width: 100%;
        padding: 20px;
        border-radius: 10px;
    }
    
    .rules-container h1 {
        font-size: 1.6em;
    }
    
    .rule-section {
        padding: 15px;
    }
}

/* Scrollbar styling */
.rules-container::-webkit-scrollbar {
    width: 10px;
}

.rules-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.rules-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.rules-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Scrollbar styling for rules nav */
.rules-nav::-webkit-scrollbar {
    width: 5px;
}

.rules-nav::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.rules-nav::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 5px;
}

.rules-nav::-webkit-scrollbar-thumb:hover {
    background: #ff5252;
}
/* Penal Code Sections */
.penal-section {
    margin: 40px 0;
}

.section-title {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    margin: 20px 0 0 0;
    border-radius: 8px 8px 0 0;
    font-size: 1.5em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Penal Code Table */
.penal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.penal-table thead tr {
    background: #2c3e50;
    color: #ffffff;
    text-align: left;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
}

.penal-table th,
.penal-table td {
    padding: 12px 10px;
    border: 1px solid #ddd;
    vertical-align: top;
}

/* Column Widths */
.penal-table th:nth-child(1),
.penal-table td:nth-child(1) { width: 15%; } /* Offense */
.penal-table th:nth-child(2),
.penal-table td:nth-child(2) { width: 10%; text-align: center; } /* Classification */
.penal-table th:nth-child(3),
.penal-table td:nth-child(3) { width: 8%; text-align: center; } /* Max Time */
.penal-table th:nth-child(4),
.penal-table td:nth-child(4) { width: 8%; text-align: center; } /* Max Fine */
.penal-table th:nth-child(5),
.penal-table td:nth-child(5) { width: 7%; text-align: center; } /* License Points */
.penal-table th:nth-child(6),
.penal-table td:nth-child(6) { width: 6%; text-align: center; } /* Gun License */
.penal-table th:nth-child(7),
.penal-table td:nth-child(7) { width: 46%; } /* Description */

.penal-table tbody tr:nth-of-type(even) {
    background-color: rgba(240, 240, 240, 0.8);
}

.penal-table tbody tr:hover {
    background-color: rgba(102, 126, 234, 0.1);
    transform: scale(1.001);
}

/* Classification Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.capital {
    background: #e74c3c;
    color: white;
}

.badge.felony {
    background: #f39c12;
    color: white;
}

.badge.misdemeanor {
    background: #3498db;
    color: white;
}

/* Yes indicator */
.yes {
    color: #e74c3c;
    font-weight: bold;
}
.badge.infraction {
    background: #95a5a6;
    color: white;
}
/* Wider layout specifically for Penal Code page */
.penal-code-page .rules-body {
    max-width:120% !important;
    padding: 40px 20px;
}

.penal-code-page .rules-container {
    max-width: 120% !important;
}