@import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Poppins', sans-serif;
    color: #fff;
}

body {
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card {
    padding: 20px 30px;
    border-radius: 10px;
    background: linear-gradient(to bottom right, blue, skyblue);
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance:none;
}

.search-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    padding-right: 5px;
}

.search-box input {
    width: 300px;
    outline: none;
    border: none;
    margin-right: 10px;
    padding: 10px;
    color: skyblue;
    border-radius: 25px;
    background: #fff;
}

::placeholder {
    color: skyblue;
}

.search-box button {
    outline: none;
    border: none;
    cursor: pointer;
    height: 40px;
    width: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-box button img {
    height: 20px;
}

.weather {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

img{
    pointer-events: none;
}

@media only screen and (max-width: 600px){
    .search-box {
        width: 100%;
        height: 50px;
        background: #fff;
        border-radius: 25px;
    }

    .search-box input {
        background: transparent;
    }
}

#weather {
    display: none;
}

.weather-icon {
    width: 170px;
    margin-top: 30px;
}

.weather h1 {
    font-size: 50px;
    font-weight: 500;
}

.weather h2 {
    font-size: 45px;
    font-weight: 400;
    margin-top: -10px;
}

.details {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: 50px;
}

.col {
    display: flex;
    align-items: center;
    text-align: left;
    flex-basis: 40%;
}

.col img {
    width: 40px;
    margin-right: 10px;
}

.line {
    height: 1px;
    background-color: #fff;
    width: 100%;
    box-shadow: 0 0 10px grey;
    margin-bottom: -20px;
}

.text-container {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

@media only screen and (max-width: 450px){
    .card{
        width: 100%;
        max-width: 100%;
        height: 100vh;
        border-radius: 0;
    }
}

.error {
    width: 100%;
    height: 200px;
    display: none;
    align-items: center;
    justify-content: center;
}

.error p {
    text-align: center;
    color: red;
    font-size: 20px;
}