/* Declare CSS custom properties (aka CSS variables) to define
the colour values used on this webpage. You should include a
primary colour, a secondary colour, a font colour, and a 
background colour 
*/

/* EDIT CODE BELOW THIS LINE! */
  /* Colours */

:root {
  --primary-colour: #ed553b;
  --secondary-colour: #50394c;
  --font-colour: #034f84;
  --bg-colour: #daebe8;
}

.dark {
  --primary-colour: #ed553b;
  --secondary-colour: #fff2df;
  --font-colour: #d9ad7c;
  --bg-colour: #674d3c;
}

/* Stretch challenge */

/* DO NOT EDIT CODE BELOW THIS LINE! */

img {
  max-width: 700px;
}

html {
  height: 100%;
  margin: 0;
}

body {
  background-color: var(--bg-colour);
  color: var(--font-colour);
  height: 100%;
  margin: 0;
  align-items: center;
  display: flex;
  flex-direction: column;
  font-family: "Gothic A1", sans-serif;
}

h1 {
  font-family: "PT Sans", sans-serif;
  color: var(--secondary-colour);
}

a {
  color: var(--primary-colour);
}

nav,
section {
  padding: 1.5em;
}

/*Toggle switch styling*/

.theme-switch-wrapper {
  display: flex;
  align-items: center;
}
.theme-switch {
  display: inline-block;
  height: 34px;
  position: relative;
  width: 60px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: 0.4s;
  width: 60px;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 26px;
  left: 4px;
  position: absolute;
  transition: 0.4s;
  width: 26px;
}

input:checked + .slider {
  background-color: #66bb6a;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
