*{
     /* outline: 0.1px solid red;  */
     --squareback: rgba(39, 11, 39, 0.651);
     /* scrollbar-width: none; */
}

::-webkit-scrollbar{
    display: none !important;
}

.material-symbols-outlined {
  font-variation-settings:
  'FILL' 0,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

html{
    height: 100vh;

    color-scheme: dark;

    display: grid;
    place-items: center;

    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: bold;
    color: #000000;

    overflow-y: hidden;
}

body{
    height: 100%;
    width: 100%;
    display: grid;
    place-items: center;
    margin: 0;
}

.wrapper{
    width: 100%;
    max-width: 500px;
    height: 100%;
    max-height: 850px;
    margin-bottom: 50px;

    position: relative;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    /* background-position-y: -300px; */
    border-radius: 20px;
    overflow: hidden;
    /* scrollbar-width: none !important; */
    /* display: flex; */

    /* backdrop-filter: blur(10px); */
}

/* Edit Side */

.editpage{
    width: 100%;
    height: 100%;
    border-radius: 0px 20px 20px 0px;

    position: absolute;
    top: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.774);
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2;
    /* outline: 2px solid red; */
    /* backdrop-filter: blur(10px); */
}

.countrys{
    position: absolute;
    left: 0px;
    top: 50px;
    width: 100%;
    height: 80px;
    z-index: 4;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.header{
    position: absolute;
    top: 15px;
    left: 0px;
    width: 100%;
    text-align: center;
    font-size: larger;

    display: flex;
    justify-content: center;
    align-items: center;
}

.header img{
    position: absolute;
    right: 10px;
    cursor: pointer;
}

.logo{
    width: 40px;
    height: 40px;
    border-radius: 50px;
    background-color: black;

    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    cursor: pointer;
}

.logo:nth-child(1){
    background: url("assets/germany.png");
}

.logo:nth-child(2){
    background: url("assets/britain.png");
}

.logo:nth-child(3){
    background: url("assets/france.png");
}

.logo:nth-child(4){
    background: url("assets/spain.png");
}

.logo:nth-child(5){
    background: url("assets/turk.png");
    background-position-x: -4px !important;
}

.form{
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.editpage input{
    outline: 0;
    border: 0;
    background-color: transparent;

    height: 20px;
    width: 50%;
    padding: 2px 5px 2px 5px;
    font-size: larger;

    transition: 0.15s ease-in-out
}

.editpage input:focus{
    height: 30px;
    border-bottom: 2px solid white;
}

.editpage button{
    height: 100%;
    width: 20px;
    border: 0;
    outline: 0;

    background-color: transparent;
    cursor: pointer;

    display: flex;
    justify-content: center;
    align-items: center;
}

#favButton{
    width: 25px;
    height: 25px;
    margin-right: 10px;
    color: rgb(215, 51, 240);

    background: url(assets/favorite_gray.svg);
    background-position: center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

.favoriten {
    position: absolute;
    bottom: 10px;
    width: 90%;
    height: 40%;
    overflow-y: scroll;
    overflow-x: hidden;
    /* background-color: var(--squareback); */

    /* Use inline-block to display spans and buttons */
    text-align: left;
    line-height: 30px;
    padding-left: 20px;

    display: flex;
    flex-direction: column;
}

.favItem{
    display: flex;
    align-items: center;
    height: 40px;
    width: 50%;
}

.favoriten span{
    cursor: pointer;
    font-size: large;
}

.favRemoveButton{
    height: 25px !important;
    width: 25px !important;
    margin-left: 10px;

    background: url(assets/close.svg);
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
}

/* Danger Page */

.dangerPage{
    width: 100%;
    height: 100%;
    border-radius: 0px 20px 20px 0px;

    position: absolute;
    top: 0px;
    left: 0px;
    background-color: rgba(0, 0, 0, 0.906);
    color: white;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2;
}

.dangerHead{
    position: absolute;
    top: 5px;
    left: 0px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dangercloseButton{
    background: url(assets/close.svg);
    height: 40px;
    width: 40px;
    border: 0;
    outline: 0;
    background-position: center;
    background-size: cover;
    cursor: pointer;
    position: absolute;
    left: 5px;
}

.activealerts{
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

.alert{
    width: 90%;
    outline: 2px solid red;
    border-radius: 10px;
    padding: 10px;
}

/* Weather Side */

.weather{
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 20px;
    color: white;
    background-color: rgba(0, 0, 0, 0.183);
    overflow-y: scroll;

    text-align: center;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.head{
    position: sticky;
    top: 5px;
    /* outline: 1px solid green; */
    width: 100%;
    height: 50px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: small;

    font-weight: 100;
    font-family: 'Courier New', Courier, monospace;
    z-index: 1;
}

#regioncountry{
    margin: 0px;
    margin-top: -20px;
    margin-bottom: -15px;
    font-size: small;
}

.editButton{
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    right: 10px !important;

    background: url(assets/edit.svg);
    /* background-color: red; */
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 0;
    outline: 0;
    cursor: pointer;

    z-index: 2;
}

.dangerButton{
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    left: 10px !important;

    background: url(assets/danger.svg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border: 0;
    outline: 0;
    cursor: pointer;

    z-index: 2;
}

/* Weather Content */

.content{
    width: 100%;
    background: linear-gradient(transparent, black 30%, black);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding-bottom: 10px;
}

/* First View Infos */

.picDiv{
    position: absolute;
    top: 20%;
    right: 50px;

    height: 120px;
    width: 120px;
    color: rgb(53, 53, 53);
    /* background-color: red; */
}

.pictureDay{
    width: 100%;
    height: 100%;

    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
}

.temps{
    display: flex;
    flex-direction: column;

    position: absolute;
    left: 10px;
    top: 20%;

    background-color: rgba(0, 0, 0, 0.349);
    border-radius: 30px;
}

.firstViewInfos{
    text-align: left;
    padding: 24px;
    padding-top: 0px;
    line-height: 25px;
}

#temp{
    font-size: 6ch;
    margin-bottom: 10px;
}

#temp::after, #maxDay::after, #minDay::after, #feels::after{
    content: '°';
}



/* Forecast next 14 Days */

.forecast{
    /* outline: 2px solid red; */
    height: 250px;
    width: 100%;


    overflow-x: auto;
    white-space: nowrap;
    display: flex;
    scrollbar-width: 20px !important;
}

.day{
    width: 45%; 
    height: 94%;
    margin: 2.5%;

    /* box-sizing: border-box; 
    flex: 0 0 auto;
    vertical-align: top; 
    margin: 0px 5px 0px 5px; */

    background-color: var(--squareback);
    border-radius: 20px;

    display: flex;
    flex-direction: column;
    position: relative;

    cursor: pointer;
}

.actualDay{
    width: 100%;
    height: 30px;
    /* background-color: red; */
    position: relative;
    top: 5px;
    line-height: 30px;
}

.actualDayFormal{
    font-size: small;
    color: gray;
}

.forecastTemp{
    width: 100%;
    height: 30px;
    /* background-color: red; */
    position: absolute;
    bottom: 10px;
    line-height: 30px;
    font-size: larger;

    display: flex;
    justify-content: space-around;
    align-items: center;
}

.forecastMax, .forecastMin{
    display: flex;
    justify-content: center;
    align-items: center;
}

.forecastMax::before{
    content: url(assets/up.svg);
}

.forecastMin::before{
    content: url(assets/down.svg);
}

.forecastMax::after, .forecastMin::after{
    content: "°";
}

.forecastimg{
    margin-top: 20px;
    height: 50%;
    /* background-color: blue; */

    background-position: center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
}

/* Specific Informations for Forecast Day */

.forecastDay {
    width: 95%;
    margin-top: 14px;
    background-color: var(--squareback);
    height: 0.01px; /* Hier wird die Höhe auf 1px gesetzt */
    overflow: hidden; /* Versteckt den Inhalt, wenn er größer ist als die Höhe */
    position: relative;
    border-radius: 0px 20px 20px 20px;

    display: flex; /* Hier kannst du 'flex' oder eine andere sichtbare Anzeigeart verwenden */
    flex-direction: column;
    align-items: left;
    justify-content: space-evenly;

    transform-origin: top;
    transition: height 0.5s ease-in-out; /* Anpassung der Übergangszeit auf 0,5 Sekunden */
}


.forecastDay span{
    height: calc(200px / 5);
    display: flex;
    align-items: center;
    padding-left: 100px;
}

.zeiger{
    width: 20px;
    aspect-ratio: 1;
    /* background-color: var(--squareback); */
    border-left: 5px solid var(--squareback);
    border-top: 5px solid var(--squareback);
    transform: rotate(45deg);
    position: absolute;
    top: -12px;
    left: 40px;
}

#avghumidity::before{
    content: url(assets/humidity.svg);
    margin-right: 10px;
}

#avghumidity::after{
    content: '%';
}

#forecastuv::before{
    content: url(assets/sun.svg);
    margin-right: 10px;
}

