@import url(./variable.css);

/* #html */
html { 
    scroll-behavior: smooth;
}

/* #body */
body {
    width: 100%;
    min-width: 350px;
    background-color: var(--bg-col);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* #header */
.header {
    max-width: 750px;
    width: 100%;
    display: grid;
    gap: 24px;
    margin-bottom: 24px;
}

.header__main-visual {
    width: 100%;
    object-fit: cover;
}

.header__app-introduction-and-rating {
    width: 100%;
    display: grid;
    gap: 16px;
    padding: 0 8px;
}

@media screen and (min-width:481px) {
    .header {
        gap: 40px;
    }

    .header__app-introduction-and-rating {
        gap: 40px;
        padding: 0 24px;
    }
}

/* #app-introduction */
.app-introduction {
    width: 100%;
    height: fit-content;
    display: grid;
    gap: 24px;
    grid-template-columns: 5fr 8fr;
}

.app-introduction__image {
    width: 100%;
    object-fit: cover;
}

.app-introduction__text {
    width: 100%;
    display: grid;
    /* gap: 24px; */
    grid-template-rows: 1fr auto;
}

.app-introduction__title {
    display: grid;
    place-content: center;   
}

.app-introduction__button {
    display: grid;
    place-content: start;
}

/* #app-rating */
.app-rating {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 0 8px;
    place-items: start;
}

.app-rating__content {
    display: grid;
    gap: 4px;
    place-items: center;
}

.app-rating__support-image {
    width: 100%;
    object-fit: cover;
}

/* #get-offer-button */
.get-offer-button {
    display: grid;
    place-content: center;
    width: 100%;
    max-width: 500px;
    padding:1em;
    background-color: var(--button-col);
    border-radius: 9999px;
}

/* #main */
.main {
    max-width: 750px;
    width: 100%;
    display: grid;
    gap: 24px;
    grid-template-rows: auto auto;
}

.main__content {
    width: 100%;
    display: grid;
    gap: 24px;
}

.main__introduction {
    width: 100%;
    display: grid;
    grid-template-rows: auto auto;
    gap: 16px;
    place-items: center;
    padding-inline: 8px;
}

.main__introduction-text {
    text-align: center;
}

/* #swiper1 */
.swiper1 {
    width: 100%;
    max-width: 750px;
    padding-left: 8px;
}

/* #swiper2 */
.swiper2 {
    width: 100%;
    max-width: 750px;
}

/* #flow-of-use */
.flow-of-use {
    display: grid;
    width: 100%;
    place-items: center;
    gap: 24px;
    padding-inline: 8px;
}

.flow-of-use__flow {
    display: grid;
    width: 100%;
    place-items: center;
    gap: 16px;
}

.flow-of-use__flow-item {
    display: grid;
    grid-template-columns: 1fr 5fr;
    gap: 16px;
    padding: 16px;
    border-radius: 16px;
    background-color: var(--bg-white);
    place-items: center start;
}

.flow-of-use__flow-item.--hidden {
    display: none;
}

.flow-of-use__flow-image {
    width: 100%;
    object-fit: cover;
}

.flow-of-use__flow-texts {
    display: grid;
    gap: 4px;
}

.flow-of-use__flow-text {
    line-height: 1.4em;
}

.flow-of-use__open-button {
    border: 1px solid var(--bg-white);
    padding: 16px 2rem;
    border-radius: 9999px;
}

.flow-of-use__open-button.--hidden {
    display: none;
}

/* #rating-and-review */
.rating-and-review {
    width: 100%;
    padding-inline: 8px;
    display: grid;
    gap: 16px;
}

.rating-and-review__rating-image {
    width: 100%;
    object-fit: cover;
}

/* #registration-guidance */
.registration-guidance {
    width: 100%;
    padding-inline: 8px;
    display: grid;
    gap: 16px;
}

.registration-guidance__appeal-points {
    width: 100%;
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 16px;
}

.registration-guidance__appeal-point{
    text-align: center;
    padding: 1em;
    border: 2px solid var(--bg-white);
    border-radius: 16px;
}

.registration-guidance__guidance {
    width: 100%;
    padding: 16px;
    background-color: var(--bg-yellow);
    border-radius: 16px;
    text-align: center;
}

/* #footer */
.footer {
    max-width: 750px;
    width: 100%;
    background: var(--bg-brown);
    padding: 8px;
    display: grid;
    gap: 8px;
}

.footer__copyright {
    display: block;
    width: 100%;
    text-align: center;
}

/* #modal */
.modal-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
}

.modal-buttons__modal-open {
    margin-right: 16px;
    color: var(--font-white);
}

.modal-buttons__modal-open.--last {
    margin-right: 0;
}

.modal-background {
    background-color: rgba(0, 0, 0, .6);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 990;
    display: grid;
    place-items: center;
}

.modal-background.--hide {
    display: none;
}

.modal {
    max-width: 480px;
    width: 95%;
    height: 80vh;
    padding: 5%;
    background-color: var(--bg-white);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
}

.modal__content {
    width: 100%;
    flex: 1;
    margin-bottom: 16px;
    overflow-y: scroll;
}

.modal__content::-webkit-scrollbar {
    display: none;
}

.modal__close {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 0;
    color: var(--font-white);
    background-color: var(--bg-red);
}

.privacyPolicy,
.termOfService,
.operatorInformation {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.privacyPolicy.--hide,
.termOfService.--hide,
.operatorInformation.--hide {
    display: none;
}

.privacyPolicy__section,
.termOfService__section,
.operatorInformation__section {
    position: relative;
    display: block;
    padding-left: 12px;
}

.privacyPolicy__section::before,
.termOfService__section::before,
.operatorInformation__section::before {
    content: '';
    width: 4px;
    height: 100%;
    background-color: var(--bg-red);
    position: absolute;
    top: 0;
    left: 0;
}