* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    /* border: 1px solid rgb(21, 255, 9); */
}

body {
    min-height: 100vh;
    background: linear-gradient(to bottom, #13233D, black);
}

header {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    padding: 10px;
}

header h1 {
    margin: 10px;

}

header .searchBar {
    position: relative;
    width: 75%;
    background-color: rgb(255, 255, 255);
    padding: 7px 20px;
    border-radius: 5px;
    margin: 10px;
}

.searchBar input {
    color: black;
    text-decoration: none;
    font-size: 1.8rem;
    width: 95%;
    outline: none;
    border: none;
}
input[type="search"]::-webkit-search-cancel-button{
    display: none;
}

.searchBar button {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 100%;
    cursor: pointer;
    outline: none;
    border: none;
    background-color: transparent;
    padding: 5px;
}

.searchBar button img {
    height: 100%;
    user-select: none;
    -webkit-user-drag: none;
}

main {
    width: 100%;
}

section {
    width: 100%;
}

.CurrentBox {
    width: 85%;
    margin: 40px auto;
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.CurrentBox img {
    width: 50%;
    user-select: none;
    -webkit-user-drag: none;
}

.CurrentBox div {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.currentBox {
    width: 30%;
    justify-content: space-between;
}

.addressBox {
    width: 60%;
    justify-content: space-evenly;
}

#address {
    margin: 10px;
    font-size: 3.5rem;
}

#currentTemp {
    font-size: 2rem;
    margin: 10px;
}

#current {
    font-size: 1.7rem;
}

.details {
    width: 80%;
    margin: 30px auto;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-evenly;
    padding: 10px;
    flex-wrap: wrap;
}

.details div {
    background-color: #13233D;
    margin: auto;
    margin: 5px;
    min-width: 160px;
    padding: 8px;
    border-radius: 5px;
    text-align: center;
}

.details div h3,
h2 {
    margin: 10px;
}

.details div h2 {
    color: rgb(199, 199, 199);
}

.details div h3 {
    font-size: 1.5rem;
}

.location {
    position: fixed;
    bottom: 0;
    right: 0;
}




@media (max-width:1050px) {
    .details {
        width: 90%;
    }

    .CurrentBox {
        width: 90%;
    }

    #current {
        font-size: 1.5rem;
    }

    #address {
        font-size: 3rem;
    }
}

@media (max-width:800px) {
    header .searchBar{
        width: 85%;
    }
    .details {
        width: 100%;
    }
}

@media (max-width:500px) {
    header .searchBar{
        width: 92%;
        
    }
    #address{
        font-size: 2.3rem;
    }
    #current{
        font-size: 1rem;
    }
    .CurrentBox img {
        width: 60%;
    }
    #currentTemp{
        font-size: 1.7rem;
    }
    .CurrentBox {
        width: 100%;
    }
    .currentBox {
        width: 35%;
    }
    .addressBox {
        width: 50%;
    }
    .details div h3 {
        font-size: 1.2rem;
    }
    .details div h2 {
        font-size: 1.4rem;
    }
    .details div{
        margin: 8px;
    }
}

@media (max-width:380px) {
    header .searchBar{
        width: 100%;
        padding: 4px;
    }
    .details div {
        min-width: 130px;
    }
    #address{
        font-size: 2rem;
    }
    #currentTemp{
        font-size: 1.5rem;
    }
    .details div h2 {
        font-size: 1.2rem;
    }
    .details div h3 {
        font-size: 1rem;
    }
}
