* {
    -webkit-user-drag: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; 
}
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to right, #6dd5fa, #2980b9);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    overflow: hidden;
}
.weather-container {
    background: rgba(0, 0, 0, 0.7);
    padding: 20px 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 0, 0, 0.19);
    color: #fff;
    max-width: fit-content;
    max-height: fit-content;
    width: 90%;
    height: 90%;
}
.weather-container h1 {
    margin-bottom: 20px;
    color: #fff;
}
.input-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
#city-input {
    padding: 10px;
    border: none;
    border-radius: 5px 0 0 5px;
    outline: none;
    width: 300px;
    color: #333;
    background: #fff;
    font-size: 1rem;
}
button {
    padding: 10px;
    border: none;
    border-radius: 0 5px 5px 0;
    background-color: #2980b9;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s;
    font-size: 1rem;
    margin-left: -1px;
}
button:hover {
    background-color: #1f5f8b;
}
.location-container {
    text-align: center;
    margin-top: 15px;
}
.location-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    background-color: #2980b9;
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.location-btn:hover {
    background-color: #1f5f8b;
}
.location-btn:active {
    background-color: #145374;
}
.weather-result {
    display: none;
    margin-top: 20px;
    text-align: center;
}
.weather-result h2 {
    margin: 10px 0;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.weather-result p {
    margin: 5px 0;
    font-size: 1rem;
    color: #fff;
}
.weather-result img {
    margin-top: 10px;
    width: 100px;
    height: 100px;
}
#weather-result.show {
    display: block;
}
.unit-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 25px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: #2980b9;
}
input:checked + .slider:before {
    transform: translateX(25px);
}
#unit-label {
    font-size: 1rem;
    color: #fff;
    font-weight: bold;
}
@media (max-width: 768px) {
    .weather-container {
        padding: 15px 20px;
    }
    #city-input {
        width: 150px;
    }
    button {
        font-size: 0.9rem;
    }
    .forecast-item {
        width: 70px;
    }
    .forecast-item img {
        width: 40px;
        height: 40px;
    }
}