﻿@charset "utf-8";
/* CSS Document */

/* Section 1 - First Section */

.home-page-first-section {
    display: flex;
    justify-content: space-between;
    width: 70%;
    margin: 0 auto 10px;
}

.main-title-container #cadatacatalog-title::after {
    content: "Consular Affairs Data Catalog";
}

.welcome-container {
    background: #0a314d;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 8px;
    color: white;
    padding: 16px;
    margin-left: 5px;
    box-shadow: 0 4px 8px 4px lightgray;
}

    .welcome-container div:first-child {
        color: #c1a783;
    }

    .welcome-container p {
        text-align: left;
        color: lightgray;
        padding: 8px;
    }

.passports-image-container {
    display: flex;
    justify-content: center;
    margin-right: 5px;
}

    .passports-image-container img {
        border: 8px white solid;
        box-shadow: 0 4px 8px 4px lightgray;
        border-radius: 8px;
    }

/* Section 2 - Second Section */

.home-page-second-section {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-content: center;
    align-items: center;
}

.datasets-desc-line-separator {
    opacity: 0.2;
}

.datasets-desc-container {
    display: inline-flex;
    width: 70%;
    height: auto;
    box-shadow: 0 4px 8px 4px lightgray;
    border-radius: 8px;
    background: white;
}

.datasets-desc-card {
    width: 33%;
    margin: 0 auto;
    padding: 20px;
}

    .datasets-desc-card .desc-card-link {
        color: #0a314d !important;
        text-decoration: none !important;
    }

        .datasets-desc-card .desc-card-link:hover {
            opacity: 0.7 !important;
        }

    .datasets-desc-card h3 {
        /*width: 90%;*/
        font-size: 1.0rem !important;
    }

    .datasets-desc-card div:first-child {
        display: inline-flex;
        align-items: center;
        margin-bottom: 10px;
    }

        .datasets-desc-card div:first-child > i {
            opacity: 1;
            color: #0a314d;
            margin-right: 20px;
        }

/* Section 3 - Media Queries */

@media(max-width: 1200px) {

    .home-page-first-section {
        width: 95%;
    }

    .datasets-desc-container {
        width: 95%;
    }
}

@media(max-width: 900px) {

    .home-page-first-section {
        flex-direction: column-reverse;
    }

    .datasets-desc-container h1,
    .datasets-desc-container h2,
    .datasets-desc-container i {
        font-size: 4vw !important;
    }

    .datasets-desc-container h3 {
        font-size: 3.0vw !important;
    }

    .datasets-desc-container {
        height: auto;
        flex-direction: column;
        padding: 10px 0;
    }

        .datasets-desc-container .datasets-desc-card {
            padding: 0px 20px 10px 10px !important;
        }

    .datasets-desc-card {
        width: 100% !important;
    }

    /* NOTE: flex-direction == column-reverse */
    .home-page-first-section div:last-child {
        margin-bottom: 10px !important;
    }

    .home-page-first-section div:nth-child(2),
    .passports-image-container {
        margin: 0;
    }

        .passports-image-container img {
            object-fit: cover;
            width: 100%;
            height: 100%;
        }

    .datasets-desc-card div:first-child > i {
        opacity: 1;
        color: #0a314d;
        margin-right: 8px !important;
    }

    .datasets-desc-line-separator {
        width: 100%;
    }
}

@media(max-width: 640px) {

    .main-title-container {
        font-size: 7.5vw !important;
    }

        .main-title-container #cadatacatalog-title::after {
            content: "CADataCatalog";
        }

    .passports-image-container img {
        border: 8px white solid;
        border-radius: 8px;
    }
}
