* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

:root {
    --bg-color: radial-gradient(circle, #00181f 0%, #000d11 75%);
    --left-color: #002a36;
    --right-color: #00222b;
    --main-text-color: #80959b;
    --hover-color:  #003a4a;
}

.light-theme {
    --bg-color: radial-gradient(circle, rgba(105,214,245,1) 0%, rgba(54,117,136,1) 75%);
    --left-color: rgb(55, 114, 130); 
    --right-color: #1b4d5b;
    --main-text-color: white;
    --placeholder: rgba(255, 255, 255, 0.5);
    --hover-color:  #236779;
}

body {
    display: flex;
    flex-direction: column;
    padding: 0 2rem;
    color: var(--main-text-color);
    background: var(--bg-color);
    background-size: cover;
    background-position: center center;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100vw;
}

#theme {
    background-image: url("../assets/light-mode.svg");
    background-position: center;
    background-size: cover;
    object-fit: cover;
    height: 45px;
    aspect-ratio: 1;
    cursor: pointer;
    transform: translateY(-10px);
}

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

h2 {
    font-size: 0.9rem;
}

ul {
    display: flex;
    justify-content: center;
    border-radius: 1rem;
    column-gap: 1rem;
}

li {
    background: var(--left-color);
    display: flex;
    padding: 1rem;
    row-gap: 1rem;
    border-radius: 1rem;
    text-align: center;
    transition: .5s;
}

li:hover {
    transform: scale(1.1);
    background: var(--hover-color);
    cursor: pointer;
}

@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.weather-app {
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: 1rem;
    height: 100%;
}

.loader {
    border: 10px solid var(--main-text-color);
    border-radius: 50%;
    border-top: 10px solid var(--left-color);
    width: 80px;
    height: 80px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
    align-self: center;
}
