@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;600&display=swap');

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: rgb(243,240,215);
    background: linear-gradient(90deg, rgba(243, 240, 215, 1) 0%, rgba(206, 229, 208, 0.5) 50%, rgba(243, 240, 215, 1) 100%);
    font-family: 'Roboto', sans-serif;
}
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    opacity: 0.5;
    background: #eee;
    border-radius: 4px;
    background-color: rgba(250, 128, 114, 0.15);
}
::-webkit-scrollbar-thumb {
    background: rgba(250, 128, 114, 0.6);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(250, 128, 114, 1);
}
.part-1 {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: linear-gradient(90deg, rgba(243, 240, 215, 1) 0%, rgba(206, 229, 208, 0.5) 50%, rgba(243, 240, 215, 1) 100%);
    transition: opacity 0.5s ease;
}
.part-1.remove {
    opacity: 0;
}
.part-1.hide {
    display: none;
}
.part-1 .loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.part-1 .loading .ball-scale-ripple-multiple:after {
    content: 'Loading...';
    position: absolute;
    left: -38px;
    bottom: -170px;
    font-size: 1.75em;
    color: rgba(112, 66, 20, 1);
}
.part-1 .loading .ball-scale-ripple-multiple > div {
    top: -100px;
    left: -85px;
    width: 200px;
    height: 200px;
    border-color: rgba(112, 66, 20, 1);
}
.part-1 .intro-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.part-1 .intro-image.show {
    transition: opacity 0.5s ease;
    opacity: 1;
}
.part-1 .image-1 {
    background-image: url('https://firebasestorage.googleapis.com/v0/b/ganther-parker-wedding.appspot.com/o/brithday_assets%2Fbeautiful_sepia.jpg?alt=media&token=f2e624cd-29a4-4821-bc22-2ff9e4a038ce');
}
.part-1 .image-2 {
    background-image: url('https://firebasestorage.googleapis.com/v0/b/ganther-parker-wedding.appspot.com/o/brithday_assets%2Fintelligent_sepia.jpg?alt=media&token=9e05e910-db79-4812-b5ce-55eee0bf91b0');
}
.part-1 .image-3 {
    background-image: url('https://firebasestorage.googleapis.com/v0/b/ganther-parker-wedding.appspot.com/o/brithday_assets%2Fadventurous_sepia.jpg?alt=media&token=812c7e39-c379-4a09-9523-8b3530f3466b');
}
.part-1 .image-4 {
    display: flex;
    justify-content: center;
    align-items: center;
}
.part-1 .image-4 > div {
    width: 980px;
    margin: 0 auto;
}
.part-1 .image-4 > div h1 {
    color: rgba(250, 128, 114, 1);
    font-family: 'Dancing Script', cursive;
    font-size: 5.5em;
}
.part-2 {
    opacity: 0;
    transition: opacity 0.5s ease;
}
.part-2.show {
    opacity: 1;
}
header h1 {
    margin-top: 20px;
    margin-bottom: 0;
    color: rgba(250, 128, 114, 1);
    font-family: 'Dancing Script', cursive;
    font-size: 3.5em;
    text-align: center;
}
#filters {
    margin-top: 40px;
}
#filters .affiliations {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
}
#filters .affiliations li {
    color: rgba(112, 66, 20, 1);
    font-size: 1.3125em;
    cursor: pointer;
}
#filters .affiliations li:not(:last-of-type) {
    margin-right: 20px;
}
#filters .affiliations li.dot {
    font-size: 2.5em;
    cursor: default;
}
#filters .affiliations li:not(.dot):hover {
    text-decoration: underline;
}
#wrapper {
    width: 100vw;
    height: 100vh;
    padding-top: 3%;
    padding-bottom: 8%;
    box-sizing: border-box;
}
#submission-wall {
    width: 100%; 
    height: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    margin: auto;
    box-sizing: border-box;
    position: relative;
}
.border {
    content: '';
    width: 92%;
    height: 90%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 0 0 1px rgba(112, 66, 20, 0.25);
}
.border::before, .border::after {
    content: '';
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    position: absolute;
    top: calc(-50% - 40px);
    left: 50%;
    z-index: -1;
    box-shadow: inset 0 0 0 2px rgba(112, 66, 20, 0.15);
    animation: clipMe 32s linear infinite;
    transform: translate3d(-50%, 50%, 0); /* for hardware acceleration*/
	perspective: 1000; /* for hardware acceleration*/
}
.border::before {
    animation-delay: -16s;
}
#inner-wall {
    width: 90%;
    height: 90%;
    margin: auto;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}
#inner-wall-bottom {
    width: 100%;
    height: 20px;
    position: absolute;
    left: 0;
    bottom: 0;
}
.grid {
    padding-bottom: 20px;
}
.grid-item {
    width: 830px;
    height: 415px;
    display: flex;
}
.front, .back {
    width: 50%;
    position: relative;
}
.front::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    box-shadow: 0px 0px 6px 0px rgba(250, 128, 114, 0.6) inset;
}
.front-inner, .back-inner {
    width: 100%;
    height: 100%;
    background-color: #f9f9f9;
}
.front-inner {
    background-color: #f3f0d7;
}
.front-inner canvas {
    filter: sepia(80%);
}
.front-inner, .initials {
    display: flex;
    justify-content: center;
    align-items: center;
}
.initials {
    width: 200px;
    height: 200px;
    font-size: 2em;
    letter-spacing: 1px;
    border: 1px solid rgba(250, 128, 114, 0.6);
    border-radius: 100px;
    box-shadow: 0px 0px 6px 0px rgba(250, 128, 114, 0.6) inset;
}
.back-inner {
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}
.name {
    margin-bottom: 8px;
    font-size: 1.25em;
    font-weight: 600;
}
.location {
    margin-bottom: 8px;
    font-size: 1.125em;
    font-style: italic;
}
@keyframes clipMe {
    0%, 100% {clip: rect(0px, 1826px, 2px, 0px); }
    25% {clip: rect(0px, 2px, 850px, 0px); }
    50% {clip: rect(848px, 1826px, 850px, 0px); }
    75% {clip: rect(0px, 1826px, 850px, 1724px); }
}