@font-face {
    font-family: 'Minecraft';
    src: url('fonts/Minecraft.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    background-image: url('background.jpg');
    background-size: cover;  
    background-position: center; 
    background-repeat: no-repeat; 
    font-family: 'Minecraft', sans-serif;
    
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

#weather-container {
    background: rgba(255, 255, 255, 0.3);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

h2, label, p {
    color: #fff;
    margin: 5px 0;
    font-family: 'Minecraft', sans-serif;
}

input {
    font-family: 'Minecraft', sans-serif;
    font-size: 16px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid white;
    text-align: center;
    width: 70%;
    margin-bottom: 20px;
   
}
#weather-container input, #weather-container button {
    width: auto;
    margin: 5px;
}
button {
    background: #debff4;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 20px;
    width: 100px;
    font-size: 15px;
}

button:hover {
    background: #8b48d7;
}

#temp-div p {
    font-size: 60px;
    margin-top: -30px;
}

#weather-info {
    font-size: 20px;
}

#weather-icon {
    width: 200px;
    height: 200px;
    margin: 0 auto 10px; 
    margin-bottom: 0;
    display: none;
}

#hourly-forecast {
    margin-top: 50px;
    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    justify-content: flex-start; /* Asigură-te că elementele sunt aliniate la stânga */
    align-items: center; /* Aliniază elementele pe axa verticală */
}

.hourly-item {
    flex: 0 0 auto;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 10px;
    color: white;
}

.hourly-item img {
    width: 30px;
    height: 30px;
    margin-bottom: 5px;
}

#hourly-heading {
    color: #fff;
    margin-top: 10px;
}


#weather-icon {
    width: 210px; 
    height: auto;
    
    margin-bottom: 10px;
}


/* Responsive pentru telefoane */
@media screen and (max-width: 600px) {
    #weather-container {
        width: 90%;
        padding: 15px;
    }
    input {
        width: 100%;
        padding: 8px;
    }
    button {
        width: 100%;
        padding: 10px;
    }
    #weather-icon {
        width: 150px;
    }
    #hourly-forecast {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .hourly-item {
        width: 80px;
    }
}
