* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    
}

h1, h2, h3 {
    font-family: "DM Serif Display", serif;
    color:white;
}

p, input[type=text] {
    font-family: "DM Sans", sans-serif;
    color: white;
}

body {
    background-image: url('/assets/images/anime-moon-landscape.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100%;
    margin: 0;
    padding: 0;
}

body:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.weather-app-container {
    width: 320px;
    height:  500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px 0 rgba(45, 35, 48, 0.712);
    z-index: 1;
    background: linear-gradient(to top, rgba(108, 42, 241, 0.329), rgba(245, 245, 245, 0.137));
    backdrop-filter: blur(5px);
}

.search-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

/****Icon styling****/
.search-icon {
    width: 20px;
}

.location-icon {
    width: 20px;
}

.magnifying-icon {
    width: 100%;
}
/****End Icon Styling****/

/****search bar styling****/
.search-bar {
    padding: 15px;
    border-radius: 25px;
    border: none;
    width: 100%;
    box-shadow: 0 4px 8px 0 rgba(53, 52, 52, 0.524);
    background-color: rgba(0, 0, 0, 0.377);
    color: white;
    padding-right: 60px;
}

.search-bar:focus {
    outline: none;
}

.search-bar-container {
    grid-row: 1;
    grid-column: 1 / 4;
    padding: 15px;
    margin-top: 20px;
}
/****End search bar styling****/

/****Search button styling****/
.search-btn {
    position: absolute;
    right: 25px;
    top: 48px;
    background: transparent;
    border:none;
}

.search-btn:hover {
    cursor: pointer;
}
/****End search button styling****/

/****Location styling****/
.location-container {
    position: absolute;
    right: 46px;
    top: 48px;  
}

.location-container:hover {
    cursor: pointer;
}
/****End Location Styling****/

/**** Home Page Title and Image styling ****/
.img-container {
    grid-row: 2;
    grid-column: 1 / 4;
    width: 250px;
    justify-self: center;
    align-self: center;
    padding-top: 10px;
}

.home-title {
    grid-row: 3;
    grid-column: 1 / 4;
    text-align: center;
    padding-top: 15px;
    color:#fff;
}

.home-desc {
    grid-row: 4;
    grid-column: 1 / 4;
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 10pt;
    color: #fff;
}

.not-found {
    grid-column: 1 / 4;
    padding-top: 30px;
    text-align: center;
}
/***End home page title and image styling****/

/****Begin Current weather info styling****/
.current-weather-info {
    border-radius: 8px;
    background: rgba(30, 7, 57, 0.466);
    box-shadow: 0 4px 8px 0 rgba(53, 52, 52, 0.524);
    margin: 15px;
    padding: 10px;
    display: grid;
    grid-template-columns: 30px 1fr 1fr 1fr;

}

.greeting-container {
    grid-row: 2;
    grid-column: 1 / 4;
    align-self: center;
    padding-bottom: 20px;
}

.location-city-container {
    grid-row: 2;
    grid-column: 1;
    align-self: end;
    padding-left: 20px;
    white-space: nowrap;
}

.temp-container {
    grid-row: 3;
    grid-column: 1 /3;
    font-size: 16pt;
    padding-left: 5px;
}

.current-weather-icon-container {
    grid-row: 2;
    grid-column:4;
    justify-self: center;
    
}

.current-weather-icon {
    width: 60px;

}

.input-location-container {
    grid-row: 2;
    grid-column: 1;
    align-self: center;
    padding-top: 34px;
}

.input-location-container img {
    width: 20px;
}

.time-date-container {
    grid-row: 3;
    grid-column: 4;
    font-size: 8pt;
    justify-self: end;
    align-self: end;
    white-space: nowrap;
}

.weather-desc {
    grid-row: 3;
    grid-column: 4;
    text-align: center;
    align-self: start;
    justify-self: center;
    padding-bottom: 4px;
}

.humidity-container {
    grid-row: 4;
    grid-column: 2;
    align-self: center;
    padding-top: 10px;
    font-size: 10pt;
    
}

.humidity-icon {
    grid-row: 4;
    grid-column: 1;
    align-self: center;
    padding-top: 10px;
}

.humidity-icon img {
    width: 30px;
}

.wind-speed-container {
    grid-row: 4;
    grid-column: 4;
    justify-self: end;
    font-size: 10pt;
    padding-top: 10px;
}

.wind-icon {
    grid-row: 4;
    grid-column: 3;
    justify-self: end;
    align-self: center;
}

.wind-icon img {
    width: 30px;
}
/****End Current weather info styling****/

/****Begin hourly weather info styling****/
.hourly-weather-info-container {
    display: flex;
    gap: 8px;
    margin: 15px;
    overflow: scroll;
    padding-bottom: 5px;
}

.hourly-weather-info-container::-webkit-scrollbar {
    height: 6px;
}

.hourly-weather-info-container::-webkit-scrollbar:vertical {
    display: none;
}

.hourly-weather-info-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.hourly-weather-info-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}


.forecast-item {
    min-width: 65px;
    background: rgba(30, 7, 57, 0.466);
    box-shadow: 0 4px 8px 0 rgba(53, 52, 52, 0.524);
    border-radius: 8px;
    text-align: center;
    font-size: 6pt;
}

.forecast-item img {
    width: 25px;

}
/****End hourly weather info styling****/

/****Begin future weather info styling****/
.future-weather-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    margin: 15px;
    max-height: 120px;
    overflow: scroll;
    overflow-x: hidden;
    padding-right: 6px;
}

.future-weather-container::-webkit-scrollbar:horizontal {
    display: none;
}

.future-weather-container::-webkit-scrollbar {
    width: 6px;
}

.future-weather-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

.future-weather-container::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}


.future-forecast-item {
    background: rgba(30, 7, 57, 0.466);
    box-shadow: 0 4px 8px 0 rgba(53, 52, 52, 0.524);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    border-radius: 8px;
    font-size: 10px;
}

.future-forecast-item img {
    width: 20px;
    height: 20px;
}

.future-forecast-icon {
    justify-self: center;
}
