* {
    padding: 0 0;
    margin: 0 0;
    outline: 0;
    border: 0;
    box-sizing: border-box;
}

a, a:hover, a:active, a:focus {
    text-decoration: none;
    color: inherit;
}

.bg-blue {
    background-color: #4364a7;    
}

.bg-gray {
    background-color: #abbac1;    
}

.bg-gradient {
    background: #688a93;
    background: -webkit-linear-gradient(#688a93, #d5e0e4);
    background: linear-gradient(#688a93, #d5e0e4);
}

.fg-gray {
    color: #557a83;    
}

.fg-blue {
    color: #4364a7;
}

body {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    line-height: 1.428;
}

@keyframes appear {
    from {opacity: 0}
    to {opacity: 1}
}

div.page {
    display: -webkit-flex;
    -webkit-flex-direction: column;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: auto;
}

div.topbar {
    -webkit-flex: 0 0 100px;
    display: -webkit-flex;
    -webkit-flex-direction: row;
    -webkit-justify-content: space-between;
    -webkit-align-items: flex-end;
    flex: 0 0 100px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 1em 0;
    border-bottom: 0.3em solid white;
}

div.tiles {
    -webkit-flex: 1 0;
    display: -webkit-flex;
    flex: 1 0;
    display: flex;
    opacity: 1;
    transition: opacity 0.5s;
}

div.tiles.inactive {
    display: none
}

div.tiles div.container {
    -webkit-flex: 1;
    display: -webkit-flex;
    -webkit-flex-direction: column;
    -webkit-justify-content: center;
    -webkit-align-content: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
}

div.tiles div.row {
    display: -webkit-flex;
    -webkit-justify-content: center;
    -webkit-align-content: flex-start;
    -webkit-flex-wrap: wrap;
    display: flex;
    justify-content: center;
    align-content: flex-start;
    flex-wrap: wrap;
    margin-top: 14px;
}

div.tiles div.row div.box {
    -webkit-flex: 0 1 300px;
    flex: 0 1 300px;
}

div.activeTile {
    -webkit-flex: 1 0;
    flex: 1 0;
    animation: appear 0.5s;
}

div.topbar .title {
    -webkit-flex: 1;
    flex: 1;
    text-align: center;
}

div.topbar .logo {
    -webkit-flex: 1;
    flex: 1;
    margin-left: 3em;
    height: 75px;
}

div.topbar .year {
    -webkit-flex: 1;
    flex: 1;
    text-align: right;
    margin-right: 2em
}

div.tile {
    background-color: white;
    padding: 0 0;
    box-shadow: 3px 3px 4px 2px rgba(0,0,0,0.2);
    margin: 14px 14px;
}

@media (max-width: 628px) {
    div.tiles div.row div.box {
        -webkit-flex: 0 1 512px;
        flex: 0 1 512px;
    }
}

div.tilePhoto g.img {
    image-rendering: optimizeQuality;   
    transition: transform 0.2s;
}

a div.tilePhoto:hover g.img, a div.tilePhoto:active g.img {
    transform: scale(1.1) translate(-5%,-5%);
    transition: transform 0.2s
}

div.tilePhoto path.screen {
    transform: translate(0px, 170px);
    transition: 0.2s
}

a div.tilePhoto:hover path.screen, a div.tilePhoto:active path.screenx {
    transform: translate(0px, 0px);
    transition: 0.2s
}

div.tilePhoto text.caption tspan {
    stroke: none;
    fill: #4364a7;
    text-anchor: middle;
    font-size: 30px;
    font-weight: 300;
}

.light {
    font-weight: 300;
}

div.activeTile div.title {
    text-align: right;
    font-size: 3em;
    font-weight: 300;
}

div.tilePhoto text.caption tspan:first-child {
    font-size: 36px;
    font-weight: 800;
}

div.activeTile div.title:first-child {
    font-size: 3.6em;
    font-weight: 800;
    line-height: 1em;
}

div.activeTile div.tile {
    margin: 2em auto;
    position: relative;
    max-width: 760px
}

@media (max-width: 740px) {
    div.topbar span.title {
        display: none
    }
}

@media (max-width: 800px) {
    div.activeTile div.title {
        font-size: 5.5vw
    }
    div.activeTile div.title:first-child {
        font-size: 6.6vw
    }
    div.activeTile div.tile {
        margin: 0 0;
        max-width: 100%
    }
}

div.activeTile .videoWrapper {
    #position: relative;
    width: 100%;
    #padding-bottom: 56.25%;
    #height: 0;
}

div.activeTile video {
    #position: absolute;
    #left: 0;
    #top: 0;
    width: 100%;
    #height: 100%;
    #object-fit: cover;
    background-color: black;
}

div.details {
    padding: 5% 10%;
}

div.credits {
    font-weight: 300;
    color: black;
    text-transform: uppercase;
    text-align: right;
    margin-top: 2em
}

div.synopsis {
    font-weight: 500;
    margin-top: 2em
}

.btn {
    fill: #bbc9cd;
    color: #bbc9cd;    
}

.btn:hover {
    color: #4364a7;
    fill: #4364a7;    
}

a.back {
    font-weight: 500;
    text-transform: uppercase;
    transition: color, fill 0.1s;
    text-decoration: none;
}

a.back>* {
    vertical-align: middle;
}

a.back svg {
    margin-right: 1em;
    height: 3em;
}

input {
    padding: 0.2em 0.4em;
    text-align: center;
    width: 100%;
    color: black;
}

button {
    padding: 0.5em 1em;
    background-color: white;
    border: 1px solid gray;
    cursor: pointer
}

button:hover {
    background-color:#4364a7;
    color: white;
}

