@import "assets/fonts/Neuville.css";
/* basic layout */
html {
    height: 100%;
}

body {
    background-color: #2f4353;
    background-image: radial-gradient(#d2ccc440, #2f4353);
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
}

.logo {
    height: 14vh;
    margin: 6vh auto;
    animation: fadein 1s;
}

.main {
    width: 100vw;
    background: #fff;
    height: 50vh;
    display: flex;
    box-shadow: 0px 0px 14px 14px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

a {
    text-decoration: none;
    display: inherit;
    flex-direction: inherit;
    height: inherit;
}

/* Block structure */
.content-block {
    width: 33.33333vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.content-block .visual {
    color: #1e0782;
    font-family: 'Neuville';
    font-weight: bold;
}

.content-block .visual img {
    width: 30vh;
    margin: auto;
    margin-top: 36px;
}

.content-block .initial {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.content-block h2 {
    text-align: center;
    font-size: 36px;
}

/* companies */
.companies {
    background: #ffffff;
    font-family: 'Neuville';
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: space-evenly;
    width: 100%;
}

.companies h3 {
    writing-mode: vertical-lr;
    margin: 10px;
    text-align: right;
    height: 120px;
    transform: rotate(180deg);
    color: #1e0782;
    transition: 222ms ease-in-out;
}

.companies li {
    margin: 0;
    padding: 0;
    height: 100%;
    cursor: pointer;
    display: flex;
    transition: 222ms ease-in-out;
}

.companies .item {
    visibility: hidden;
    width: 0;
    margin: auto;
    position: relative;
    transition: 222ms ease-in-out;
}

.companies .item-text {
    color: #fff;
    margin-top: 3px;
    margin-left: 115px;
}

.companies .item-text h4 {
    font-weight: bold;
    font-size: 22px;
    margin: 0;
}

.companies .item-text p {
    margin-top: 5px;
    margin-right: 12px;
    width: 200px;
}

.companies li .item img {
    height: 120px;
    position: absolute;
    left: -8px;
    top: -10px;
}

.companies li:hover .item {
    visibility: visible;
    width: 20vw;
}

.companies li:hover {
    background: #1e0782;
}

.companies li:hover h3 {
    color: #fff;
}

/* sub blocks */
.content-sub-block {
    height: 50%;
    display: flex;
}

.content-sub-block .visual {
    width: 75vw;
}

.content-block .content-sub-block .visual img {
    width: 20vh;
}

.content-block .content-sub-block h2 {
    font-size: 26px;
}

.content-sub-block .companies {
    flex-direction: column;
}

.content-sub-block .companies li {
    flex-direction: column;
}

.content-sub-block .companies .item {
    height: 0;
}

.content-sub-block .companies li:hover .item {
    height: 12vh;
    width: 20vw;
}

.content-sub-block .companies h3 {
    writing-mode: horizontal-tb;
    transform: none;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    margin: 0;
    justify-content: center;
}

/* cusomizations to blocks */
.content-block-1 {
    background: #a5d6e4;
}

.content-block-3 {
    background: #57f1b1;
}

.content-block-3 h3 {
    text-align: left;
}

.content-sub-block-1 {
    background: #fbd4d6;
}

.content-sub-block-2 {
    background: #e68244;
}

.content-sub-block-2 .visual {
    width: 25vw;
}

.content-block.content-block-3 .visual img {
    width: 18vh;
}

.content-block .content-sub-block.content-sub-block-1 .visual img {
    width: 12vh;
}

.content-block .content-sub-block.content-sub-block-2 .visual img {
    width: 12vh;
}

.content-block-3 ul.companies, .content-block-1 ul.companies {
    height: 140px;
}

/* animations */
@keyframes fadein {
    0%   { height: 88vh; margin: 6vh auto; }
    50%   { opacity: 0; height: 88vh; margin: 6vh auto; }
    75%  { opacity: 1; height: 88vh; margin: 6vh auto; }
    100% { height: 14vh; margin: 6vh auto; }
}

/* animations */
@keyframes fadeinmobile {
    0%   { opacity: 0; width: 100vw; height: 100vw; margin: 25vh auto; }
    50%   { opacity: 1; width: 100vw; height: 100vw; margin: 25vh auto;  }
    75%  { opacity: 1; width: 100vw;  height: 100vw; margin: 25vh auto;  }
    100% { opacity: 1; width: 18vw; margin: 3vh auto; }
}

/* mobile */
@media only screen and (max-width : 992px)  {
    .main {
        flex-direction: column;
        height: auto;
        overflow-y: visible;
    }

    .content-block {
        width: 100%;
    }

    body {
        overflow: visible;
        height: auto;
    }

    .content-block h2 {
        font-size: 70px;
    }

    .content-block.content-block-1 {
        flex-direction: column-reverse;
    }

    .companies h3 {
        font-size: 40px;
        text-align: left;
        height: 220px;
        margin: 22px 0;
    }

    .content-block .content-sub-block h2 {
        font-size: 44px;
    }

    .content-sub-block-2 .visual, .content-sub-block-1 .visual {
        width: 85vw;
    }

    .content-block.content-block-3 {
        flex-direction: column-reverse;
    }

    .content-block.content-block-3 .companies h3 {
        text-align: right;
    }

    .content-block-3 ul.companies, .content-block-1 ul.companies {
        height: 280px;
    }

    .logo {
        width: 18vw;
        margin: 3vh auto;
        animation: fadeinmobile 1s;
    }

    .companies li:hover .item {
        width: 64vw;
    }

    .companies li .item img {
        height: 200px;
        top: 10px;
    }

    .companies .item-text {
        margin-left: 185px;
    }

    .companies .item-text h4 {
        font-size: 54px;
    }

    .companies .item-text p {
        width: 400px;
        font-size: 36px;
    }

    .content-sub-block .companies .item {
        margin: unset;
    }

    .content-sub-block .companies li:hover .item {
        width: 64vw;
    }
}