/* =========================================================
   EARTH EXPLORER
   COMPLETE EXPLORE CSS
========================================================= */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    width: 100%;
    min-height: 100%;
}


body {
    width: 100%;
    min-height: 100vh;

    background:
        radial-gradient(
            circle at 75% 15%,
            rgba(20,80,125,0.45),
            transparent 30%
        ),
        radial-gradient(
            circle at 10% 85%,
            rgba(5,45,78,0.40),
            transparent 30%
        ),
        #020812;

    color: white;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    overflow-x: hidden;
}


/* =========================================================
   STARS
========================================================= */

#stars {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    z-index: -10;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 70% 20%,
            #0b304e,
            transparent 30%
        ),
        #020812;
}


.star {
    position: absolute;

    width: 2px;
    height: 2px;

    background: white;

    border-radius: 50%;

    opacity: 0.65;
}


/* =========================================================
   NAVIGATION
========================================================= */

nav {
    width: 100%;
    height: 75px;

    padding:
        0 35px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background:
        rgba(1,7,17,0.96);

    border-bottom:
        1px solid
        rgba(255,255,255,0.1);
}


.logo {
    color: white;

    text-decoration: none;

    font-size: 17px;

    font-weight: 800;

    letter-spacing: 2px;

    white-space: nowrap;
}


.logo span {
    color: #42d9ff;
}


.page-title {
    color: #7893a6;

    font-size: 10px;

    letter-spacing: 3px;

    text-align: center;
}


.home-button {
    color: #53dcff;

    text-decoration: none;

    font-size: 10px;

    padding:
        10px 15px;

    border:
        1px solid
        rgba(80,215,255,0.42);

    transition:
        0.25s ease;
}


.home-button:hover {
    background:
        rgba(80,215,255,0.1);
}


/* =========================================================
   MAIN
========================================================= */

main {
    width: 100%;

    min-height:
        calc(100vh - 75px);

    display: grid;

    grid-template-columns:
        330px minmax(0,1fr);
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    width: 330px;

    min-width: 330px;

    padding:
        27px 20px;

    background:
        rgba(1,7,16,0.85);

    border-right:
        1px solid
        rgba(255,255,255,0.1);
}


.heading p {
    color: #4edcff;

    font-size: 9px;

    letter-spacing: 3px;
}


.heading h1 {
    margin-top: 9px;

    font-size: 35px;

    line-height: 1.08;

    font-weight: 800;
}


.heading h1 span {
    color: #42d8ff;
}


.country-count {
    margin-top: 13px;

    color: #6e8598;

    font-size: 9px;

    letter-spacing: 3px;
}


/* =========================================================
   SEARCH
========================================================= */

.search-box {
    width: 100%;

    height: 47px;

    margin-top: 25px;

    display: flex;

    align-items: center;

    background:
        rgba(255,255,255,0.035);

    border:
        1px solid
        rgba(75,215,255,0.3);
}


.search-box input {
    width: 100%;

    height: 45px;

    flex: 1;

    padding:
        0 12px;

    border: none;

    outline: none;

    background: transparent;

    color: white;

    font-size: 12px;
}


.search-box input::placeholder {
    color: #627b8c;
}


.search-box button {
    width: 44px;

    height: 44px;

    border: none;

    background: transparent;

    color: #50d9ff;

    font-size: 22px;

    cursor: pointer;
}


/* =========================================================
   COUNTRY LIST
========================================================= */

.country-list {
    width: 100%;

    height:
        calc(100vh - 245px);

    margin-top: 15px;

    overflow-y: auto;

    overflow-x: hidden;

    padding-right: 5px;
}


.country-list::-webkit-scrollbar {
    width: 5px;
}


.country-list::-webkit-scrollbar-thumb {
    background: #155b75;

    border-radius: 10px;
}


.country-item {
    width: 100%;

    min-height: 58px;

    margin-bottom: 5px;

    padding: 8px;

    display: flex;

    align-items: center;

    gap: 12px;

    cursor: pointer;

    background:
        rgba(255,255,255,0.025);

    border:
        1px solid
        transparent;

    transition:
        0.2s ease;
}


