@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&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&family=Raleway:ital,wght@0,100..900;1,100..900&family=Rubik+Spray+Paint&family=Saira:ital,wght@0,100..900;1,100..900&display=swap');

body {
    font-family:'Poppins';
    background-image: linear-gradient(to top, #a8edea 0%, #fed6e3 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}
.container{
    width:760px;
    height:400px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    gap:60px;
}
.left-container{
    display:flex;
    flex-direction:column;
}
.clock-frame {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

.number {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(calc(30deg * var(--i)));
}

.number span {
    position:absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%) rotate(calc(-30deg * var(--i)));
    font-size: 20px;
    font-weight: bold;
    color: black;
    margin-top: 10px;
}
.hand {
    position: absolute;
    width: 46%;
    background-color: black;
    top: 50%;
    left: 50%;
    transform-origin: 0%;
    border-radius: 5px;
}

.hour {
    width: 30%;
    height: 6px;
    background-color: #000;
}

.minute {
    height: 4px;
    background-color: #333;
}

.second {
    height: 2px;
    background-color: red;
}
.middle-dot{
    position:relative;
    background-color:rgb(0, 0, 0);
    height:10px;
    width:10px;
    border-radius: 50%;
    top:50%;
    left: 50%;
    transform:translate(-5px,-1px)
}
.number::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 10px;
    background: black;
    left: 50%;
}
.AMPM{
    margin-left:10px;
}
.digital{
    display:flex;
    justify-content:center;
    align-items:center;
    color:rgb(0, 0, 0);
    font-size:2rem;
}
.Clock{
    font-size:2.75rem;
}
.Date{
    font-size:1.2rem;
}
.Month{
    margin-left:10px;
}
.year{
    margin-left:5px;
}
.digitalContainer{
    display:flex;
    flex-direction:column;
    justify-content:center;
}
.weather-info {
    text-align: center;
    font-size: 1.1rem;
}
.weather-icon{
    margin:-10px 0 -25px 0;
}
.temp{
    font-size:2rem;
}
.condition{
    font-size:1.5rem;
    margin:-9px 0 0 0;
}
.cityInput{
    font-family:poppins;
    font-size:1rem;
    color:#373737;
    outline:none;
    background-color:#00000028;
    border:none;
    display:none;
    width:50%;
    padding:8px;
    border-radius:16px;
    margin-top:10px;
}
.searchButton{
    margin-top:10px;
    color:#fff;
    border:none;
    background-color:#00000028;
    border-radius:30%;
    padding:15px;
    transition: 0.3s ease;
}

.searchButton:hover{
    background-color:#ffffff28;
    color:#000;
}
.cityInput:focus{
    animation: line 0.5s ease;
}
.cityInput:focus + .searchButton{
    background-color:#497aff28;
    color:#245bff;
}

@keyframes line{
    from{
        width:0%;
    }
    to{
        width:50%;
    }
}
@media (max-width:760px){
    .container{
        flex-direction:column;
        justify-content:center;
        align-items:center;
        width:400px;
        height:700px;
        transform:scale(0.9);
    }
    .Clock{
        margin-top:-50px;
    }
    .Date{
        font-size:1.1rem;
        margin-top:-10px;
    }
}