* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Das ist der Lebensretter! */
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(45deg, #38c6ee, #1ad3a8);
    background-size: cover;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    gap: 50px;
    transition: 0.25s ease-in-out;
}

body.palette1 {
    background: linear-gradient(45deg, #38c6ee, #1ad3a8);

}

body.palette2 {
    background: linear-gradient(45deg, #afafaf, #575757);
}

body.palette3 {
    background: linear-gradient(45deg, #afafaf, #575757);
}

#app{
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5.2px);
    -webkit-backdrop-filter: blur(5.2px);
    border: 1px solid rgba(255, 255, 255, 1);
    width: 400px;
    height: 300px;
}

.top{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-bottom: 10px;
}

#change{
    padding-top: 25px;
    padding-left: 25px;
}

.weather{
    padding-bottom: 20px;
}

.bottom{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

#changeLocation{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#country{
    width: 200px;
    height: 40px;
    background: rgba(0, 0, 0, 0.47);
    border-radius: 5px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5.7px);
    -webkit-backdrop-filter: blur(5.7px);
    border: 1px solid rgba(0, 0, 0, 1);
    transition: 0.25s;
    color: white;
}

#country:hover{
    transform: scale(1.1);
}

#city{
    width: 200px;
    height: 40px;
    background: rgba(0, 0, 0, 0.47);
    border-radius: 5px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5.7px);
    -webkit-backdrop-filter: blur(5.7px);
    border: 1px solid rgba(0, 0, 0, 1);
    transition: 0.25s;
    color: white;
}

#city:hover{
    transform: scale(1.1);
}

#submit{
    width: 100px;
    height: 60px;
    background: rgba(0, 0, 0, 0.47);
    border-radius: 5px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5.7px);
    -webkit-backdrop-filter: blur(5.7px);
    border: 1px solid rgba(0, 0, 0, 1);
    font-size: 20px;
    font-weight: bold;
    color: white;
    transition: 0.25s;
}

#submit:hover{
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Schiebt es leicht nach unten */
    }
    to {
        opacity: 1;
        transform: translateY(0);    /* Gleitet an die originale Position */
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0); /* Schiebt es leicht nach unten */
    }
    to {
        opacity: 0;
        transform: translateY(20px);    /* Gleitet an die originale Position */
    }
}

.weatherBlock{
    width: 500px;
    height:250px;
    display: flex;
    flex-direction: row;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5.2px);
    -webkit-backdrop-filter: blur(5.2px);
    border: 1px solid rgba(255, 255, 255, 1);
    padding: 20px;
    animation: fadeIn 0.4s ease-out forwards;
}

.weatherBlock.fadeOut{
    animation: fadeOut 0.4s ease-out forwards;
}

.hidden{
    display: none;
}

#weatherBlockIcon{
    width: 100px;
    height: 100px;
    display: flex;
    align-items: flex-start;
    padding-left: 10px;
    padding-top: 10px;
    opacity: 50%;
}


.weatherBlockChild{
    display: flex;
    flex-direction: column;
}


#weatherBlockTitle{
    font-weight: bold;

}


#weatherBlockTemp{
    display: flex;
    flex-direction: column;
}
