/* markets */
#markets_section {
    margin-top: 50px;
    margin-bottom: 30px;
    justify-content: center;
}

#markets_header {
    height: 50px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 40px;
    text-shadow: 0px 0px 5px black;
    color: white;
}

#markets_squares_container {
    display: flex;
    justify-content: center;
    position: relative;
    left: 50%;
    transform: translate(-50%, -0%);
    width: 1200px;
}

.market_container {
    margin-inline: 20px;
    text-decoration: none;
}

.market_img_container {
    position: relative;
}

.market_img {
    height: 300px;
    width: 360px;
    opacity: 40%;
    box-shadow: 3px 3px 5px black;
    background-color: rgb(70, 130, 180);
    border-radius: 20px;
    transition: opacity 0.2s;
}

.market_img_container:hover {
    .market_img {
        opacity: 100%;
        background-color: rgb(53, 63, 160);
    }
    .market_logo {
        opacity: 0%;
        transition: opacity 0.5s, background-color 0.5s;
    }
    .market_title {
        color: rgb(230, 230, 230);
        top: -2.5%;
        transition: top 0.5s, color 0.5s;
    }
    .market_description {
        opacity: 100%;
        top: 25%;
        transition: opacity 0.5s, top 0.5s;
    }
}

.market_title {
    position: absolute;
    top: 50%;
    width: 100%;
    text-align: center;
    font-size: 30px;
    color: black;
    transition: top 0.2s;
}

.market_description {
    position: absolute;
    margin: 0;
    margin-left: 10px;
    top: 0%;
    color: rgb(230, 230, 230);
    width: 95%;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s, top 0.2s;
}

.market_logo {
    position: absolute;
    display: block;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s, background-color 0.2s;
    margin: 0 auto;
}

@media (max-width: 1200px) {
    #markets_squares_container {
        flex-direction: column;
        align-items: center;
    }
}

#telecommunications_logo {
    height: 80px;
    width: 80px;
}

#semi_conductors_logo {
    height: 90px;
    width: 90px;
}

#defence_logo {
    height: 65px;
    width: 60px;
}