html, body {
    height: 100%;    
    width: 100%;
    margin: 0;
}

body {
    overflow: clip;
}

body:after {
    position: absolute;
    z-index: -1;
    left: 0;
    top: 0;
    display: block;
    content: '';
    height: 100%;
    width: 100%;
    background-image: url('/img/line.svg');
    background-repeat: repeat;
    background-size: 100%;
}

.page-container {
    display: flex; 
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.container h1 {
    font-family: "Noto Sans CJK";
    text-align: center;
    padding: 5px;
    flex-grow: 0;
    width: fit-content;
    background-color: white;
    border: 4px dashed #ffea8d;
    box-sizing: border-box;
    border-radius: 8px;
}

.container .credits a {
    text-decoration: none;
}

.container .img-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: calc(50vh + 16px);
    width: calc(50vh + 16px);
    background: white;
    z-index: 1;
    border-radius: 8px;
    box-sizing: border-box;
}

.container .img-container input {
    height: 0px;
    margin: 0px;
}

.container .img-container .img {
    height: 100%;
    width: 100%;
    position: relative;
    content: '';
    z-index: 2;
    border: 8px dashed #ffea8d;
    border-radius: 8px;
    box-sizing: border-box;
    background-image: url(/img/marisas-peach-no-bubble.webp);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

.container .img-container input:checked+.img {
    background-image: url(/img/marisas-peach.webp);
}

footer {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    box-sizing: border-box;
    bottom: 0;
    left: 0;
}

footer .credits {
    padding: 4px;
    width: fit-content;
    background: white;
    flex-grow: 0;
    text-align: center;
    box-sizing: border-box;
}

footer .credits.left {
    border-top: 2px dashed #ffea8d;
    border-right: 2px dashed #ffea8d;
    border-top-right-radius: 8px;
}

footer .credits.right {
    border-top: 2px dashed #ffea8d;
    border-left: 2px dashed #ffea8d;
    border-top-left-radius: 8px;
}

footer .credits a {
    text-decoration: none;
    
}



@media (max-width: 480px) {
    .container h1 {
        font-size: 24px;
    }
    .container .img-container {
        width: calc(85vw + 16px);
        height: calc(85vw + 16px);
    }
    footer .credits {
        font-size: 10px;
    }
}
