html,
body {
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f0f0;
    min-height: 100%;
}

.alert {
    width: 100%;
    background: #fed824;
    padding: 10px;
    box-sizing: border-box;
}

.alert > .wrapper {
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

.wrapper {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
}

.item {
    width: 30%;
    padding: 5px;
}

.image {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px #000;
    transition: box-shadow 0.3s;
}

.image:hover {
    box-shadow: 0 0 30px #000;
}

.image img {
    display: block;
    width: 100%;
    height: auto;
}

.item.content.tablet {
    display: none;
}

.item.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.image video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 360 / 480;;
}

.layout {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: stretch;
    width: 100%;
    min-height: 100%;
}

.content {
    margin-bottom: 20px;
    padding: 20px 0 0;
}

.modal {
    display: none;
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
}

.modal-box {
    width: 100%;
    max-width: 750px;
    background-color: #000;
    box-shadow: 0 0 40px 5px rgba(255, 255, 255, .15);
    padding: 30px;
}

.modal-title {
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
}

.modal-text {
    color: #ccc;
    font-size: 20px;
    text-align: center;
}

.modal-warn {
    display: none;
    color: #fff;
    font-size: 25px;
    text-align: center;
}

.modal-copy {
    font-size: 12px;
    color: #969696;
    text-align: center;
}

.modal-btns {
    display: flex;
    gap: 14px;
    margin: 20px 0 25px;
    justify-content: center;
}

.modal-btn {
    font-size: 20px;
    font-weight: bold;
    appearance: none;
    padding: 16px;
    border: none;
    margin: 0;
    border-radius: 4px;
    width: 50%;
    max-width: 336px;
    cursor: pointer;
}

.modal-btn.yes {
    background: #f90;
    color: #000;
}

.modal-btn.yes:hover {
    background: #ffa31a;
}

.modal-btn.no {
    background: #1f1f1f;
    color: #fff;
}

.modal-btn.no:hover {
    background: #3f3f3f;
}

.footer {
    width: 100%;
    background: #000;
    padding: 20px 15px 15px;
    text-align: center;
    color: #fff;

    box-sizing: border-box;
}
.footer a {
    display: inline-block;
    color: inherit;
    text-decoration: none;
    font-size: 13px;
    margin-bottom: 10px;
}
.footer a:hover {
    text-decoration: underline;
}

body.modal-state .modal {
    display: flex;
}

body.modal-state .content {
    display: none;
}

body.modal-no .modal-title,
body.modal-no .modal-text,
body.modal-no .modal-btns,
body.modal-no .modal-copy {
    display: none;
}

body.modal-no .modal-box {
    box-shadow: none;
}

body.modal-no .modal-warn {
    display: block;
}

body.state-empty .modal-box {
    display: none;
}

@media screen and (max-width: 768px) {
    .item {
        width: 48%;
    }

    .item.content.tablet {
        display: inline-flex;
    }

    .modal {
        align-items: flex-start;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .modal-btns {
        gap: 30px;
        flex-direction: column;
        align-items: center;
    }

    .modal-btn {
        width: 100%;
    }
}

@media screen and (max-width: 500px) {
    .item {
        width: 100%;
    }

    .modal-box {
        padding: 15px;
    }

    .modal-title {
        font-size: 30px;
    }

    .modal-text {
        font-size: 17px;
    }

}
