:root {
    --margin: 25px;
  }

body{
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Regular */
    color: white;
    margin: 0;
    min-height: 100vh;
}

footer{
    color: black;
    text-align: center;
    /* sent to bottom centered
    position: absolute;
    bottom: 0;
    width: 100%; */
}   

h1{
    color: black;
    text-align: center;
}

#title{
    color: white;
}

button {
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 10px;
    transition-duration: 0.4s;
    cursor: pointer;
    color: white;
    margin-bottom: 1em;
    font-size: 16px;
    font-weight: bold;
}
  
button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

main {
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.weather-container{
    width: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(to bottom, #ff0000, #0044ff);
    transition: background 1s ease;
    border-radius: 10px;
    min-width: 400px;
    margin: 0 auto;
    /* shadow */
    box-shadow: rgba(0, 0, 0, 0.1) 10px 10px;

    /*resize: both;*/
    /*overflow: hidden;*/
}

.weather-container:hover {
    background-color: red;
  }

.data-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    margin-bottom: 1em;
}

.weather-info{
    display: flex;
    flex-direction: column;
    margin: auto;
    margin-left: 2em;
}

#weather-icon{
    border-radius: 75px;
    border: solid rgba(255, 255, 255, 0.3) 2px;
    background-color: rgba(255, 255, 255, 0.4);
    box-shadow: rgba(0, 0, 0, 0.4) 2px 2px;
}

body .weather-info div h2{
    font-weight: 100;
    margin: 0;
}

.horizontal-data{
    display: flex;
    flex-direction: row;
    margin: auto;
    margin-top: 1em;
}

.max-min{
    width:100%;
    display: flex;
    flex: row;
}

.max-min div{
    width: 50%;
    text-align: center;

}

#temp{
    /* font-weight: bold; */
    font-size: 30px;
}

#max{
    font-weight: 100;
}

#min{
    font-weight: 100;
}

#press{
    font-weight: 100;
}

#hum{
    font-weight: 100;
}

#hist{
    font-weight: 100;
}

label {
    font-size: 18px;
    font-weight: bold;
    margin-top: 1em;
}

select {
  color:white;
  width: 100%;
  padding: 10px;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  width: auto;
  height: min-content;
  margin: auto;
}

select:focus {
  outline: none;
  background-color: rgba(0, 0, 0, 0.4);
}
select:hover{
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.8);
}

option {
  font-size: 16px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0.9);
  transition: all 0.3s ease;
}

option:hover {
  background-color: rgba(0, 0, 0, 0.4);
}

.selector{
    display: flex;
    flex-direction: row;
    margin-top: 1em;
    margin-bottom: 1em;
    
}

.weather-info .temp h2 {
    display: flex;
    flex-direction: row;
}

#weather{
    margin: auto;
}

.selector h3{
    margin: 0.5em;
}

#historical{
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-top:0;
}

#historical p{
    display: flex;
    flex-direction: column;
    
    margin: 0;
    /* margin-left: 1em; */
}

#hist_ {
    font-weight: 100;
    max-width: 50%;
}

#hist h2{
    width: 100%;
    text-align: center;
    justify-content: center;
}

.hist_ {
    width: 300px;
    overflow: hidden;
    overflow-x: scroll;
}

.time {
    width: 100px;
    text-align: center;
}

.temp{
    width: 100px;
    font-weight: 100;
    text-align: center;
}

#switch{
    margin-left: 1em;
    position: relative;
}

/* width */
::-webkit-scrollbar {
    width: 20px;
  }
  
  /* Track */
  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey; 
    border-radius: 10px;
  }
   
  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 1); 
    border-radius: 10px;
  }
  
  /* Handle on hover */
  ::-webkit-scrollbar-thumb:hover {
    background: rgb(168, 168, 168);
  }