@import url("https://fonts.googleapis.com/css?family=Nanum+Pen+Script|Roboto");
@import url("https://fonts.googleapis.com/css2?family=Fredericka+the+Great&display=swap");

body {
    overflow-x: hidden;
    background: url(images/background.jpg) center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    margin: 0;
    padding: 0;
}

.vintalight {
    display: inline-block;
    max-width: 1100px;
    box-sizing: border-box;
    margin: 140px auto;
}


.vintalight__container {
    position: relative;
    display: inline-block;
    max-width: 9.8em;
    height: 9.8em;
    padding: 16px;
    background-color: #fff;
    font-size: 30px;
    box-shadow: 0 2px 6px 1px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.075, 0.82, 0.165, 1), box-shadow 0.5s, margin 0.5s;
    margin: 0;
    box-sizing: border-box;
}

.vintalight__container:nth-child(1) {
    transform: translate(40px, 30px) rotate(-30deg);
    z-index: 40;
}
.vintalight__container:nth-child(1):hover {
    transform: scale(1.15) translate(40px, 30px) rotate(0);
}

.vintalight__container:nth-child(2) {
    transform: translate(30px, 20px) rotate(7deg);
    z-index: 50;
}
.vintalight__container:nth-child(2):hover {
    transform: scale(1.15) translate(30px, 20px) rotate(0);
}

.vintalight__container:nth-child(3) {
    transform: translate(-20px, 20px) rotate(20deg);
    z-index: 40;
}
.vintalight__container:nth-child(3):hover {
    transform: scale(1.15) translate(-20px, 20px) rotate(0);
}

.vintalight__container:nth-child(4) {
    transform: translate(40px, -10px) rotate(10deg);
    z-index: 30;
}
.vintalight__container:nth-child(4):hover {
    transform: scale(1.15) translate(40px, -10px) rotate(0);
}

.vintalight__container:nth-child(5) {
    transform: translate(30px, -20px) rotate(-20deg);
    z-index: 20;
}
.vintalight__container:nth-child(5):hover {
    transform: scale(1.15) translate(30px, -20px) rotate(0);
}

.vintalight__container:nth-child(6) {
    transform: translate(30px, -40px) rotate(-10deg);
    z-index: 40;
}
.vintalight__container:nth-child(6):hover {
    transform: scale(1.15) translate(30px, -40px) rotate(0);
}

.vintalight__container:hover {
    box-shadow: 0 4px 8px 3px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

@media screen and (max-width: 700px) {
    .vintalight__container:nth-child(1) {
        transform: translate(0) rotate(-30deg);
    }
    .vintalight__container:nth-child(1):hover {
        transform: scale(1.1) translate(0) rotate(0);
    }

    .vintalight__container:nth-child(2) {
        transform: translate(0) rotate(7deg);
    }
    .vintalight__container:nth-child(2):hover {
        transform: scale(1.1) translate(0) rotate(0);
    }

    .vintalight__container:nth-child(3) {
        transform: translate(0) rotate(20deg);
    }
    .vintalight__container:nth-child(3):hover {
        transform: scale(1.1) translate(0) rotate(0);
    }

    .vintalight__container:nth-child(4) {
        transform: translate(0) rotate(10deg);
    }
    .vintalight__container:nth-child(4):hover {
        transform: scale(1.1) translate(0) rotate(0);
    }

    .vintalight__container:nth-child(5) {
        transform: translate(0) rotate(-20deg);
    }
    .vintalight__container:nth-child(5):hover {
        transform: scale(1.1) translate(0) rotate(0);
    }

    .vintalight__container:nth-child(6) {
        transform: translate(0) rotate(-10deg);
    }
    .vintalight__container:nth-child(6):hover {
        transform: scale(1.1) translate(0) rotate(0);
    }

    .vintalight__container:hover {
        margin: 0 25px;
    }
}

.vintalight__container:hover .vintalight__container__photo::before {
    transform: scale(1);
}

.vintalight__active {
/*    top: 0px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    position: relative;*/
    display: inline-block;
    background-color: #fff;
    box-shadow: 0 2px 6px 1px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.075, 0.82, 0.165, 1), box-shadow 0.5s, margin 0.5s;
}

.vintalight__active img {
    border: 4px solid white;
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: pointer;
}

.vintalight__container__photo {
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.vintalight__container__photo::before {
    content: "View";
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    left: 16px;
    right: 16px;
    top: 16px;
    bottom: 16px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1em;
    transform: scale(0);
    transition: all 0.25s;
}

.vintalight__container__photo__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vintalight-overlay {
    justify-content: center;
    align-items: center;
    position: fixed;
    left: 0px; right: 0px; top: 0px; bottom: 0px;
    background-color: rgba(0, 0, 0, 0.75);
    opacity: 0;
    z-index: 10000;
    transition: opacity 0.5s;
    display:flex;
}

.vintalight-overlay.active {
    opacity: 1;
}

.start {
    text-align: center;
    left: 0; right: 0;
    position: fixed;
    vertical-align: center;
    padding: 32px;
    overflow: hidden;
    bottom: 0;
    z-index: 1000;
    background-color: rgba(0, 0, 0, .75);
    box-shadow: 0px -1px 2px rgba(201, 201, 201, 0.5);
}

.start a {
    font-family: 'Fredericka the Great', cursive;
    background-color: white;
    color: black;
    border-radius: 4px;
    display: inline-block;
    padding: 16px 24px 16px 24px;
    width: 200px;
    font-size: 2em;
    text-decoration: none;
    transition: all .2s ease-in-out;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 16px white;

}

.start a:hover {
    transform: scale(1.1);
}

.header {
    font-family: 'Fredericka the Great', cursive;
    z-index: 1001;
    position: fixed;
    font-size: 1.5em;
    padding: 20px;
    top: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    background-color: rgba(0, 0, 0, .75);
    box-shadow: 0px 1px 2px rgba(201, 201, 201, 0.5);
}
.header .subtitle {
    font-size: 0.6em;
    color: rgba(255, 255, 255, 0.75);
}
