﻿.sets-of-datasets-container {
    display: flex;
    flex-direction: column;
    width: 70%;
    height: auto;
    border-radius: 8px;
    margin: 0px auto;
    box-shadow: 0 2px 8px 4px lightgray;
    background: rgba(255, 255, 255, 0.75);
    /* NOTE */
    /* Testing if we like no shadowed container here 
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none; */
}

    .sets-of-datasets-container hr {
        opacity: 1;
        width: 100%;
    }

    .sets-of-datasets-container a i {
        color: #0a314d;
    }

.datasets-container {
    width: 100%;
    margin: 0 auto;
}

.data-sets-links {
    display: flex;
    flex-direction: column;
    padding: 0px 20px 0;
}

    /* Preview link and description */
    .data-sets-links ul li div:first-child div:nth-child(2) {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

        /* Description of dataset */
        .data-sets-links ul li div:first-child div:nth-child(2) small {
            margin-left: 12px;
        }

    /* Preview and Download links */
    .data-sets-links ul li div:nth-child(2) {
        height: auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-left: 16px;
        margin-top: -2px; /* Corrects vertical alignment */
    }

.data-sets-header {
    display: inline-flex;
    align-items: center;
    color: #0a314d;
    margin-bottom: 10px;
}

    .data-sets-header i {
        opacity: 1;
        margin-right: 20px;
    }

.data-sets-links ul {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 60px;
    padding-right: 60px;
    list-style: none;
}

    .data-sets-links ul li a {
        text-decoration: none;
    }

        /* Anchor tags with dataset name (i.e. CountryTravelInfo) */
        .data-sets-links ul li a:hover {
            opacity: 0.5;
        }

    .data-sets-links ul li {
        display: flex;
        justify-content: space-between;
    }

        .data-sets-links ul li:not(:last-child) {
            margin-bottom: 8px;
        }

        .data-sets-links ul li div:first-child {
            display: flex;
        }

.tag-button {
    display: flex;
    justify-content: center;
    align-content: center;
    align-items: center;
    border-radius: 12px;
    height: 20px;
    min-width: 48px;
    max-width: 48px;
    background: orange;
    color: white !important;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease-out 0s;
    font-size: 0.75rem;
    font-weight: 900;
}

.tag-green {
    background: green;
}

.tag-button.tag-green::after {
    content: "XML";
}

.tag-button::after {
    content: "JSON";
}

.tag-button:hover {
    background: #0a314d;
    cursor: pointer;
}

    .tag-button:hover::after {
        content: "Save";
    }

#iframe-dataset-name {
    background: #dfdfdf;
    padding: 4px 4px 0;
    border: 2px solid #999;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    border-bottom: 2px solid #999;
    font-weight: 900;
}

.iframe-container {
    width: 100%; /* 70%; */
    margin: 0 auto;
}

.iframe-container #preview-iframe {
    width: 100%;
    height: 400px;
    border-radius: 0px 8px 8px;
    background: rgba(255, 255, 255, 0.75);
}

.btn-close {
    color: #fff;
    opacity: 1;
}

/**************************
    MEDIA QUERIES 
**************************/

@media(max-width: 800px) {
    .data-sets-links ul li small {
        /*display: none;*/
    }
}

@media(max-width: 900px) {
    .data-sets-links ul {
        padding: 0 30px;
    }
}

@media(max-width: 800px) {

    .sets-of-datasets-container,
    .nav-container,
    .iframe-container {
        width: 90%;
    }

    .data-sets-links ul {
        padding: 0 15px;
    }

    nav a {
        justify-content: center;
        text-align: center;
    }
}

@media(max-width: 640px) {

    .data-sets-header h1 {
        font-size: 5.5vw !important;
    }

    .data-sets-links ul li a i {
        display: none;
    }

    .sets-of-datasets-container,
    .nav-container,
    .iframe-container {
        width: 98%;
        font-size: 2.5vw
    }

    .sets-of-datasets-container {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }
}

@media(max-width: 500px) {
    .data-sets-links ul {
        padding: 0px;
    }

    .sets-of-datasets-container,
    .nav-container,
    .iframe-container {
        font-size: 3.5vw !important;
    }
}
