/* resolutions.css */

/* Global text settings */
body {
    font-family: Arial, sans-serif;
    font-size: 11pt;
    font-weight: normal;
    line-height: 1.15;
    margin: 0; /* Remove default browser margins */
    background-color: #fff;
}

/* Page container with 0.5-inch side margins and no top/bottom margin */
.page-container {
    
    padding-left: 1in;
    padding-right: 1in;
    margin: 0 auto; /* Center horizontally */
}

/* Paragraph spacing for normal text */
p {
    margin-top: 0;
    margin-bottom: 0.5em;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: Arial, sans-serif;
    font-weight: normal;
    text-decoration: none;
    font-style: normal;
    line-height: 1.15;
}

/* Heading sizes and spacing */
h1 {
    font-size: 25pt;
    margin-top: 0pt;
    margin-bottom: 6pt;
}

h2 {
    font-size: 18.5pt;
    margin-top: 18pt;
    margin-bottom: 6pt;
}

h3 {
    font-size: 14pt;
    margin-top: 5pt;
    margin-bottom: 4pt;
}

h4 {
    font-size: 12.5pt;
    margin-top: 8pt;
    margin-bottom: 4pt;
}

h5 {
    font-size: 11pt;
    margin-top: 12pt;
    margin-bottom: 4pt;
}

h6 {
    font-size: 11pt;
    font-style: italic;
    margin-top: 12pt;
    margin-bottom: 4pt;
}

/* Add space above horizontal lines between resolutions */
.resolution + hr {
    margin-top: 18pt; /* Adjust as needed */
}



/* Image-related styles */
.resolution-image {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.resolution-image:hover {
    transform: scale(1.02);
}

.resolution-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.image-container {
    position: relative;
}

.resolution-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.single-image {
    max-width: 400px;
    margin: 0 auto;
}

.multiple-images .resolution-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Modal styles for full-size image viewing */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    cursor: pointer;
}

.modal-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}



.amendments-section {
    margin-left: 3rem;
}


.video-evidence-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.video-evidence {
    flex: 1 1 400px;
    max-width: 500px;
    text-align: center;
}

.video-evidence .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.video-evidence iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}



.filter-button {
    margin-top: 16px;
    padding: 8px 16px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: var(--button_primary-color);
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    white-space: normal;           /* allow line breaks */
    word-break: break-word;        /* break long words if needed */
    max-width: 300px;              /* control width to trigger wrapping */
}

.filter-button:hover {
    background-color: var(--button_hover-color);
}

.filter-button.active {
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--button_hover-color);
    background-color: var(--button_hover-color);
}

.petition-type-filters {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}