@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Anton&display=swap');

:root {
    --white: #FFF;
    --dark-grey: #222222;
    --black: #000;
    --ff: 'Roboto', sans-serif;
    --ffa: 'Anton', sans-serif;
}

html, body {
    height: 100%;
}

body {
    color: var(--white);
    font-family: var(--ff);
    font-size: 62.5%;
    background-color: var(--dark-grey);
}

main {
    display: grid;
    grid-template: "research" "presentations" "e-posters" "sponsors" "footer";
    grid-template-rows: repeat(3, minmax(30%, 500px)) minmax(240px, 0) 80px;
    grid-gap: 6px;
    height: 100%;
}

section {
    position: relative;
}

.research {
    width: 100%;
    grid-area: research;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-image: url(../../../views/layouts/iclimb/education.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.logo {
    margin: 0 30px;
}

.logo img {
    max-height: 200px;
}

.presentations {
    width: 100%;
    grid-area: presentations;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-image: url(../../../views/layouts/iclimb/training.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.e-posters {
    width: 100%;
    grid-area: e-posters;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    background-image: url(../../../views/layouts/iclimb/eposter.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.sponsors {
    grid-area: sponsors;
    display: flex;
    width: 100%;
}

#sponsors {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
}


.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.caroufredsel_wrapper {
    margin: 0 auto !important;
}

.item {
    display: flex;
    /* float: left; */
    align-items: center;
    justify-content: center;
}

.item.sponsor {
    margin: 20px;
    /* max-width: 100%; */
    width: 100%;
    /* max-height: 140px; */
}

.item img {
    width: 100%;
    height: 140px;
    border-radius: 4px;
    object-fit: scale-down;
}

.carousel a.prev, .carousel a.next {
    position: absolute;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 30px;
    height: 40px;

}

.carousel .item a {
    position: relative;
}


section a:not(.logo) {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
    padding: 0 30px;
    color: unset;
    font-family: var(--ffa);
    font-size: 10rem;
    text-transform: uppercase;
    text-decoration: none;
}

section.presentations a {
    justify-content: flex-start;
}

footer {
    width: 100%;
    grid-area: footer;
    text-align: center;
}

footer nav ul {
    display: flex;
    justify-content: space-around;
    margin: 0 auto;
    padding: 0;
    width: 280px;
    list-style: none outside none;
}
footer nav ul li {
    line-height: 1;
}
footer nav ul li a {
    color: #fff;
    font-family: var(--ffa);
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
}

footer p {
    font-size: 1.1rem;
    font-weight: 700;
}

@media screen and (max-width: 991px) {
    section a:not(.logo) {
        font-size: 4rem;
    }
    .logo {
        text-align: center;
    }
    .logo img {
        width: 70%;
    }
    .research {
        align-items: flex-start;
        justify-content: space-evenly;
        flex-direction: column;
    }
    .presentations, .e-posters {
        justify-content: center;
    }
}
@media screen and (max-width: 540px) {
    main {
        grid-template-rows: repeat(3, 1fr) 100px 80px;
    }
    section a:not(.logo) {
        font-size: 2rem;
        justify-content: center;
    }
    section.research a:not(.logo){
        align-items: flex-end;
    }
    .logo {
        margin-top: 20px;
        text-align: center;
    }
    .logo img {
        width: 40%;
    }
    .research {
        align-items: center;
        justify-content: flex-start;
        flex-direction: column;
    }
    .presentations, .e-posters {
        justify-content: center;
    }
    .item img {
        width: 100%;
        height: 80px;
        border-radius: 4px;
        object-fit: scale-down;
    }
    footer {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
    }
    footer nav ul li a {
        font-size: 1.4rem;
    }
    footer p {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        /* height: 100%; */
        font-size: 0.9rem;
        line-height: 1;
    }
}