.country-item:hover {
    transform:
        translateX(3px);

    background:
        rgba(70,210,255,0.08);

    border-color:
        rgba(70,210,255,0.24);
}


.country-item.active {
    background:
        rgba(60,205,255,0.12);

    border-color:
        rgba(60,215,255,0.45);
}


.country-item img {
    width: 40px;

    height: 27px;

    flex-shrink: 0;

    object-fit: cover;

    border-radius: 3px;

    background: #111a24;
}


.country-item-text {
    min-width: 0;

    flex: 1;
}


.country-item-text strong {
    display: block;

    color: #d7e5ec;

    font-size: 12px;

    font-weight: 600;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.country-item-text small {
    display: block;

    margin-top: 3px;

    color: #708697;

    font-size: 9px;
}


/* =========================================================
   DETAILS
========================================================= */

.details {
    width: 100%;

    min-width: 0;

    max-width: 1200px;

    margin:
        0 auto;

    padding:
        35px 45px 75px;
}


/* =========================================================
   WELCOME
========================================================= */

.welcome-screen {
    min-height: 75vh;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.big-globe {
    font-size: 115px;

    line-height: 1;

    filter:
        drop-shadow(
            0 0 35px
            rgba(50,195,255,0.7)
        );
}


.welcome-screen h2 {
    margin-top: 25px;

    font-size: 28px;

    letter-spacing: 3px;
}


.welcome-screen p {
    max-width: 600px;

    margin-top: 13px;

    color: #71899a;

    font-size: 13px;

    line-height: 1.9;
}


/* =========================================================
   HIDDEN
========================================================= */

.hidden {
    display: none !important;
}


/* =========================================================
   COUNTRY HEADER
========================================================= */

.country-header {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 25px;

    margin-bottom: 25px;
}


.country-flag {
    width: 150px;

    height: 100px;

    flex-shrink: 0;

    display: block;

    object-fit: cover;

    border-radius: 5px;

    border:
        1px solid
        rgba(70,215,255,0.35);

    background: #111a24;

    box-shadow:
        0 0 30px
        rgba(40,190,255,0.15);
}


.country-title {
    min-width: 0;
}


.region {
    color: #4fdcff;

    font-size: 9px;

    letter-spacing: 3px;

    font-weight: 700;
}


.country-title h2 {
    margin-top: 7px;

    font-size: 40px;

    line-height: 1.05;

    font-weight: 800;
}


.country-title p {
    margin-top: 8px;

    color: #72899a;

    font-size: 12px;
}


/* =========================================================
   STATISTICS
========================================================= */

.stats-grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 12px;

    margin-bottom: 30px;
}


.stat {
    min-width: 0;

    min-height: 88px;

    padding: 14px;

    display: flex;

    align-items: center;

    gap: 12px;

    background:
        rgba(255,255,255,0.035);

    border:
        1px solid
        rgba(255,255,255,0.08);
}


.stat > span {
    flex-shrink: 0;

    font-size: 25px;
}


.stat > div {
    min-width: 0;
}


.stat small {
    display: block;

    color: #4fd9ff;

    font-size: 7px;

    letter-spacing: 2px;
}


.stat strong {
    display: block;

    margin-top: 6px;

    color: #d7e5ec;

    font-size: 12px;

    line-height: 1.4;

    word-break: break-word;
}


/* =========================================================
   SECTION HEADERS
========================================================= */

.section-heading {
    width: 100%;

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 28px;

    margin-bottom: 13px;
}


.section-heading span {
    color: #4fdcff;

    font-size: 11px;

    font-weight: 800;
}


.section-heading h3 {
    color: #ffffff;

    font-size: 11px;

    letter-spacing: 2px;

    font-weight: 800;
}


/* =========================================================
   ANTHEM
========================================================= */

.anthem-card {
    width: 100%;

    min-height: 120px;

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 18px;

    background:
        linear-gradient(
            135deg,
            rgba(10,130,190,0.14),
            rgba(255,255,255,0.025)
        );

    border:
        1px solid
        rgba(70,215,255,0.25);
}


.music-icon {
    width: 58px;

    height: 58px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 50%;

    color: #51ddff;

    background:
        rgba(55,210,255,0.08);

    border:
        1px solid
        rgba(70,215,255,0.38);

    font-size: 28px;
}


.anthem-info {
    min-width: 0;

    flex: 1;
}


.anthem-name {
    color: #ffffff;

    font-size: 15px;

    font-weight: 700;
}


.anthem-status {
    margin-top: 6px;

    color: #708799;

    font-size: 9px;
}


#anthemAudio {
    width: 100%;

    height: 40px;

    display: block;

    margin-top: 12px;
}


