* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: white;
}

body {
    /* background-image: url(https://source.unsplash.com/random/?landscape,dark); */
    background-image: url('./images/daniel-leone-v7daTKlZzaw-unsplash.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
}

#content {
    height: 100vh;
    width: 100vw;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 4fr 2fr;
    padding: 20px;
    max-width: 1440px;
}

#form-container {
    grid-row: 1/2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* color: black; */
}

#form-container form {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

form * {
    margin-right: 10px;
}

#change-units {
    background-color: rgba(26, 26, 26, 0.683);
    width: 44px;
    height: 44px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#change-units:hover {
    background-color: rgba(26, 26, 26, 0.87);
    cursor: pointer;
}


#change-units span{
    margin: 0;
}

form svg {
    margin-top: 5px;
}

#error-message {
    color: white;
    font-size: 13px;
    margin-top: 5px;
    width: 300px;

    visibility: hidden;
}

#city-name-input {
    width: 300px;
    padding: 15px 15px;
    background-color: rgba(26, 26, 26, 0.683);
    border-radius: 22px;
    border: none;
    height: 45px;
    outline: none;
}

#city-name-input:focus {
    background-color: rgba(26, 26, 26, 0.724);
}

#city-name-input::placeholder {
    color: white;
}

#city-name-search {
    padding: 0px 5px;
    height: 30px;
    border: none;
    fill: white;
}

#city-name-search:hover {
    cursor: pointer;
    height: 32px;
}

#today-container {
    grid-row: 2/3;
    display: flex;
    align-items: center;
    justify-content: space-around;
    margin: 40px 50px 60px 50px;
}

#today-left-side {
    margin-bottom: 20px;
}

#today-left-side div {
    margin-bottom: 10px;
} 

#today-left-side img {
    fill: white;
    width: 100px;
    height: 100px;
    margin-left: -20px;
    margin-top: -20px;
}

.city-name {
    font-size: 40px;
    font-weight: bold;
}

.temperature {
    font-size: 25px;
}

.description {
    font-size: 25px;
}

.data-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
}

.data-container :nth-child(2) {
    font-size: 20px;
}

.icon-data-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#today-right-side svg {
    height: 30px;
    width: 30px;
    margin-right: 10px;
    fill: white;
}

/* Forecast Section */

#forecast-container {
    grid-row: 3/4;
    display: flex;
    flex-direction: column;
    margin: 0px 45px;
}

#days-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#forecast-title {
    font-size: 12px;
    margin-bottom: 20px;
    border: 2px solid white;
    width: 65px;
    text-align: center;
    padding: 5px 6px;
}


.forecast-card img {
    height: 65px;
    width: 65px;
    margin-left: -7px;
    margin-top: -7px;
    /* fill: white; */
}

.day {
    font-weight: 400;
    font-size: 18px;
    margin-bottom: 10px;
}

.daily-high {
    font-size: 25px;
}

.daily-low {
    font-weight: 500;
    margin-bottom: 13px;
}

@media only screen and (max-width: 705px) {
    #content {
        padding-top: 5px;
    }

    #today-container {
        margin: 0px 50px 15px 50px;
    }

    #today-left-side {
        margin-bottom: 5px;
    }

    #today-left-side div {
        margin-bottom: 5px;
    }

    #today-right-side {
        margin-bottom: 5px;
        margin-top: 15px;
    }

    .icon-data-container {
        margin-bottom: 10px;
    }

    #today-left-side img {
        width: 65px;
        height: 65px;
        margin:0;
    }

    .city-name {
        font-size: 30px;
    }

    #days-container {
      display: flex;
      flex-direction: column;
    }

    .forecast-card {
        display: flex;
        margin-bottom: 10px;
        height: 55px;
    }

    .forecast-card img {
        margin-top: -12px;
        /* fill: white; */
    }

    .day-of-week-container {
        margin-right: 50px;
        width: 165px;
    }

    .day-data-container {
        margin-right: 15px;
        width: 80px;
    }

    .day-weather-image {
        margin-right: 15px;
    }

    .daily-high{
        font-size: 20px;
    } 

  }

  @media only screen and (max-width: 423px) {
    .day-of-week-container {
        margin-right: 30px;
        width: 110px;
    }
  }