/*---------- Defining all the variables ----------*/
:root {
  --main: #a20000;
  --darker: #6e0000;
  --lighter: #cc1100;
  --margin: 30px;
}
/*---------- Reseting all the elements ----------*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

html,
body {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
}
body {
  background: linear-gradient(to bottom, #cc1100, #cc1100b6),
    url("./images/bg.jpg") center center no-repeat;
}

/* ---------- Display success/failure message when mail is sent ----------*/
.msg-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.5);
}
#msg {
    position: relative;
    text-align: center;
    padding: 30px;
    background: rgba(255,255,255,0.98);
    color: rgb(1, 204, 15);
    border-radius: 3px;  
}

/*---------- Display only on small devices having screen size 992px ----------*/
.overlay {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom, #cc1100, #cc1100b6),
    url("./images/bg.jpg") center center no-repeat;
  z-index: 999;
}
.overlay img {
  height: 70px;
  width: auto;
}
.overlay h3 {
  margin: 10px 0;
}
.overlay p {
  font-size: 14px;
}

/*---------- Header section ----------*/
header {
  padding: 20px 0;
}
header nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 var(--margin);
}
header img {
  display: block;
  height: 40px;
  width: auto;
}
nav ul {
  display: flex;
  list-style: none;
}
nav ul li {
  margin-left: 30px;
  padding: 5px 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9em;
}
nav ul li:hover {
  cursor: pointer;
  color: #fff;
}
.active {
  color: #fff;
  border-bottom: 1.5px solid #fff;
}
/*---------- Pages ----------*/
.pages {
  height: 100%;
  display: none;
  padding: 0 20px;
  display: none;
}
/*---------- Overview page ----------*/
#overview {
  flex-direction: row;
  justify-content: center;
  align-items: center;
}
.desc {
  width: 500px;
  margin-right: 1.5rem;
}
#overview h2 {
  font-size: 32px;
  margin-bottom: 20px;
}
#overview p {
  line-height: 28px;
  margin-bottom: 40px;
  letter-spacing: 0.7px;
  font-size: 14px;
}
a.download {
  text-decoration: none;
  color: #00ff48;
  display: inline-block;
  border-bottom: 1px dashed #00ff48;
}
#overview img {
  width: 500px;
  height: auto;
}

/*---------- How to use page ----------*/
#htu {
  width: 900px;
  margin: 0 auto;
}
.prev-nxt {
  display: flex;
  align-items: center;
  align-self: center;
  font-size: 24px;
  opacity: 0.3;
}
.prev-nxt:hover {
  cursor: pointer;
  opacity: 0.8;
}
#prev {
  margin-right: 20px;
}
#nxt {
  right: 0;
  margin-left: 20px;
}
.row {
  display: flex;
  flex-direction: row;
  flex: 1;
}
.col {
  height: 100%;
  display: none;
  flex-direction: row;
  align-items: center;
}
.instruction {
  padding: 20px;
  font-size: 14px;
}
.instruction h1 {
  font-size: 32px;
  margin-bottom: 20px;
}
.instruction p {
  letter-spacing: 1px;
  line-height: 22px;
}
.key {
  display: inline-block;
  padding: 2px 8px;
  background: rgba(0, 0, 0, 0.7);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 4px;
}
.col img {
  height: 580px;
  width: auto;
  border-radius: 5px;
}

/*---------- Contact page ----------*/
#contact {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  color: #000;
}
#contact p {
  margin: 20px auto;
  font-size: 14px;
}
.form {
  background: rgba(255, 255, 255, 0.85);
  padding: 30px;
  position: relative;
  outline: 1.6px solid rgba(0, 0, 0, 0.5);
  outline-offset: 15px;
}

#contact form {
  display: flex;
  flex-direction: column;
}
#contact input,
#contact button {
  height: 40px;
  width: 500px;
  margin-bottom: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.5);
  padding: 5px 10px;
  border-radius: 2px;
  border: 1px solid #000;
}
#contact textarea {
  width: 500px;
  margin-bottom: 10px;
  border: 1px solid #000;
  background: rgba(255, 255, 255, 0.5);
  padding: 5px 10px;
  border-radius: 2px;
  resize: none;
}
#contact button {
  background: #00b333;
  color: #fff;
  font-size: 1rem;
  border: none;
}
#contact img {
  height: 450px;
  margin-right: 30px;
}

/*---------- Footer ----------*/
footer {
  padding: 10px var(--margin);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
}
footer a {
  color: rgba(255, 255, 255, 0.5);
  margin-right: 10px;
}
footer a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/*---------- Make element visible ----------*/
.visible {
  display: flex;
}

/*---------- Screen size less than 992px ----------*/
@media only screen and (max-width: 992px) {
  .overlay {
    display: flex;
  }
}
