.app {
    padding: 20px;
    font-family: sans-serif;
}

button {
    cursor: pointer;
}

h1, h2, p {
    margin-bottom: 1rem;
}

h3 {
    margin-bottom: 0.4rem;
}

.section {
    margin-bottom: 20px;
}

.url-form {
    display: flex;
    gap: 10px;
}

.url-input {
    width: 300px;
}

.error {
    color: red;
    margin-bottom: 20px;
}

.content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.preview-container {
    max-width: 400px;
}

.preview-image {
    max-width: 100%;
}

.exif-container {
    flex: 1;
    min-width: 300px;
}

.exif-summary {
    margin: 0 0 20px 0;
    padding: 0;
}

.exif-field {
    display: flex;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.exif-field:last-child {
    border-bottom: none;
}

.exif-field dt {
    font-weight: 600;
    color: #666;
    width: 120px;
    flex-shrink: 0;
}

.exif-field dd {
    margin: 0;
}

.no-data {
    color: #999;
    font-style: italic;
}

.raw-data {
    margin-top: 20px;
}

.raw-data summary {
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.exif-data {
    background: #f4f4f4;
    padding: 10px;
    overflow: auto;
    max-height: 400px;
    font-size: 12px;
    margin-top: 10px;
}
/*
see https://www.joshwcomeau.com/css/custom-css-reset/
*/

/* 1. Box-sizing model */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    /* 3. Enable keyword animations */
    interpolate-size: allow-keywords;
}


* {
    /* 2. Remove default margin */
    margin: 0;

    /*
        3. Add accessible line-height 
        see https://kittygiraudel.com/2020/05/18/using-calc-to-figure-out-optimal-line-height/
    */
    line-height: calc(2px + 2ex + 2px);
}

body {
    /* 4. Improve text rendering */
    -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input, button, textarea, select {
    font: inherit;
}

/* 7. Avoid text overflows */
p {
    text-wrap: pretty;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* 8. Improve line wrapping */
h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
    overflow-wrap: break-word;
}


/*
  9. Create a root stacking context

  __OPTIONAL__

  see https://www.joshwcomeau.com/css/custom-css-reset/#nine-root-stacking-context-10
  see https://www.joshwcomeau.com/css/stacking-contexts/
*/
#root {
    isolation: isolate;
}

/* see https://gomakethings.com/how-to-animate-scrolling-to-anchor-links-with-one-line-of-css/#accessibility-concerns */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
