/*
	reinimax' CSS framework
	-----------------------
	Contents:
		1. CSS reset by Eric Meyer
		2. Variables
		3. General stuff & Typography
		4. Grid-System
		5. Styles for form-elements
		6. Utilities
*/
/* -------------------------------------------
	1. CSS reset by Eric Meyer 
------------------------------------------- */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/
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;
}

/* HTML5 display-role reset for older browsers */
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;
}

/* -------------------------------------------
	2. Variables 
------------------------------------------- */
/* Breakpoints */
/* Typography */
/* Colors */
/* I  leave it for now with this. The practicality will have to be tested*/
/* Aspect ratio for the image bottom hack */
/*
	1:1 -> 100%
 	16:9 -> 56.25%
	4:3 -> 75%
	3:2 -> 66.66%
*/
/* -------------------------------------------
	3. General stuff & Typography 
------------------------------------------- */
/* Making everything border-box */
html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

/* Sizing images */
img {
  max-width: 100%;
  height: auto;
}

/* Typography */
/* Overwriting line-height and setting default font and color */
body {
  line-height: 1.5;
  font: 100% "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #1f1f1f;
}

/* Setting sizes of h-elements*/
h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1.1rem;
}

/* -------------------------------------------
	3. Grid-System 
------------------------------------------- */
.grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

/* Default classes. They work with the smalles screensizes and up until
another, responsive, class is added */
.col-12 {
  grid-column-start: span 12;
}

.col-11 {
  grid-column-start: span 11;
}

.col-10 {
  grid-column-start: span 10;
}

.col-9 {
  grid-column-start: span 9;
}

.col-8 {
  grid-column-start: span 8;
}

.col-7 {
  grid-column-start: span 7;
}

.col-6 {
  grid-column-start: span 6;
}

.col-5 {
  grid-column-start: span 5;
}

.col-4 {
  grid-column-start: span 4;
}

.col-3 {
  grid-column-start: span 3;
}

.col-2 {
  grid-column-start: span 2;
}

/* Responsive classes */
@media (min-width: 576px) {
  .col-s-12 {
    grid-column-start: span 12;
  }

  .col-s-11 {
    grid-column-start: span 11;
  }

  .col-s-10 {
    grid-column-start: span 10;
  }

  .col-s-9 {
    grid-column-start: span 9;
  }

  .col-s-8 {
    grid-column-start: span 8;
  }

  .col-s-7 {
    grid-column-start: span 7;
  }

  .col-s-6 {
    grid-column-start: span 6;
  }

  .col-s-5 {
    grid-column-start: span 5;
  }

  .col-s-4 {
    grid-column-start: span 4;
  }

  .col-s-3 {
    grid-column-start: span 3;
  }

  .col-s-2 {
    grid-column-start: span 2;
  }
}
@media (min-width: 768px) {
  .col-m-12 {
    grid-column-start: span 12;
  }

  .col-m-11 {
    grid-column-start: span 11;
  }

  .col-m-10 {
    grid-column-start: span 10;
  }

  .col-m-9 {
    grid-column-start: span 9;
  }

  .col-m-8 {
    grid-column-start: span 8;
  }

  .col-m-7 {
    grid-column-start: span 7;
  }

  .col-m-6 {
    grid-column-start: span 6;
  }

  .col-m-5 {
    grid-column-start: span 5;
  }

  .col-m-4 {
    grid-column-start: span 4;
  }

  .col-m-3 {
    grid-column-start: span 3;
  }

  .col-m-2 {
    grid-column-start: span 2;
  }
}
@media (min-width: 1000px) {
  .col-l-12 {
    grid-column-start: span 12;
  }

  .col-l-11 {
    grid-column-start: span 11;
  }

  .col-l-10 {
    grid-column-start: span 10;
  }

  .col-l-9 {
    grid-column-start: span 9;
  }

  .col-l-8 {
    grid-column-start: span 8;
  }

  .col-l-7 {
    grid-column-start: span 7;
  }

  .col-l-6 {
    grid-column-start: span 6;
  }

  .col-l-5 {
    grid-column-start: span 5;
  }

  .col-l-4 {
    grid-column-start: span 4;
  }

  .col-l-3 {
    grid-column-start: span 3;
  }

  .col-l-2 {
    grid-column-start: span 2;
  }
}
@media (min-width: 1200px) {
  .col-xl-12 {
    grid-column-start: span 12;
  }

  .col-xl-11 {
    grid-column-start: span 11;
  }

  .col-xl-10 {
    grid-column-start: span 10;
  }

  .col-xl-9 {
    grid-column-start: span 9;
  }

  .col-xl-8 {
    grid-column-start: span 8;
  }

  .col-xl-7 {
    grid-column-start: span 7;
  }

  .col-xl-6 {
    grid-column-start: span 6;
  }

  .col-xl-5 {
    grid-column-start: span 5;
  }

  .col-xl-4 {
    grid-column-start: span 4;
  }

  .col-xl-3 {
    grid-column-start: span 3;
  }

  .col-xl-2 {
    grid-column-start: span 2;
  }
}
/* -------------------------------------------
	5. Styles for form-elements 
------------------------------------------- */
button {
  cursor: pointer;
  line-height: 1;
  background-color: transparent;
  border: 1px solid #1f1f1f;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  margin: 0.5rem;
}

input {
  background-color: transparent;
  border: 1px solid #9f9f9f;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  margin: 0.5rem;
}

/* -------------------------------------------
	6. Utilities 
------------------------------------------- */
/* Fixed width-container that scales together with the breakpoints */
.container-fixed {
  max-width: 100%;
}
@media (min-width: 576px) {
  .container-fixed {
    max-width: 540px !important;
  }
}
@media (min-width: 768px) {
  .container-fixed {
    max-width: 720px !important;
  }
}
@media (min-width: 1000px) {
  .container-fixed {
    max-width: 960px !important;
  }
}
@media (min-width: 1200px) {
  .container-fixed {
    max-width: 1140px !important;
  }
}

