@import url('https://fonts.googleapis.com/css2?family=Lobster+Two&family=Lato&display=swap');

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

body.no-scroll {
    overflow-y: hidden;
}

html {
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    color: #3b3b3b;
}

h1, h2, h3, h4, h5 {
    font-family: 'Lobster Two', cursive;
    margin: 10px 15px 5px;
    display: inline-block;
}
h1 { font-size: 2rem; }
h1 { font-size: 1.8rem; }
h1 { font-size: 1.6rem; }
h1 { font-size: 1.4rem; }
h1 { font-size: 1.2rem; }

p {
    padding: 10px 15px;
}

a,
a:visited,
a:link {
    line-height: 1;
    text-decoration: none;
    color: #8837d4;
}

a > span {
    margin-top: 10px;
}

a:focus,
a:hover,
a:active {
    text-decoration: underline;
    color: #5e2494;
}

.wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 25px auto;
}

.wrapper > h2 {
    margin-bottom: 25px;
}

.wrapper-dark {
    background-color: #ececec;
    padding: 20px 0;
}

.wrapper.hero {
    /* Background */
    background-color: #c8d0dd;
    background-image: url("assets/images/hero-bg-min.webp");
    background-position: bottom center;
    background-size: 1200px auto;

    /* Style */
    font-family: 'Lobster Two', cursive;
    padding: 100px 20px 20px;
    min-height: 600px;
    color: white;
    text-align: center;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    position: relative;
    margin-top: 0;
}

.wrapper.hero .abs {
    position: absolute;
    bottom: 0px;
}

.wrapper.hero .abs.left { left: 0; }
.wrapper.hero .abs.right { right: 0; }

.wrapper.hero h1 {
    font-size: 6rem;
    margin: 0;
    padding-top: 80px;
}

.wrapper.hero p {
    font-size: 2rem;
}

.wrapper.hero ul {
    list-style: none;
    position: absolute;
    top: 20px;
    right: 20px;
}

.wrapper.hero ul li {
    display: inline-block;
    padding: 10px;
    cursor: pointer;
    user-select: none;
}

.wrapper > p {
    margin-bottom: 10px;
}

.wrapper.details {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

.wrapper.details .detail {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.wrapper.details .detail:nth-child(2n) {
    flex-direction: row-reverse;
}

.wrapper.details .detail img {
    padding: 20px;
    border-radius: 26px;
    max-height: 330px;
}

.wrapper.details .detail .text {
    width: 50%;
    padding: 40px;
    vertical-align: middle;
}

.wrapper.details .detail .text h2,
.wrapper.details .detail .text p {
    vertical-align: middle;
    line-height: normal;
}

.wrapper.gallery .gallery {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.wrapper.gallery .gallery > img,
.wrapper.gallery .gallery .pair {
    width: 20%;
    display: inline-block;
}

.wrapper.gallery .gallery > img,
.wrapper.gallery .gallery .pair img {
    padding: 6px;
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
}

.wrapper.gallery .gallery .pair {
    display: flex;
    flex-flow: column wrap;
    justify-content: space-between;
}

.wrapper.gallery .gallery .pair img {
    width: 100%;
}

.attributions-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.attributions-list .attribution {
    width: 50%;
    display: inline-block;
    padding: 10px;
    overflow: hidden;
}

.attributions-list .attribution .img {
    height: 180px;
    overflow-y: hidden;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.attributions-list .attribution .img img {
    width: 100%;
    margin-top: -15%;
}

.attributions-list .attribution .text {
    background-color: #FFF;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

.attributions-list .attribution .text p span {
    display: inline-block;
    vertical-align: bottom;
    width: 27px;
}

.attributions-list .attribution .text p a {
    line-height: 1.3rem;
    font-size: 0.8rem;
}

.attributions-list .attribution h3 {
    margin-top: 20px;
}

.footer .copyright {
    padding: 5px 10px;
    display: flex;
    flex-wrap: wrap;
}

.footer .copyright div {
    width: 50%;
}

.footer .copyright div p {
    font-size: 0.8rem;
}

.footer .copyright .version p {
    opacity: 0.8;
    font-size: 0.7rem;
}

#modal { display: none; }
#modal.open { display: block; }

#modal #modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
}

#modal #modal-image-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
}

#modal #modal-image-wrapper #modal-image {
    width: auto;
    max-width: 80%;
    margin: 0 auto;
    display: block;
    pointer-events: none;
    z-index: 3;
    border-radius: 6px;
    box-shadow: 0px 8px 15px 2px rgba(0,0,0,0.4);
    user-select: none;
}

#modal .button {
    position: fixed;
    z-index: 4;
    top: 0;
    padding: 45px;
    cursor: pointer;
    color: #FFF;
    user-select: none;
    line-height: 1;
}

#modal #modal-close {
    top: 6px;
    right: 6px;
    padding: 45px;
}

