
/* ---------------------------------------------- */
/*                    GENERAL                     */
/* ---------------------------------------------- */

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'KoHo', sans-serif;
}
html{
    font-size: 16px;
}
.hide{
    display: none;
}
.fadeIn{
    animation: fade 0.5s ease-in-out;
}
@keyframes fade {
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}

/* ---------------------------------------------- */
/*                    HEADER                      */
/* ---------------------------------------------- */

header{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    width: 100%;
    /* max-width: 1200px; Can be removed */
    margin: 0 auto;
    /* background-color: azure; */
    background-color:transparent;
    background-image:linear-gradient(135deg, azure 53.5%, #ad38e2 50%);
}


/* -------- LOGO -------- */

.logo{
    display: flex;
    align-items: center;
    padding-left: 20px;
}
.logo img{
    width:60px;
}
.logo p{
    font-weight: bolder;
    color: #6a149b;
}
.my-name{
    color: black;
    font-size: 13px;
}

/* -------- NAV -------- */

nav ul{
    display: flex;
    align-items: center;
}
nav ul li{
    list-style: none;
}
nav ul li:last-child{
    padding-right: 1px;
}
nav ul li a{
    padding: 6px;
    text-decoration: none;
    /* color: #6a149b; */
    color: whitesmoke;
}
/* ---------------------------------------------- */
/*                      MAIN                      */
/* ---------------------------------------------- */

main{
    /* max-width: 1200px; */
    margin:0 auto;
}

/* -------- BG IMAGE -------- */

.stats{
    width:100%;
    background-image: linear-gradient(rgba(0,0,0,0.9),rgba(0,0,0,0.8)),url(../img/bg.jpg);
    background-size: cover;
}

/* -------- LATEST REPORT -------- */

.latest-report{
    display: flex;
    width: 80%;
    margin: 0 auto;
    align-items: center;
    padding-top: 50px;
    justify-content: space-between;
    color: white;
}

.country,
.total-cases,
.recovered,
.deaths{
    height: 100px;
}

.name{
    color:#be64f1;
    font-size: 2.2em;
    font-weight: bold;
}
.change-country{
    cursor: pointer;
}
.title{
    font-size: 1.3em;
}
.total-cases .value{
    font-size: 2em;
    font-weight: bold;
}
.recovered .value{
    font-size: 2em;
    font-weight: bold;
    color: yellowgreen;
}
.deaths .value{
    font-size: 2em;
    font-weight: bold;
    color: red;
}
.new-value{
    font-size: 1.35em;
}
/* -------- CHART -------- */

.chart{
    width:80%;
    margin: 0 auto;
    height: 70vh;
    min-height: 500px;
    padding: 50px 0;
}

/* -------- SEARCH COUNTRY -------- */

.search-country{
    position: relative;
    top: 10px;
}
.search-box{
    position: absolute;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 400px;
    z-index: 1;
    height: 30px;
    background-color: #111;
}

@media screen and (max-width:600px){
    .search-box{
        width:250px;
    }
}

.search-box input{
    width: 360px;
    height: 25px;
    border: none;
    background-color: transparent;
    color: white;
    padding-left: 15px;
    font-size: 1.1em;
}
.search-box img{
    width:20px;
    padding-right: 5px;
    cursor: pointer;
}

.country-list{
    position: absolute;
    display: flex;
    top:30px;
    width: 400px;
    height: 300px;
    background-color: #111;
    opacity: 0.9;
    overflow-y: scroll;
     
}
.country-list ul{
    width: 100%;
}
.country-list ul li{
    list-style: none;
    cursor: pointer;
    padding: 10px;
    color: white;
}
.country-list ul li:hover{
    border-left: white solid 1px;
}
/* SCROLL BAR */

/* ---------------------------------------------- */
/*                    FOOTER                      */
/* ---------------------------------------------- */

.footer-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    /* max-width: 1200px; */
    background-color:transparent;
    background-image:linear-gradient(135deg, #492cdd 0%, #ad38e2 100%);
    margin: 0 auto;
    height: 60px;
}
.copyright{
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
    height: 100%;
}

/* ---------------------------------------------- */
/*             SCREEN WIDTH < 600px               */
/* ---------------------------------------------- */

@media screen and (max-width:600px){
    .latest-report{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
}