/* ================================= General Style ================================= */

html,
body,
main {
  width: 100%;
  height: 100%;
}

* {
  box-sizing: border-box;
  user-select: none;
}

main {
  background-image: url("../assets/images/bg-images/clear-day.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 100% 100%;
}

button {
  background: transparent;
  border: none;
  outline: none;
}

/* ================================= General Used Classes ================================= */

body {
  font-family: "Lato", sans-serif;
}

.center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.center_x {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.center_y {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
}

.display-none {
  display: none !important;
}

.icon-sm-25 {
  width: 28px;
}

.icon-sm-28 {
  width: 28px;
}

.icon-sm-30 {
  width: 28px;
}

.flex-container {
  display: flex;
  width: 100%;
}

.flex-container > * {
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
}

/* ================================= Menu Btn ================================= */

#open-menu-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px;
}

/* ================================= current-day-weather-container ================================= */

#current-day-weather-container {
  width: 100%;
  height: 60%;
  position: relative;
  color: white;
  padding: 80px 30px 20px 30px;
}

.location-label {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 50px;
  letter-spacing: 1.3px;
}

#temperature-summary-container {
  align-items: center;
}

#temperature-summary-container > div:nth-child(2) {
  text-align: center;
}

#degrees-label {
  font-size: 60px;
  font-weight: 900;
}

#summary-label {
  font-size: 30px;
}

#humidity-wind-container {
  position: absolute;
  bottom: 30px;
  text-align: center;
  left: 0;
}

#humidity-wind-container > div img {
  vertical-align: middle;
  position: relative;
  top: -3px;
}

#humidity-wind-container > div span {
  font-size: 18px;
}

/* ================================= Lower Panel ================================= */

.lower-panel {
  width: 100%;
  height: 40%;
  position: relative;
  color: white;
  font-size: 20px;
}

.lower-panel-body {
  width: 100%;
  height: 100%;
  padding: 50px 25px;
  overflow-y: scroll;
}

#toggle-hourly-weather {
  background-color: #353848;
  border-radius: 100%;
  width: 50px;
  height: 50px;
  box-shadow: 3px 0px 14px 2px rgba(000, 000, 000, 0.4);
  z-index: 3;
  position: absolute;
  transform: translate(-50%, -50%);
}

.weather-box {
  position: relative;
  margin-bottom: 15px;
}

.weather-box > div:last-child {
  text-align: right;
}

.weather-box > div:last-child > div:last-child {
  flex-grow: 0.5;
  flex-shrink: 0.5;
  flex-basis: 0;
}

/* current day hint */

.current-day-of-the-week::before {
  content: "";
  display: block;
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 100%;
  background-color: #353848;
  /* background-color: aliceblue; */
  left: -15px;
  top: calc(50% - 5px);
  transform: translateY(-50%);
}

/* ================================= Daily Weather ================================= */

#daily-weather-wrapper {
  background-color: rgba(000, 000, 000, 0.6);
}

/* ================================= Hourly Weather ================================= */

#hourly-weather-wrapper {
  background-color: rgba(236, 240, 241, 0.6);
  color: #353848;
  position: absolute;
  bottom: -100%;
  transform: bottom 0.5s;
}

#hourly-weather-wrapper > div > div:last-child {
  color: #636e72;
}

/* ================================= Loader ================================= */

.lds-ripple {
  display: inline-block;
  width: 80px;
  height: 80px;
}

.lds-ripple div {
  position: absolute;
  border: 4px solid #000;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes lds-ripple {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

/* ================================ Ripple CSS ================================ */
.ripple {
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
}

.ripple:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #000 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(10, 10);
  opacity: 0;
  transition: transform 0.5s, opacity 1s;
}

.ripple:active:after {
  transform: scale(0, 0);
  opacity: 0.2;
  transition: 0s;
}

/* ================================ CSS Reset  ================================*/
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}
