:root {
    --primary-color: #2b3a4a;
    --secondary-color: #506478;
    --accent-color: #e67e22;
    --background-color: #f8f9fa;
    --note-background: #fff3e0;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: orangered;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    max-width: 1337px;
    margin: 0 auto;
    background-color: var(--background-color);
}

h1,
h2,
h3 {
    color: var(--secondary-color);
    margin-top: 0.125rem;
}

h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

ul {
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
}

.note {
    background-color: var(--note-background);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-color);
    border-radius: 4px;
    margin: 1.5rem 0;
}

.note p {
    margin: 0.5rem 0;
}

.under-heading {
    font-size: smaller;
    color: var(--secondary-color);
    font-style: italic;
}

.image-format-compare-holder {
    margin: auto;
    text-align: center;
}

.image-format-comparison {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.125rem;
    justify-content: center;
    align-items: center;
}

.image-format-comparison li {
    list-style-type: none;
    background-color: #f0f0f0;
    border-left: 4px solid var(--accent-color);
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    width: 384px;
    height: 220px;
}

.image-format-comparison img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 2px;
    margin-bottom: 0.125rem;
    cursor: zoom-in;
    transition: transform 0.2s ease-out;
    /* Slower transition */
    transform-origin: center;
    will-change: transform;
}

/* Remove any existing hover states as they're now handled by JS */
.image-format-comparison img:hover,
.image-format-comparison li:hover img {
    transform: none;
}

.image-format-comparison .winner {
    font-weight: bolder;
}

.no-link-styling {
    text-decoration: none;
    color: unset !important;
    cursor: pointer;
}