#forecastuv::after{
    content: '/10';
}

#rainchance::before{
    content: url(assets/rain.svg);
    margin-right: 10px;
}

#rainchance::after{
    content: '%';
}

#forecastsunrise::before{
    content: url(assets/sunrise.svg);
    margin-right: 10px;
    width: 25px;
}

#forecastsunset::before{
    content: url(assets/sunset.svg);
    margin-right: 10px;
    width: 25px;
}

/* Info Box */

.infos{
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    flex-wrap: wrap;
    /* background-color: red; */
    margin-top: 10px;
}

.info{
    width: 45%;
    aspect-ratio: 1/1;
    background-color: var(--squareback);
    margin: 2.5%;
    border-radius: 10px;

    display: flex;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    color: white;
    position: relative;
    text-align: center;
}

.info span{
    width: 100%;
    height: 20px;
}

.info img{
    transform: scale(3.2);
    position: absolute;
    top: 35px;
    left: 43%;
}

.uv, .feucht, .wind, .pressure{
    margin-top: 75px;
    width: 100%;
    text-align: center;
    /* background-color: red; */
    display: flex;
    justify-content: center;
    align-items: center;
}

#uvindex::after{
    content: '/10';
}

#feuchtigkeit::after{
    content: "%";
    color: gray;
}

#windspeed, #winddir, #feuchtigkeit, #pressure, #uvindex{
    color: gray;
    margin-top: -10px;
}

#windspeed::after{
    content: ' km/h';
}

#pressure::after{
    content: ' mbar';
}

/* Sunset Sunrise */

.sun{
    height: 150px;
    width: 95%;
    border-radius: 10px;
    background-color: var(--squareback);
    display: flex;
}

.sunset, .sunrise{
    width: 50%;
    /* background-color: red; */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.sun img{
    width: 50%;
}



/* .de,.en,.fr,.es,.tr{
    margin: 0;
    padding: 0;
} */



/* tr{
    background-color: red;
} */

#weatherAPI{
    position: absolute;
    bottom: 0px;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
}