/* Classes for hiding and showing elements */
.hidden {
  display: none;
}

.visible-block {
  display: block;
}

.visible-flex {
  display: flex;
}

/* Turning a ul into a navbar. The class is supposed to be added to the ul */
/* there may be better solutions, but I chose float for now, also because it leaves no
gaps like display: inline-block */
.nav-list > li {
  float: left;
  list-style-type: none;
  padding: 0.5em;
}
.nav-list > li a {
  padding: 0.5em;
}

.nav-list:after {
  display: block;
  content: "";
  height: 0;
  clear: left;
}

/* 
  Using the "padding-bottom hack" to ensure all the images in a gallery have the same aspect ratio.
  See: https://www.smashingmagazine.com/2013/09/responsive-images-performance-problem-case-study/
  The images need to be wrapped by the image-wrapper class.
  For this to work, the image-wrapper itself must reside in a containing block because its padding
  is relative to its CONTAINING block! That means setting a width directly on the image-wrapper
  will break the aspect ratio.
*/
.image-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/*
    This document contains styles specific to the current webpage.
*/
/*
    Variables: overwrite the ones you want to change. In the comments you find the defaults
*/
/* Typography */
/* Colors */
/* Variables that cannot be changed here. Prefix them like this: base.<variablename>

$primary-color-light;
$primary-color-dark;
$secondary-color-light;
$secondary-color-dark;
$complementary-color;
$complementary-light;
$complementary-dark;

$input-default;
*/
/*
    Your code starts here
*/
body {
  background-color: #1f1f1f;
}

h1 {
  padding: 1rem 1.5rem;
  color: #f58e3a;
  background-color: #1f1f1f;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
}

.big {
  font-size: 2rem;
  font-weight: 600;
}

.temp-unit {
  font-size: 0.3em;
  vertical-align: text-top;
}

.weather {
  margin: 0 auto;
  max-width: 500px;
  border: 1px solid black;
  background-color: white;
}

#weather-search {
  display: flex;
  align-items: center;
}

#weather-search > i {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  color: #ac1e1e;
  text-shadow: 1px 1px 2px #631616;
  cursor: pointer;
}

#weather-search > i:hover {
  text-shadow: 1px 1px 2px #631616, 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#weather-search input[type=search] {
  flex-grow: 1;
  min-width: 100px;
  font-size: 1rem;
  font-weight: 600;
}

#weather-search button[type=submit] {
  padding: 0.75rem 0.9rem;
  border-radius: 50%;
  border: none;
  background-image: linear-gradient(#f72d2d, #631616);
  color: white;
  font-size: 1.15rem;
  box-shadow: 2px 2px 10px #27374e;
}

#weather-search button[type=submit]:hover {
  box-shadow: 2px 2px 10px #27374e, 6px 6px 15px rgba(26, 10, 10, 0.5) inset;
}

.error-info {
  padding: 0.5em 1em;
  color: #c70c0c;
  font-weight: 700;
}

.container {
  background-image: linear-gradient(#f3d4bb, #f58e3a);
}

.weather main,
.weather header {
  padding: 1rem 1.5rem;
}

.weather main {
  padding-top: 0;
  display: flex;
}

.second-col {
  margin-top: -20px;
  padding-left: 1rem;
}

.weather-descr {
  color: #525252;
  text-transform: capitalize;
}

.weather-location {
  text-transform: uppercase;
  font-size: 1.1rem;
  font-weight: 700;
}

.text-secondary {
  padding-left: 0.5rem;
  color: #525252;
  font-size: 0.9em;
}

.weather header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 
  Celsius/Fahrenheit Toggler
*/
.toggler {
  position: relative;
  display: block;
  width: 60px;
  height: 30px;
  background-color: #1f1f1f;
  border-radius: 100px;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

#unit {
  display: none;
}

#toggle-btn {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  background-color: #f58e3a;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) inset, -1px -1px 2px rgba(0, 0, 0, 0.5) inset;
  border-radius: 50%;
  transition: all 0.3s;
}

#unit:checked + .toggler > #toggle-btn {
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5) inset, -1px -1px 2px rgba(0, 0, 0, 0.5) inset;
  transform: translateX(30px);
}

.temperature {
  margin-top: 1rem;
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
}

.temperature .unit-display {
  padding: 0.5rem;
  font-size: 1.5rem;
  line-height: 1;
}

.weather footer {
  padding: 0.5rem 1.5rem 1.5rem;
  background-color: #1f1f1f;
  color: white;
}

.weather footer > * {
  text-align: center;
}

.weather footer .text-secondary {
  margin-top: 1.25em;
  margin-bottom: 0.15em;
  font-size: 0.8em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
}

.site-footer {
  padding: 1.5rem 3rem;
  background-color: #1f1f1f;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.5;
}

.site-footer a {
  color: #f58e3a;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer a:visited {
  color: #b66a2d;
}

@media (min-width: 300px) and (min-height: 740px) {
  body {
    background-color: whitesmoke;
  }

  .weather {
    margin-bottom: 168px;
  }

  .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
}
@media (min-width: 450px) {
  body {
    background-color: whitesmoke;
  }

  .weather {
    margin-bottom: 40px;
  }

  h1 {
    font-size: 1.25rem;
  }

  .big {
    font-size: 4rem;
  }

  .weather-location {
    font-size: 1.375rem;
  }
}
@media (min-width: 450px) and (min-height: 400px) {
  .weather {
    margin-bottom: 120px;
  }

  .site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }
}

/*# sourceMappingURL=style.css.map */
