* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body {
    font-size: 1.6rem;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
        sans-serif;
}

button {
    border: none;
    outline: none;
    background: transparent;
    cursor: pointer;
}

.btn {
    border: 2px solid #ccc;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
}

header,
article {
    width: min(740px, 90%);
    margin: 20px auto 0;
}

header {
    position: sticky;
    top: 0;
    padding: 20px 0;
    background: #fff;
}

article p {
    margin: 10px 0;
}

article img {
    max-width: 100%;
}

.popzy__backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity, visibility;
    transition-duration: 0.3s;
}

.popzy--show {
    opacity: 1;
    visibility: visible;
}

.popzy--show .popzy__container {
    transform: scale(1);
}

.popzy__container {
    position: relative;
    width: min(600px, 90%);
    padding: 20px;
    border-radius: 6px;
    background: #fff;
    transform: scale(0);
    transition: transform 0.3s;
}

.popzy__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    color: #666;
    background: #ebebeb;
    font-size: 2rem;
    border: none;
    outline: none;
}

.popzy__close:hover {
    color: #333;
    cursor: pointer;
}

.popzy__content {
    max-height: 80vh;
    overflow-y: auto;
}

.popzy__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 20px;
}

.popzy__btn {
    padding: 8px 20px;
    color: #fff;
    background: #34495e;
}

.popzy__btn--primary {
    background: #3498db;
}

.popzy__btn--danger {
    background: #e74c3c;
}

.popzy__btn--pull-left {
    margin-right: auto;
}

.popzy--no-scroll {
    overflow: hidden;
}
