/* stil.css - diskmaskin.silent.se */
/* CHANGED 2026-06-28 (Tomas & Claude): UTF-8, responsive layout, improved readability, popup styles */

/* === Reset & base === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Verdana, Geneva, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #222;
    background: #fff;
    padding: 1.5rem 1rem;
}

/* === Layout === */
.page-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

/* === Intro box === */
.intro-box {
    background: #E8E8E8;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

.intro-box p {
    margin-bottom: 0.75rem;
}

.intro-box p:last-child {
    margin-bottom: 0;
}

/* === Typography === */
h1 {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1.25rem;
    color: #111;
}

h2 {
    font-size: 1.15rem;
    font-weight: bold;
    margin: 2rem 0 0.6rem;
    color: #111;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.25rem;
}

p {
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}

li {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}

ul, ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
}

hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 2rem auto;
}

/* === Märkeslista === */
.brand-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.brand-list li a {
    display: inline-block;
    border: 1px solid #ccc;
    padding: 0.4rem 0.9rem;
    border-radius: 2px;
    font-size: 0.9rem;
}

.brand-list li a:hover {
    border-color: #555;
    color: #C1044B;
    text-decoration: none;
}

/* === Links === */
a {
    color: #000099;
    text-decoration: none;
}
a:visited {
    color: #000099 !important;
}
a:hover, a:active {
    color: #C1044B;
    text-decoration: underline;
}

.dead-link {
    color: #888;
    text-decoration: none;
    cursor: default;
}

/* === Footer === */
.page-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 2rem;
    line-height: 1.6;
    width: 100%;
}
.page-footer a {
    color: #aaa;
}
.page-footer a:hover {
    color: #C1044B;
}

/* === Adapted-by === */
.adapted-by {
    text-align: center;
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.5rem;
    line-height: 1.6;
}
.adapted-by a {
    color: #aaa;
}
.adapted-by a:hover {
    color: #C1044B;
}

/* === Popup === */
#popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 1000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
}

#popup-box {
    background: #fff;
    max-width: 560px;
    width: 100%;
    padding: 2rem;
    border-radius: 4px;
    margin: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

#popup-box h2 {
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}

#popup-box p {
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
    color: #333;
}

#popup-close {
    display: block;
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.75rem;
    background: #444;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    font-family: Arial, Verdana, Geneva, Helvetica, sans-serif;
    cursor: pointer;
    letter-spacing: 0.05em;
}
#popup-close:hover {
    background: #222;
}

.popup-privacy {
    font-size: 0.8rem !important;
    color: #888 !important;
    margin-top: 1rem !important;
    border-top: 1px solid #eee;
    padding-top: 0.75rem;
}
.popup-privacy a {
    color: #666;
}

@media (max-width: 600px) {
    #popup-close {
        font-size: 1.2rem;
        padding: 1rem;
    }
}

/* === History button === */
#popup-trigger {
    display: inline-block;
    margin: 0.5rem auto 1.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    background: none;
    border: 1px solid #aaa;
    border-radius: 3px;
    cursor: pointer;
    color: #555;
    font-family: Arial, Verdana, Geneva, Helvetica, sans-serif;
}
#popup-trigger:hover {
    border-color: #555;
    color: #222;
}
.trigger-wrapper {
    text-align: center;
}
