@import url('https://fonts.googleapis.com/css2?family=Arimo:ital,wght@0,400..700;1,400..700&display=swap');

:root {
  --font-colour:#0f0f0f;
  --bg-colour  :#f9f9f9;
  --nonlkcolour:rgba(158, 7, 40, 0.5);
  --linkcolour :rgb(216, 36, 75);
  --homecolour :rgb(30, 173, 114);
}

* {
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  height: 100%;
}


body {
  background-color: var(--bg-colour);
  color: var(--font-colour);
  -webkit-transition: .1s;
  transition: .1s;
  font-family: sans-serif;
}

#wrapper {
  width: 80%;
  max-width: 960px;
  border-top: none;
  margin: 0 auto;
  box-sizing: border-box;
  min-height: 100%;
  padding-bottom: 10px;
}

header .title {
  margin-bottom: 15px;
  
}

header .title h1{
  font-size: 35px;
  display: inline-block;
  text-transform: uppercase;
  font-family: 'Times New Roman', Times, serif;
}

header .title h3{
  display: inline-block;
  font-family: sans-serif;
  font-size: 17.5px;
}

#wrapper header, footer {
  width: 100%;
  padding: 10px 0;
  display: inline-block;
}

 nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  overflow: hidden;
}

 nav ul {
  list-style: none;
  text-align: center;
  margin: auto;
}

 nav .navi {
  display: block;
  padding: 10px 0;
  width: 90px;
  text-align: center;
  margin: auto 0;
  background-color: var(--homecolour);
}

 nav ul li {
  margin: auto;
  display: inline-block;
  margin-right: 10px;
  text-align: center;
}

nav ul li {
  border-radius: 10px;
  width: 90px;
  background-color: var(--nonlkcolour);
  color: white;
  padding: 10px 0;
}

.lilink {
  background-color: var(--linkcolour);
}

 nav .navi {
  border-radius: 10px;
}

 nav a { 
  color: #fff;
  text-decoration: none;
}

.chc {
  margin-top: 10px;
}

main {
  margin-top: 20px;
  width: 100%;  
  font-family: Arimo;
}

main h2 {
  margin-bottom: 0.4em;
}

main p {
  margin-bottom: 20px;
  text-align: justify;
  line-height: 1.5;
  font-weight: normal;
}

.buttonpos {
  display: block;
  margin-top: 2.5px;
}

.theme-switch {
  position:relative;
  display: block;
  width: 60px;
  height: 34px;
}

.theme-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #afd9fc;
  border-radius: 34px;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider::before {
  position: absolute;
  content: '';
  height: 26px;
  width: 26px;
  bottom: 4px;
  left: 4px;
  border-radius: 50%;
  background-color: #ffebbf;
  background-size: 100%;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked+.slider {
  background-color: #6434a3;
}

input:checked+.slider::before {
  background-color: #f9f9f9;
}

input:checked+.slider::before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

#copyright {
  text-align: center;
  box-sizing: border-box;
  margin-top: 15px;
}

#copyright p {
  color: var(--font-colour);

}

@media (max-width: 600px) {
  #wrapper {
    width: 90%;
    max-width: 480px;
  }

  nav{
    display: block;
  }
  
  .nav {
  display: grid;
     grid-template-columns: repeat(3, 1fr);
     grid-gap: 7px;
     grid-auto-rows: minmax(10px, auto);
   }

  nav .navi {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    margin: auto;
    margin-bottom: 7.5px;
    }
    
  .initnav ul li{
    display: inline-block;
    border-style: solid;
    border-width: 0 0 2px 0;
    width: 100%;
    border-color: var(--bg-colour);
  }

  .buttonpos {
    width: auto;
    display: flex;
    margin: 10px auto;
    justify-content: center;
  }

  header .title h1{
    font-size: 30px;
  }

  header .title h3{
    font-size: 15px;
  }

}