@font-face {
    font-family: DIN_Bold;
    src: url("./fonts/DIN Condensed Bold.ttf");
    font-display: swap;
}

html, body {
    margin: 20px;
    padding: 0;
    font-family: DIN_Bold;
    font-size: 40px;
    height: calc(100vh - 80px);
}

a {
    text-decoration: none;
}

#content {
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.container {
    flex: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    flex-grow: 1;
    transition: all .2s linear;
}
.logo {
    position: absolute;
    width: fit-content;
    padding: 10px 60px;
    z-index: 200;
    background-color: #fff;
    left: 50%;
    transform: translateX(-50%);
    top: 25px;
}
.container a {
    transition: all .2s linear;
    display: block;
    line-height: .25;
    position: relative;
    z-index: 100;
    text-align: center;
    width: 100%;
    text-transform: uppercase;
    font-size: min(max(12vw, 50px), 120px);
    height: 100%;
}
.container a span {
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}
.container:after {
    transition: all .2s linear;
    content: "";
    position: absolute;
    z-index: 50;
    height: 100%;
    width: 100%;
    background-color: rgba(50, 50, 50, 0.7);    
}
.container.container--tavannes a {
    color: #F9D813;
}
.container.container--tavannes,
.container.container--reconvillier {
    background-image: url('images/squash.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.container.container--reconvilier {
    background-image: url('images/reconvilier.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.container.container--reconvilier a {
    color: #8EA7E9; 
}


/* Hover */
.container:hover {
    cursor: pointer;
    height: 90%;
    flex: 1;
    flex-grow: 1;
}
.container:hover a {
    scale: 1.25;
}
.container:hover:after {
    background-color: rgba(50, 50, 50, 0.2); 
}

@media only screen and (min-width: 726px) {    
    .container:hover {
        flex-grow: 3;
    }    
}