* {
    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%;
}

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

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

.togbox__backdrop--show .togbox__container {
    transform: scale(1);
}

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

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

.togbox__close:hover {
    color: #333;
}

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

.togbox__footer {
    padding: 20px 0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.togbox__btn {
    padding: 8px 20px;
    color: #fff;
    background: #464e63;
}

.togbox__btn--primary {
    background: #377aad;
}

.togbox__btn--danger {
    background: rgb(196, 69, 69);
}

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

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