:root{
    --outline: #21A691;
    --text:white;
}

.line-break{
    border: 1.75px solid var(--outline);
    border-radius: 30px;
    margin: 2% 0 2% 0;
}

.weather-display{
    width: 100%;
    height:400px;
    margin-bottom: 2%;
    display: flex;
    gap: 1%;
}

.weather-content, .map{
    width: 50%; 
    border-radius: 15px;
}

.weather-content{
    height: 100%;
    border: 3px solid var(--outline);
    box-shadow: 0 0 10px 0 var(--outline);
    color: var(--text);
    padding: 1%;
    flex-direction: column;
    position: relative;
    display: flex;
}

.text-container {
    display: flex;
    height: 60%;
}
.text {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 10%;
}
.temperature {
    font-size: 50px;
    font-family: Montserrat-Medium;
}
.weather-current-date {
    font-weight: normal;
    font-family: Open-Sans-Light;
    font-size: 25px;    
}
.weather-description{
    font-size: 25px;
    font-family: Montserrat-Light;
}

.text-container img {
    max-width: 200px;
    max-height: 200px;
}
.weather-features {
    display: grid;
    width: 96%;
    height: 25%;
    grid-template-columns: 19.5% 19.5% 19.5% 19.5% 19.5%;
    position: absolute;
    gap: 0.5%;
    bottom: 5%;
}
.featuer {
    width: 100%;
    height: 90%;
    border: 3px solid var(--outline);
    border-radius: 10px;
    padding: 5%;
    font-size: 18px;
    text-wrap: wrap;
    text-wrap-style: balance;
    line-height: 1.8;
}

.featuer p {
    font-family: Montserrat-Regular;
    font-size: 20px;
}
.featuer h5{
    font-weight: normal;
    font-family: Montserrat-Medium;
}

.map {
    box-shadow: 0 0 10px rgba(223, 217, 217, 0.401);
}

/* Responsives */
@media only screen and (max-width: 950px){
    .weather-display {
        flex-direction: column;
        height: 600px;
        gap: 2%;
    }
    .weather-content, .map{
        width: 100%;
    }
    .weather-content {
        height: 58%;
    }
    .map{height: 38%;}
}

@media only screen and (max-width: 600px){
    .weather-display {
        height: 750px;
        gap: 2%;
    }
    .weather-content{
        height: 80%;
    }
    .text-container {
        display: block;
        height: auto;
        padding-left: 2%;
    }
    .weather-current-date {
        font-size: 18px;
        width: 300px;
    }
    .temperature {
        font-size: 25px;
    }   
    .weather-description{
        font-size: 18px;
        min-width: 300px;
    }
    .weather-description p {display: block;}
    /* Ensure img is hidden */
    .text-container img {
        display: none;
    }
    .weather-features {
        height: 70%;
        display: flex;
        flex-direction: column;
        padding: 0 0 0 1%;
        gap: 2%;
    }
    .featuer{
        height: 20%;
        padding: 4.5% 2% 2% 2%;
        position: relative;
    }
    .featuer h5,p{display: inline;}
    
    .featuer h5{
        font-size: 20px;
    }
    .featuer p {
        position: absolute;
        right: 10px;
        width: 100px;
    }   
    .map {
        height: 24%;
    }
}
