/*
GLOBAL
*/

* {
    font-family: Verdana, sans-serif;
}

html, body {
    height: 100%;
}

#main {
    display: block;
    min-height: 100%;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto -200px;
    line-height: 1.5;
}

h1, h2 {
    color: #333;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #AAA;
}


/*
THEME
*/

.glass {
    position: relative;
    background-color: rgba(234, 235, 236, 0.88); /* #EAEBEC */
    border-radius: 32px;
    -webkit-box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16), inset -16px 16px 16px rgba(255, 255, 255, 0.66), inset 16px -16px 16px rgba(0, 0, 0, 0.02);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16), inset -16px 16px 16px rgba(255, 255, 255, 0.66), inset 16px -16px 16px rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(8px);
}

.glass::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
    pointer-events: none;
    border-top-left-radius: 64px;
    border-top-right-radius: 64px;
    border-bottom-left-radius: 100%;
    border-bottom-right-radius: 100%;
    -webkit-box-shadow: inset 0 -46px 32px rgba(255, 255, 255, 0.5), 0 0 4px rgba(255, 255, 255, 0.5);
	box-shadow: inset 0 -46px 32px rgba(255, 255, 255, 0.5), 0 0 4px rgba(255, 255, 255, 0.5);
}

.glass::after {
    content: "";
    display: block;
    position: absolute;
    top: 4px;
    left: 4px;
    pointer-events: none;
    width: calc(100% - 8px);
    height: calc(100% - 8px);
    border-radius: 28px;
    -webkit-box-shadow: 0 0 4px 2px rgba(0, 16, 32, 0.06), inset 0 0 12px 8px rgba(0, 16, 32, 0.06);
	box-shadow: 0 0 4px 2px rgba(0, 16, 32, 0.06), inset 0 0 12px 8px rgba(0, 16, 32, 0.06);
}

.glass > *:first-child::before,
.glass > *:first-child::after {
    content: "";
    display: block;
    position: absolute;
    top: -20px;
    left: -4px;
    margin: 32px 16px;
    width: 28px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 100%;
    transform: rotate(45deg);
    filter: blur(4px);
}

.glass > *:first-child::after {
    top: unset;
    left: unset;
    bottom: -20px;
    right: -4px;
}


/*
BODY
*/

body {
    background: #EEE;
    /*background: radial-gradient(circle, #F7F7F7 0%, #CCC 100%);*/
    background: url(/resources/body.jpg) repeat center center;
    margin: 0;
}

.container {
    display: block;
    width: 94%;
    max-width: 1280px;
    margin: 32px auto;
}

#mii {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 128px;
    height: 128px;
    border-bottom-right-radius: 32px;
    overflow: hidden;
    z-index: 999;
    background-color: #FFF;
    border-bottom: 5px solid #EEE;
    border-right: 5px solid #EEE;
    -webkit-box-shadow: 0 1em 1em rgb(0 0 0 / 15%);
	box-shadow: 0 1em 1em rgb(0 0 0 / 15%);
}

#mii img {
    width: 100%;
    height: auto;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 10;
    -webkit-transform: translate(-50%, -60%);
    transform: translate(-50%, -60%);
    display: block;
    width: 512px;
    max-width: 100%;
    max-width: calc(100% - 192px);
    padding: 48px;
    border-radius: 32px;
    text-align: center;
    opacity: 1;
    overflow: hidden;
    -webkit-transition: opacity 0.25s ease-in-out;
    transition: opacity 0.25s ease-in-out;
}

input[type="text"],
input[type="password"] {
    cursor: text;
    padding: 0.5em 1em;
    margin: 0.5em 1em;
    border: 1px solid #AAA;
    border-radius: 4px;
}

input[type="submit"] {
    cursor: pointer;
    margin: 0.5em 0;
    padding: 0.75em 1.5em;
    border: 2px solid #FFF;
    border-radius: 999em;
    background-color: #4ED4FD;
    color: #FFF;
    text-shadow: 0 0 2em rgba(0, 16, 32, 1.00);
}

input {
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    -webkit-transition: transform 0.16s ease-in-out, box-shadow 0.16s ease-in-out;
	transition: transform 0.16s ease-in-out, box-shadow 0.16s ease-in-out;
}

input:hover {
    -webkit-transform: scale(1.033);
    transform: scale(1.033);
    -webkit-box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    -webkit-transition: transform 0.20s cubic-bezier(0.33, 3.00, 0.66, 1), box-shadow 0.20s cubic-bezier(0.33, 3.00, 0.66, 1);
	transition: transform 0.20s cubic-bezier(0.33, 3.00, 0.66, 1), box-shadow 0.20s cubic-bezier(0.33, 3.00, 0.66, 1);
}