#modal #modal-previous {
    left: 6px;
    top: calc(50% - 52px);
    padding-top: 45px;
    padding-bottom: 45px;
    padding-left: 15px;
    padding-right: 75px;
}

#modal #modal-next {
    right: 6px;
    top: calc(50% - 52px);
    padding-top: 45px;
    padding-bottom: 45px;
    padding-left: 75px;
    padding-right: 15px;
}

#modal #modal-previous.disabled,
#modal #modal-next.disabled {
    opacity: 0.2;
    pointer-events: none;
    cursor: not-allowed;
}

img.inline {
    display: inline-block;
    width: 1rem;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

@media only screen and (min-width: 769px) {
    .wrapper.hero {
        margin-bottom: -40px;
    }

    .wrapper.details {
        margin-top: 40px;
    }
}

@media only screen and (max-width: 768px) {
    .wrapper.hero {
        padding: 40px 20px 20px;
    }

    .wrapper.hero .abs {
        font-size: 1.4rem;
    }

    .wrapper.gallery .gallery > img,
    .wrapper.gallery .gallery .pair {
        width: 33%;
    }

    .attributions-list .attribution {
        width: 50%;
    }

    #modal #modal-image-wrapper #modal-image {
        max-width: 100%;
    }
}

@media only screen and (max-width: 710px) {
    .wrapper.wrapper.details .detail {
        width: 100%;
        display: block;
    }

    .wrapper.details .detail:nth-child(2) {
        flex-direction: row;
    }

    .wrapper.details .detail img,
    .wrapper.details .detail .text {
        width: 100%;
    }

    .wrapper.gallery .gallery > img,
    .wrapper.gallery .gallery .pair {
        width: 50%;
    }
}

@media only screen and (max-width: 520px) {
    .footer .copyright div {
        text-align: center;
    }

    .footer .copyright div {
        width: 100%;
    }

    .attributions-list .attribution {
        width: 100%;
    }
}

body.dark {
    color: #FFF;
    background-color: #2D2D2D;
}

body.dark .wrapper-dark {
    background-color: #161616;
}

body.dark .attribution .text {
    background-color: #2d2d2d;
}

body.dark img {
    opacity: 0.8;
}

body.dark #modal-image {
    opacity: 1;
}

body #dark-mode,
body #light-mode {
    -webkit-transition: 0.2s border-bottom;
    -moz-transition: 0.2s border-bottom;
    -ms-transition: 0.2s border-bottom;
    -o-transition: 0.2s border-bottom;
    transition: 0.2s border-bottom;
}
body.dark #dark-mode {
    padding-bottom: 4px;
    border-bottom: 2px solid #FFF;
}

body.dark #light-mode {
    border-bottom: 0px solid #FFF;
}
body #light-mode {
    padding-bottom: 4px;
    border-bottom: 2px solid #FFF;
}

body.dark a,
body.dark a:visited,
body.dark a:link,
body.dark a:focus,
body.dark a:hover,
body.dark a:active {
    color: #b59ccd;
}