
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.overall {   /* website box */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: url("./assets/forest.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
}

.container {   /* weather container */
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    text-align: center;
    font-family: "PT Sans", sans-serif;
    color: white;
    padding: 20px;
}

input {   /* user search */
    padding: 10px;
    border: none;
    border-radius: 20px;
}

.buttons {        /* search button */
    width: 120px;
    border: none;
    padding: 8px;
    border-radius: 20px;
    font-weight: bold;
    transition: all 1s;
    cursor: pointer;
}

.mycls {   /* input style */
    width:20%;
    border-radius: 20px;
}

button:active {
    transform: scale(0.30);
}

input::placeholder {
    font-weight: bold;
}

.sear {  /* search container  */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.main {  /* weather main */
    display: flex;
    height: 85%;
    margin-top: 1rem;
}

.right {  /* other details */
    width: 50%;
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    align-items: center;
    border: 1px solid thistle;
}

.left {  /* main details */
    border: 1px solid thistle;
    width: 50%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    padding: 15px;
}

.det1 {  /* main details each box */
    display: flex;
    border: 1px solid white;
    border-radius: 20px;
    padding: 10px;
    gap: 10px;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

.det2 {  /* other details each box */
    display: flex;
    padding: 10px;
    gap: 5rem;
    justify-content: center;
    align-items: center;
    width: 100%;
}

span {
    margin-left: 20px;
}

#cel {   /* celcius */
    font-size: clamp(2.8rem, 6vw, 3.5rem);
}


#loc {  /* location */
  
    font-size: clamp(1.4rem, 3vw, 2rem);
}

#cld {  /* clouds type */

    font-size: clamp(1.2rem, 2.8vw, 2rem);

}

.size {  /* other details gif */
    height: 45px;
    width: 45px;
}

.size1 {  /* main details gif */
    height: 80px;
    width: 80px;
}
  /* responsive code  */
@media only screen and (min-width:320px) and (max-width:600px) {
    .sear {
        flex-direction: column;
        gap: 10px;
    }

    .mycls {
        width: 100%;
    }

    .buttons {
        width: 100%;
    }

    .main {
        flex-direction: column;
        gap: 10px;
    }

    .left {
        width: 100%;
        border: none;
        gap: 20px;
    }

    .det1 {
        flex-direction: column;
    }

    .size1 {
        height: 60px;
        width: 60px;
    }

    .right {
        width: 100%;
        border: none;
        gap: 20px;
    }

    .det2 {
        flex-direction: column;
        gap: 1rem;
        border: 1px solid white;
        border-radius: 20px;
    }
}

@media only screen and (min-width:601px) and (max-width:900px) {
    .sear {
        flex-direction: column;
        gap: 10px;
    }

    .mycls {
        width: 70%;
    }

    .buttons {
        width: 70%;
    }
     .main {
        flex-direction: column;
        gap: 10px;
    }
    .left{
        border:1px solid thistle;
        width:100%;
        gap:20px;
        padding:15px;
    }
    .right{
        width:100%;
        border:1px solid thistle;
        gap:20px;
        padding:15px;
    }
    .det2{
        gap:1rem;
        border:1px solid white;
        border-radius: 20px;
        justify-content: space-evenly;
    }
     .size1 {
        height: 70px;
        width: 70px;
    }
    .size{
        height:50px;
        width:50px;
    }
}

