/* Game presentation header */
div.gamePresentation {
    margin: 0; padding: 0;
    background-image: url("../img/ameliaincar.png");
    min-height: 750px;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-bottom: 2px solid black;
}
div.gamePresentation>div {
    margin-top: 15px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
div.gamePresentation>div>a {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: rgba(255,255,255,0.2);
    padding: 8px 12px;
    border: 2px solid white;
    text-decoration: none;
    width: 400px;
    font-family: mainBold;
    border-radius: 3px;
    margin-top: 18px;
    transition: all 0.3s;
}
div.gamePresentation>div>a>img {
    width: 50px;
    padding-right: 12px;
}
div.gamePresentation>div>a>span {
    font-size: 24px;
    color: white;
}
div.gamePresentation>div>a:hover {
    background-color: white;
}
div.gamePresentation>div>a:hover>span {
    color: black;
}
img.gameTitle {
    width: 100%;
}
.gameTitle.cropped { display: none; }
.gameTitle.notCropped { display: block; }

/* Video */
.videoWidget {
    display: flex; flex-direction: row; justify-content: center; align-items: center;
    max-width: 1100px;
    margin: auto;
}
.videoContainer {
    display: flex; flex-direction: row; justify-content: center; align-items:center;
}
video {
    width: 750px;
    border: 2px solid white;
    margin-right: 24px;
}

/* Screens */
.screensContainer {
    display: flex; flex-direction: row; justify-content: space-between; align-items: center;
    padding: 4px 5%;
}
.screensContainer>img { width: 30%; }

/* Team container */
.teamContainer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
}
.teamContainer>div {
    margin: 35px;
    padding: 25px;
    flex: 1;
    background-color: #efefef;
    border-radius: 8px;
    border: 1px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
}
.teamContainer>div>h2, .teamContainer>div>p, .teamContainer>div>div>p { color: black; text-justify: none; }

/* Team img */
.teamImg {
    margin: 29px 0 18px 0;
}

/* Button Link */
.buttonLink {
    display: block;
    padding: 8px;
    background-color: black;
    color: white;
    max-width: 400px;
    border-radius: 12px;
}

/* Generic flex */
.generic_flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.generic_flex.columnCentered {
    flex-direction: column;
    align-items: center;
}

/* Social link */
a.socialLink {
    margin: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: rgba(255,255,255,0.2);
    padding: 8px 12px;
    border: 1px solid white;
    border-radius: 3px;
    width: 400px;
    text-decoration: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}
a.socialLink>img {
    width: 30px;
    padding-right: 12px;
}
a.socialLink>span {
    font-family: mainBold;
    font-size: 15px;
}
a.socialLink:visited>span {
    text-decoration: none;
}
a.socialLink:hover {
    background-color: white;
    color: black;
}

/* Button link */
a.buttonLink {
    margin: 10px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    background-color: rgba(255,255,255,0.3);
    padding: 20px 20px;
    border: 2px solid white;
    border-radius: 3px;
    width: 600px;
    text-decoration: none;
    color: white;
    cursor: pointer;
    font-family: mainBold;
    font-size: 18px;
    transition: all 0.3s;
}
a.buttonLink.reversed { color: black; border-color: black; }
a:hover.buttonLink {
    background-color: white;
    color: black;
}
a:visited { text-decoration: none; } 

.horizontalSeparator {
    width: 95%;
    height: 1px;
    background-color: white;
    margin-top: 42px;
}
.horizontalSeparator.balanced {
    width: 95%;
    height: 1px;
    background-color: white;
    margin-top: 42px;
    margin-bottom: 42px;
}

/* Screens full */
img.screen {
    width: calc(100% - 40px);
    margin-bottom: 35px;
}

/* Table */
table {
    border-collapse: collapse;
}
table td {
    border: 1px solid #efefef;
    border-collapse: collapse;
    padding: 12px;
    background-color: rgba(255,255,255,0.1);
}

@media all AND (max-width: 1023px) {

    .teamContainer {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    .teamContainer>div {
        margin: 35px;
        padding: 25px;
        flex: 1;
        background-color: #efefef;
        border-radius: 8px;
        border: 1px solid white;
        box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23);
    }

    .gameTitle.cropped { display: block; }
    .gameTitle.notCropped { display: none; }

    div.gamePresentation>div { width: 100%; }
    div.gamePresentation>div>a { width: calc(100% - 80px); }
    div.gamePresentation>div>a>img { width: 100px; }
    div.gamePresentation>div>a>span { font-size: 40px; }
    div.gamePresentation>div>a:hover {
        background-color: white;
    }
    div.gamePresentation>div>a:hover>span {
        color: black;
    }
    img.gameTitle {
        width: 100%;
    }

    a.socialLink {
        width: calc(100% - 50px);
        height: 65px;
    }
    a.socialLink>img {
        width: 55px;
    }
    a.socialLink>span {
        font-size: 25px;
    }
    a.socialLink:visited>span {
        text-decoration: none;
    }
    a.socialLink:hover {
        background-color: white;
        color: black;
    }

    .screensContainer {
        flex-direction: column;
        padding: 4px 5%;
    }
    .screensContainer>img { width: 100%; margin-bottom: 24px; }

    a.buttonLink {
        font-size: 40px;
        text-align: center;
    }

}