/* Loading screen styles */
#loading-screen {
    display: flex;
    background-color: black;
    position: absolute;
    justify-content: center;
    align-items: center;
    top: 0;
    z-index: 10000;
    width: 100vw;
    height: 100vh;
}

/* Easy icon styles */
.easy-icon {
    width: 100%;
}

/* Header and country select styles */
header {
    display: flex;
    justify-content: center;
    margin-bottom: -96px;
    position: relative;
}

#navigation {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    background-color: transparent;
    position: relative;
    z-index: 1000;
}

#navigation form select {
    max-width: 200px;
    background-color: #03045e;
    color: white;
    background-image: linear-gradient(45deg, transparent 50%, white 50%),
        linear-gradient(135deg, white 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 4px), calc(100% - 15px) calc(1em + 4px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

/* Info modal styles */
#infoModal #info .icon {
    width: 2rem;
}

#infoModal #info-currencies li {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* Airport modal styles */
#airportModal #airport {
    padding-left: 0;
}

#airportModal .airport-item {
    width: 100%;
    color: white;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
}

#airportModal .airport-item h4 {
    color: black;
    margin-bottom: 5px;
}

#airportModal .airport-item h4 .icon {
    width: 2rem;
}

#airportModal .airport-item h4 span {
    text-align: right;
}

#airportModal .airport-item p {
    background-color: rgb(166, 38, 38);
    font-weight: 400;
    color: white;
    padding: 0.5rem;
}

#airportModal .airport-item:nth-child(2n+1) p {
    background-color: #03045e;
}

#airportModal .airport-item>* {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Currency modal styles */
#currencyModal select {
    overflow: hidden;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url('data:image/svg+xml;charset=US-ASCII,%3Csvg xmlns%3D"http%3A//www.w3.org/2000/svg" width%3D"16" height%3D"16" fill%3D"white" class%3D"bi bi-chevron-down" viewBox%3D"0 0 16 16"%3E%3Cpath fill-rule%3D"evenodd" d%3D"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"%3E%3C/path%3E%3C/svg%3E') no-repeat right 10px center;
    background-color: #343a40;
    padding-right: 30px;
}

#currencyModal select::-webkit-scrollbar {
    width: 10px;
}

#currencyModal select::-webkit-scrollbar-thumb {
    background-color: #6c757d;
    border-radius: 10px;
    border: 2px solid #343a40;
}

#currencyModal select::-webkit-scrollbar-track {
    background: #343a40;
    border-radius: 10px;
}

#currencyModal #currency img {
    width: 2rem;
}

#currencyModal #converter img {
    width: 2rem;
    height: 2rem;
    margin-right: 1rem;
    cursor: pointer;
}

/* News modal styles */
#newsModal #news a {
    display: flex;
}

#newsModal #news .article {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    padding: 1rem;
    text-decoration: none;
    border-bottom: 1px solid grey;
    transition: all 150ms ease-in-out;
}

#newsModal #news .article:hover {
    transform: scale(1.03);
}

#newsModal #news p {
    color: #343a40;
}

#newsModal #news img {
    width: 100%;
}

/* Weather modal styles */
#weatherModal #weather-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 1rem;
}

#weatherModal #weather-container #temperature-box {
    font-size: 4rem;
    font-weight: 600;
}

#weatherModal #weather-container .box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#weatherModal .weather-condition-icon {
    height: 2rem;
}

#weatherModal #forecast-container {
    border-top: 2px solid gray;
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
}

#weatherModal #forecast-container div {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#weatherModal .forecast-time {
    font-weight: 600;
}

#weatherModal .forecast-icon {
    height: 3rem;
}

#weatherModal .forecast-temperature {
    font-weight: 600;
    font-size: 1.5rem;
}

#weatherModal .forecast-min-max {
    font-size: 0.8rem;
}

/* Responsive styles */
@media screen and (max-width: 450px) {
    #forecast-container {
        flex-direction: column;
        align-items: flex-start;
    }

    #forecast-container div {
        flex-direction: row !important;
        align-items: center;
    }

    .forecast-time,
    .forecast-icon,
    .forecast-temperature {
        margin: 1rem;
    }

    #info li {
        flex-direction: column;
        align-items: flex-start !important;
    }

    #info li p {
        align-self: flex-end;
    }

    #info-languages,
    #info-currencies,
    #info-timezones {
        align-self: flex-end;
    }

    #currency {
        display: none !important;
    }

    #pollution li {
        flex-direction: column !important;
    }

    #pollution li * {
        text-align: center;
    }
}