/* General reset and basic accessibility styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 100%;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 20px;
    margin: 0;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Typography and colors for headers and links */
h1 {
    color: #fff;
}

h2 {
    color: #003399;
}

h1 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p, ul {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

a {
    color: #0056b3;
    text-decoration: none;
}

a:focus, a:hover {
    text-decoration: underline;
}

/* Header styles with Hertfordshire Police branding */
.header {
    background-color: #003399;
    color: white;
    padding: 20px;
    text-align: center;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header img {
    width: 100px;
    vertical-align: middle;
    margin-bottom: 10px;
}

.header h1 {
    display: block;
    font-size: 1.8em;
}

/* Content area styles */
.content {
    padding: 20px;
    background: white;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-in-out;
}

@keyframes fadeInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* List styles to improve spacing */
ul {
    padding-left: 25px; /* General reset and accessibility styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }
    
    html {
        font-size: 100%;
    }
    
    body {
        font-family: Arial, sans-serif;
        background-color: #f4f4f4;
        color: #333;
        margin: 0;
    }
    
    /* Header styles with Hertfordshire Police branding */
    .header {
        background-color: #003399;
        color: white;
        text-align: center;
        padding: 20px 0;
        margin-bottom: 20px;
        position: relative;
    }
    
    .header img {
        width: 80px;
        vertical-align: middle;
    }
    
    .header h1 {
        margin: 10px 0 0 0;
        font-size: 1.8rem;
        font-family: 'Georgia', serif;
    }
    
    /* Main content styles */
    .content {
        max-width: 800px;
        margin: 0 auto;
        padding: 20px;
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    p {
        text-align: center;
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    /* Religion list and links */
    .religion-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .religion-link {
        display: inline-block;
        width: 100%;
        max-width: 600px;
        padding: 15px;
        margin: 10px 0;
        background-color: #003399;
        color: white;
        text-align: center;
        text-decoration: none;
        font-size: 1.2rem;
        font-weight: bold;
        border-radius: 8px;
        transition: background-color 0.3s ease-in-out;
    }
    
    .religion-link:hover {
        background-color: #0056b3;
    }
    
    /* Footer */
    .footer {
        text-align: center;
        padding: 10px;
        background-color: #003399;
        color: white;
        font-size: 1rem;
        position: relative;
        margin-top: 40px;
    }
    
    /* Mobile responsiveness */
    @media (min-width: 600px) {
        .content {
            max-width: 1000px;
        }
    
        .religion-link {
            width: 50%;
        }
    }
    /* Adds padding to the left of the list */
    list-style-type: disc; /* Standard bullet points */
}

li {
    margin-bottom: 10px; /* Adds space between list items */
}

/* Styling for buttons */
.button {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background-color: #003399;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 1.125rem;
    margin: 20px 0;
    transition: background-color 0.3s ease-in-out;
}

.button:hover, .button:focus {
    background-color: #0056b3;
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Mobile-first responsive design */
@media (min-width: 600px) {
    body {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Dark Mode Styles */
.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

.dark-mode .content {
    background-color: #1e1e1e;
    color: #ffffff;
}

.dark-mode .religion-link {
    background-color: #444;
    color: #ffffff;
}

.dark-mode .religion-link:hover {
    background-color: #666;
}

.dark-mode .footer,
.dark-mode .header {
    background-color: #222;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0078d7;
}

input:checked + .slider:before {
    transform: translateX(26px);
}
