/***************************************************************************************************************
General
****************************************************************************************************************/
html {
    min-width: 320px;
    width: 100%;
    height: 100%;
}

body {
    background: #181818;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

* {
    user-select: none;
}

img {
    vertical-align: middle;
    border: 0;
}

/***************************************************************************************************************
Overlay
****************************************************************************************************************/
.overlay {
    position: relative;
    height: 100%;
    text-align: center;
    z-index: 4;
    overflow-x: hidden;
    overflow-y: auto;
}

.overlay__top {
    position: relative;
    width: 100%;
    height: 55%;
}

.overlay__bottom {
    position: relative;
    width: 100%;
    height: 45%;
}

.overlay__blend {
    display: inline-block;
    position: relative;
    width: 100%;
    max-width: 900px;
}

a.xy:after {
    content: '2018';
    color: #fff;
    font-size: 20px;
    position: absolute;
    top: 50%;
    left: 0;
    bottom: 0;
    right: 0;
    font-family: sans-serif;
    display: block;
    margin-top: -12px;
}

.overlay__bottom .overlay__links a {
    opacity: 0;
}

.overlay__bottom--show .overlay__links a {
    animation: 1.2s ease 0.1s 1 normal forwards overlay;
}

.overlay__bottom--show .overlay__links a:nth-child(1) {
    animation: 1.2s ease 0.1s 1 normal forwards overlay;
}

.overlay__bottom--show .overlay__links a:nth-child(2) {
    animation: 1.2s ease 0.2s 1 normal forwards overlay;
}

.overlay__bottom--show .overlay__links a:nth-child(3) {
    animation: 1.2s ease 0.3s 1 normal forwards overlay;
}

.overlay__bottom--show .overlay__links a.disabled {
    animation: 1.2s ease 0.3s 1 normal forwards overlay_dis !important;
}

.overlay__logo {
    width: 100%;
    position: absolute;
    bottom: 0;
}

.overlay__logo img {
    width: 35%;
    min-width: 260px;
    max-width: 450px;
    transition: width 0.5s, min-width 0.5s;
}

.overlay__links {
    width: 100%;
    position: absolute;
    top: 0;
    font-size: 0;
    margin-top: 50px;
    transition: margin-top 0.5s;
}

.overlay__links a {
    display: inline-block;
    transition: box-shadow 0.2s ease-out, min-width 0.2s, margin 0.2s, background-size 0.2s;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 10%;
    min-width: 60px;
    max-width: 100px;
    margin: 16px;
    padding: 10px;
    background-position: center;
    background-size: 100%;
}

.overlay__links a:hover {
    box-shadow: 0 0 100px rgb(255 255 255 / 30%);
    background-size: 115%;
}

.overlay__links a.disabled {
    box-shadow: 0 !important;
    pointer-events: none;
}

.overlay__links a img {
    width: 100%;
    height: 100%;
}

.overlay__links.x a img {
    opacity: 0;
}

.overlay__links.x a:nth-child(1) img {
    opacity: 1;
}

@keyframes overlay {
  0%   { opacity: 0; transform: scale(1.4); }
  15%  { opacity: 0; }
  100% { opacity: 1; transform: scale(1) rotateZ(0); }
}

@keyframes overlay_dis {
  0%   { opacity: 0; transform: scale(1.4); }
  15%  { opacity: 0; }
  100% { opacity: 0.3; transform: scale(1); }
}

/***************************************************************************************************************
Vignette
****************************************************************************************************************/
.vignette {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../img/vignette.png');
    background-size: 100% 100%;
    z-index: 2;
    opacity: 0;
    transition: opacity 3s;
}

.vignette--show {
    opacity: 1;
}

/***************************************************************************************************************
Photos
****************************************************************************************************************/
.photos {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s;
}

.photos--show {
    opacity: 1;
}

.photos__item {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    transform: scale(1);
    opacity: 0;
    backface-visibility: hidden;
}

.photos__item:nth-child(1) { animation: slide_0 48s 0s linear infinite; }
.photos__item:nth-child(2) { animation: slide_1 48s 8s linear infinite; }
.photos__item:nth-child(3) { animation: slide_0 48s 16s linear infinite; }
.photos__item:nth-child(4) { animation: slide_1 48s 24s linear infinite; }
.photos__item:nth-child(5) { animation: slide_0 48s 32s linear infinite; }
.photos__item:nth-child(6) { animation: slide_0 48s 40s linear infinite; }

@keyframes slide_0 {
  0%   { z-index: 2; opacity: 0; transform: scale(1, 1) rotate(0); }
  10%  { z-index: 2; opacity: 1; }
  25%  { z-index: 2; opacity: 1; }
  35%  { z-index: 2; opacity: 0; transform: scale(1.45, 1.3) rotate(-3deg); }
  36%  { z-index: 1; opacity: 0; transform: scale(1, 1) rotate(0); }
}

@keyframes slide_1 {
  0%   { z-index: 2; opacity: 0; transform: scale(1, 1) rotate(0); }
  10%  { z-index: 2; opacity: 1; }
  25%  { z-index: 2; opacity: 1; }
  35%  { z-index: 2; opacity: 0; transform: scale(1.45, 1.3) rotate(1deg); }
  36%  { z-index: 1; opacity: 0; transform: scale(1, 1) rotate(0); }
}

/***************************************************************************************************************
Mobile
****************************************************************************************************************/
@media (max-width: 500px) or (max-height: 500px) {
    .overlay__logo img {
        width: 30%;
        min-width: 190px;
    }

    .overlay__links {
        margin-top: 10px;
    }

    .overlay__links a {
        margin: 8px;
        width: 7%;
        min-width: 45px;
    }
}
