@import url(./variable.css);

/*==================== 
# body
====================*/
body {
    width: 100%;
    min-height: 100vh;
}

/*==================== 
# header
====================*/
.header {
    width: 100%;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header__img {
    width: 100%;
    max-width: 480px;
    object-fit: cover;
    margin-bottom: 8px;
}

.header__pr {
    display: block;
    width: 100%;
    max-width: 480px;
    text-align: right;
}

/*==================== 
# main
====================*/
.main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 24px;
}

.main__content {
    display: grid;
    width: 100%;
    max-width: 480px;
    gap: 24px;
}

/*==================== 
# information
====================*/
.information {
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-items: center;
    width: 100%;
}

.information__question {
    display: flex;
    flex-direction: column;
    justify-self: center;
    align-items: center;
    width: 100%;
}

.information__question-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
}

.information__question-logo img {
    width: 100%;
    height: 100%;
}

.information__question-text {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px;
    background-color: var(--main-col);
    color: var(--font-white);
}

.information__answer {
    display: grid;
    grid-template: 1fr 1fr / 1fr 1fr;
    gap: 16px;
    padding: 16px;
    width: 100%;
}

.information__answer.--2checkbox {
    grid-template: 1fr / 1fr 1fr;
}

.information__img {
    width: 100%;
    transition: all .2s ease;
    visibility: visible;
}

.information__img.--hidden {
    visibility: hidden;
    width: 0;
    height: 0;
    transition: 0s;
}

.information__img>img {
    width: 100%;
    object-fit: cover;
}

.main__button-area {
    width: 100%;
    max-width: 480px;
}

/*==================== 
# checkbox
====================*/
.checkbox {
    display: flex;
    width: 100%;
    height: 100%;

}

.checkbox__check {
    display: none;
}

.checkbox__label {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    padding: 16px;
    border-radius: 8px;
    background-color: var(--main-col-right);
}

.checkbox__check:checked + 
.checkbox__label {
    background-color: var(--main-col);
}

/*==================== 
# button
====================*/
.button {
    width: 100%;
    padding: 16px;
    aspect-ratio: 1 / 0.8;
}


.button__link {
    display: block;
    width: 100%;
}

.button__img {
    width: 100%;
    object-fit: cover;
    animation-name: buttonToggle;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    transform-origin: center;
}

@keyframes buttonToggle {
    0%, 20%, 40%, 60%, 100% {
        transform: scale(1);
    }

    30%, 50% {
        transform: scale(0.95);
    }
}