/*
ABOUT
*/

#about {
    display: block;
    text-align: center;
}

#about h1 {
    display: inline-block;
    border: 2px solid #4ED4FD;
    border-radius: 100em;
    padding: 0.75em 2.25em;
}


/*
UPLOAD
*/

#file-upload {
    text-align: center;
}

.button {
    display: inline-block;
    background-color: #FFF;
    position: relative;
    line-height: 128px;
    white-space: nowrap;
    padding: 0 160px 0 72px;
    margin: 32px 16px;
    border: 3px solid #B4B4B4;
    border-radius: 10em;
    color: #000;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    -webkit-box-shadow: 0 0 1em rgb(0 0 0 / 5%);
	box-shadow: 0 0 1em rgb(0 0 0 / 5%);
    -webkit-transition: box-shadow 0.16s ease-in-out;
	transition: box-shadow 0.16s ease-in-out;
}

.button:hover {
    -webkit-box-shadow: 0 1em 1em rgb(0 0 0 / 15%);
	box-shadow: 0 1em 1em rgb(0 0 0 / 15%);
    cursor: pointer;
}

.button img {
    position: absolute;
    top: 0;
    right: 0;
    width: 128px;
    height: 128px;
    line-height: 128px;
}

#button-download img {
    top: 8px;
}

#button-search img {
    top: 20px;
    right: -8px;
}



/*
ALBUM
*/

.album-title a {
    float: right;
}

.album-title a img {
    width: auto;
    height: 24px;
    border-radius: 4px;
    vertical-align: middle;
    -webkit-box-shadow: 0 0 2px rgb(0 0 0 / 5%);
	box-shadow: 0 0 2px rgb(0 0 0 / 5%);
    background-color: rgb(0 0 0 / 3%);
    -webkit-transition: all 0.16s ease-in-out;
	transition: all 0.16s ease-in-out;
}

.album-title a:hover img {
    -webkit-box-shadow: 0 4px 8px rgb(0 0 0 / 15%);
	box-shadow: 0 4px 8px rgb(0 0 0 / 15%);
    background-color: rgb(0 0 0 / 13%);
}

.album {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.album .image {
    display: inline-block;
    flex-grow: 1;
    width: 256px;
    height: 144px;
    margin: 14px;
    overflow: hidden;
    border: 3px solid #B4B4B4;
    border-radius: 32px;
    transform: scale(1);
    -webkit-box-shadow: 0 0 1em rgb(0 0 0 / 15%);
	box-shadow: 0 0 1em rgb(0 0 0 / 15%);
    -webkit-transition: box-shadow 0.16s ease-in-out, transform 0.16s ease-in-out;
	transition: box-shadow 0.16s ease-in-out, transform 0.16s ease-in-out;
}

@supports (aspect-ratio: 16/9) {
    .album .image {
        aspect-ratio: 16/9;
        height: unset !important;
    }
}

.album .image:hover {
    -webkit-box-shadow: 0 1em 1em rgb(0 0 0 / 15%);
	box-shadow: 0 1em 1em rgb(0 0 0 / 15%);
    transform: scale(1.15);
    z-index: 1;
}

.album .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 29px;
}


/*
FOOTER
*/

footer {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #555;
    margin-top: 200px;
    padding: 72px 0 56px;
    background: url(/resources/footer.jpg) no-repeat center center;
    background-size: 100% 100%;
}

footer #attribution a {
    color: #555;
    text-decoration: none;
    border-bottom: 1px solid #999;
    padding-bottom: 0.125em;
}


/*
MEDIA QUERIES
*/

@media screen and (min-width: 1600px) {
    .album .image {
        width: 282px;
        height: 160px;
        margin: 12px;
    }
}

@media screen and (max-width: 1366px) {
    .container {
        margin: 16px auto;
    }

    #mii {
        width: 96px;
        height: 96px;
    }

    .album .image {
        width: 238px;
        height: 134px;
        margin: 12px 10px;
    }
}

@media screen and (max-width: 768px) {
    #mii {
        width: 72px;
        height: 72px;
    }

    .album .image {
        display: block;
        width: 90%;
        height: 320px;
        margin: 32px auto;
    }
}

@media screen and (max-width: 640px) {
    .button {
        line-height: 112px;
        padding: 0 128px 0 48px;
        font-size: 16px;
        margin: 32px 0px;
    }

    .button img {
        width: 112px;
        height: 112px;
        line-height: 112px;
    }
}

@media screen and (max-width: 480px) {
    .button {
        line-height: 96px;
        padding: 0 128px 0 48px;
        font-size: 15px;
    }

    .button img {
        width: 96px;
        height: 96px;
        line-height: 96px;
    }
}