.anthem-note {
    margin-top: 7px;

    color: #526b7c;

    font-size: 8px;

    line-height: 1.5;
}


/* =========================================================
   PHOTO GALLERY
========================================================= */

.photo-gallery {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 15px;
}


.photo-card {
    position: relative;

    min-height: 220px;

    overflow: hidden;

    background: #07131f;

    border:
        1px solid
        rgba(70,215,255,0.20);
}


.photo-card img {
    width: 100%;

    height: 230px;

    display: block;

    object-fit: cover;

    transition:
        transform .4s ease;
}


.photo-card:hover img {
    transform:
        scale(1.05);
}


.photo-overlay {
    position: absolute;

    left: 0;

    right: 0;

    bottom: 0;

    padding: 18px;

    background:
        linear-gradient(
            transparent,
            rgba(0,0,0,0.92)
        );
}


.photo-title {
    color: white;

    font-size: 12px;

    font-weight: 700;

    line-height: 1.4;
}


.photo-source {
    display: block;

    margin-top: 5px;

    color: #76dcff;

    font-size: 8px;

    text-decoration: none;
}


.photo-loading {
    min-height: 200px;

    grid-column:
        1 / -1;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: #637c8e;

    background:
        rgba(255,255,255,0.025);

    border:
        1px solid
        rgba(255,255,255,0.08);

    font-size: 11px;
}


.photo-credit {
    margin-top: 8px;

    color: #526b7c;

    font-size: 8px;

    letter-spacing: 1px;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.description {
    width: 100%;

    min-height: 300px;

    padding: 24px;

    background:
        rgba(255,255,255,0.035);

    border-left:
        3px solid
        #4fd9ff;

    color: #a1b3be;

    font-size: 12px;

    line-height: 2;

    white-space: pre-line;
}


/* =========================================================
   MORE INFORMATION
========================================================= */

.more-country-info {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 12px;
}


.info-box {
    padding: 18px;

    display: flex;

    align-items: center;

    gap: 14px;

    background:
        rgba(255,255,255,0.035);

    border:
        1px solid
        rgba(255,255,255,0.08);
}


.info-box > span {
    font-size: 25px;
}


.info-box small {
    display: block;

    color: #4fd9ff;

    font-size: 7px;

    letter-spacing: 2px;
}


.info-box a {
    display: block;

    margin-top: 6px;

    color: #dbe8ef;

    font-size: 10px;

    text-decoration: none;
}


.info-box a:hover {
    color: #54ddff;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 950px) {

    main {
        grid-template-columns:
            290px minmax(0,1fr);
    }


    .sidebar {
        width: 290px;

        min-width: 290px;
    }


    .details {
        padding:
            30px 25px 60px;
    }


    .stats-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }


    .photo-gallery {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

}


@media (max-width: 700px) {

    nav {
        height: 70px;

        padding:
            0 16px;
    }


    .page-title {
        display: none;
    }


    main {
        display: block;
    }


    .sidebar {
        width: 100%;

        min-width: 100%;

        border-right: none;

        border-bottom:
            1px solid
            rgba(255,255,255,0.1);
    }


    .country-list {
        height: 270px;
    }


    .details {
        width: 100%;

        padding:
            25px 16px 50px;
    }


    .country-header {
        align-items:
            flex-start;
    }


    .country-title h2 {
        font-size: 30px;
    }


    .photo-gallery {
        grid-template-columns:
            1fr;
    }


    .more-country-info {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 450px) {

    .country-header {
        flex-direction:
            column;
    }


    .country-flag {
        width: 140px;

        height: 93px;
    }


    .country-title h2 {
        font-size: 27px;
    }


    .stats-grid {
        grid-template-columns:
            1fr;
    }


    .anthem-card {
        align-items:
            flex-start;
    }

}