
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:400,400i,700,700i&display=swap');

body {
  background-image: url("160000.jpeg");
  background-size: 100%;
  color: white;
  font-family: 'Playfair Display', serif;
  padding: 5px;
}

header {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  width: 95%;
  max-width: 1100px;
  margin: auto;
  padding: 5px;
}

h1 {
  text-shadow: 1px 1px 1px rgba(50, 50, 50, 0.3);
}

.load-temp{
  color: #fff;
  text-shadow: 1px 1px 1px rgba(50, 50, 50, 0.3);
  width: 12em;
  max-height: 75px;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 15px 0;
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  transition: 0.5s;
}

.load-temp:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.load-temp:focus {
  outline: none;
}

.container {
  width: 90%;
  max-width: 1024px;
  margin: auto;
  padding: 5px;
}

.temp-box {
  text-shadow: 1px 1px 1px rgba(50, 50, 50, 0.3);
  line-height: 0.5;
}

.temp {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.2;
  position: relative;
  margin: 0;
  margin-left: 10px;
}

.quote:before,
.temp:after {
  font-size: 3rem;
  line-height: 2.5rem;
  position: absolute;
}

.quote:before {
  content: "“";
  top: 0.1em;
  left: -0.5em;
}

.quote:after {
  content: "”";
  bottom: -0.1em;
  margin-left: 0.1em;
  position: absolute;
}

.source {
  font-size: 1rem;
  letter-spacing: 0.05em;
  line-height: 1.1;
  text-align: right;
  margin-right: 4em;
}


@media (min-width: 768px) {
  body {
    padding: 25px;
  }

  header {
    margin-bottom: 50px;
  }

  h1 {
    font-size: 3.5rem;
    height: 73px;
    margin-top: 20px;
    margin-right: 5px;
    border-bottom: 4px solid rgba(0, 0, 0, 0.3);
  }

  .load-temp {
    font-size: 1.5rem;
  }

  .container {
    padding: 25px 25px 15px 55px;
    border-radius: 0 4px 4px 0;
  }

  .time {
    font-size: 5rem;
    text-align: center;
    padding: 5px;
  }

  .time:before,
  .time:after {
    font-size: 6rem;
  }

  .time:before {
    top: 0.25em;
  }

  .time:after {
    bottom: 0.1em;
  }

  .temp {
    font-size: 3rem;
    text-align: center;
  }
  .popup{
    width: 400px;
    background: #fff;
    border-radius: 6px;
    position:absolute;
    top:0;
    left: 50%;
    transform: translate(-50%,-50%) scale(0.1);
    text-align: center;
    padding: 0 30px 30px;
    color: #333;
    transition: 0.3s, top 0.3s;
    visibility: hidden;
  }
  .popup h2{
    font-size: 22px;
    font-weight: 500;
    margin: 30px 0 10px;
  }
  .popup button{
    width: 100%;
    margin-top: 50px;
    padding: 10px 0;
    background: #6fd649;
    color: #fff;
    border: 0;
    outline: none;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2)
  }
  .open-popup{
    visibility: visible;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
  }
  .slider {
    -webkit-appearance: none;
    width: 100%;
    height: 15px;
    border-radius: 3px;  
    background: #d3d3d3;
    outline: none;
    opacity: 0.7;
    -webkit-transition: .2s;
    transition: opacity .2s;
  }
  
  .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%; 
    background: #04AA6D;
    cursor: pointer;
  }
  
  .slider::-moz-range-thumb {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #04AA6D;
    cursor: pointer;
  }
  
  .slider::after {
    content:"60";
    color: black;
    font-size: 2rem;
    position:absolute;
    left:85%;
    top:70%;
  }
  .slider::before {
    content:"1";
    color:black;
    font-size: 2rem;
    position:absolute;
    left:16%;
    top:70%;
  }
}
