/* Basic styling for NR Portfolio */

:root {
  --primary-color: rgb(90, 137, 184);
  --secondary-color: rgb(2, 48, 64);
}

body {
  font-family: 'Poppins', sans-serif;
  margin: auto;
  padding: 0;
  background-color: rgb(230, 230, 230);
  background-position: top right;
  background-size: cover;
  min-height: 100vh;
}

h1 {
  line-height: 1.2em;
  font-family: 'Poppins';
}

h2 {
  font-family: 'Poppins';
  font-weight: 600;
}

h3 {
  font-family: 'Poppins';
  font-weight: 600;
}

.main-canvas {
  margin: auto;
  background-color: rgb(230, 230, 230);
}

main {
  padding: 0px;
  margin: auto;
}

.dropbtn {
  font-family: 'Poppins';
  font-size: 16px;
  color: black;
  background-color: rgb(230, 230, 230);
  padding: 15px 20px;
  margin: 0;
  border: none;
  cursor: pointer;
}

.dropbtn:hover {
  background-color: var(--primary-color);
}

.dropdown:hover .dropbtn {
  background-color: var(--primary-color);
  box-shadow: 0px 3px 5px black;
}

footer {
  background-color: rgb(230, 230, 230);
  color: rgb(0, 0, 0);
  text-align: center;
  padding: 10px;
  bottom: 0;
  width: 100%;
}

.mainmenu li {
  text-align: center;
  padding-left: 40px;
}

a {
  color: rgb(0, 0, 0);
  text-decoration: none;
}

a:visited {
  color: none;
  text-decoration: none;
}

.mainmenu {
  padding-right: 2em;
}

.mainmenu a {
  padding: 0 0.5em;
}

/* Utility Classes */

.container {
  max-width: 1200px;
  margin: auto;
}

.navbar {
  background-color: rgb(230, 230, 230);
}

.navbar .container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  justify-content: space-between;
  align-items: center;
  max-height: 60px;
  margin: auto;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.submenu {
  display: none;
  position: absolute;
  background-color: var(--primary-color);
  min-width: 100%;
  z-index: 1;
  box-shadow: 0px 3px 5px black;
}

.submenu a {
  text-decoration: none;
  display: block;
  padding: 1em 0;
  text-align: center;
}

.submenu a:hover {
  background-color: rgb(230, 230, 230);
}

.dropdown:hover .submenu {
  display: block;
}

.logo {
  display: flex;
  align-items: center;
  color: black;
  padding-left: 1em;
}

.logo a:hover {
  color: rgb(75, 0, 102);
}

img:hover {
  transform: scale(1.05);
}

.showcase {
  width: 100%;
  margin: auto;
  margin-bottom: 0.5em;
  min-height: 300px;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: black;
  border-radius: 1em;
  background-color: var(--primary-color);
  box-shadow: 0px 3px 5px black;
}

.header {
  background-color: rgb(230, 230, 230);
  max-width: 1200px;
  margin: auto;
}

.header img {
  padding-right: 50px;
}

.header .container {
  max-width: 700px;
  padding-right: 50px;
}

.header h1 {
  margin: 0;
  line-height: 1.2em;
}

.homeboxes .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.homebox {
  border-radius: 1em;
  background-color: var(--primary-color);
  padding: 1em;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  max-width: 20%;
  max-height: 200px;
  margin: 2em 0;
  box-shadow: 0 3px 5px black;
}

.homebox h2 {
  margin-top: 0;
  margin-bottom: 0;
}

.homebox:hover {
  background-color: white;
  transform: scale(1.01);
  transition: all 200ms;
}

.testimonials {
  max-width: 1200px;
  margin: auto;
}

.gridbox-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 1em;
  border-radius: 1em;
  background: linear-gradient(135deg, var(--primary-color), white);
  border: 2px solid var(--primary-color);
}

.gridbox {
  box-sizing: border-box;
  background: transparent;
  text-align: center;
  color: black;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1em;
  font-size: 1em;
  border-radius: 1em;
}

.navbar .hamburger-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1000;
}

.hamburger-button .hamburger-line {
  width: 30px;
  height: 3px;
  background-color: rgb(0, 0, 0);
  margin: 6px 0;
}

.mobile-menu {
  position: fixed;
  top: 60px;
  right: -300px;
  width: 250px;
  height: 100%;
  z-index: 100;
  background-color: rgb(230, 230, 230);
  box-shadow: 0px 0px 10px black;
  transition: right 230ms ease-in-out;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu ul {
  list-style: '>' outside;
  margin-left: 0;
}

.mobile-menu li {
  padding: 0.5em;
  text-align: left;
}

@media (max-width: 856px) {
  .header img {
    display: none;
  }
  .homeboxes .container {
    flex-direction: column;
    max-width: 100%;
  }
  .homebox {
    max-width: 100%;
    margin: 0.5em;
  }
  .header .container {
    padding: 1em;
  }
  .logo {
    margin: 0.5em;
  }
  .navbar .mainmenu {
    display: none;
  }
  .navbar .hamburger-button {
    display: block;
  }

  .showcase {
    padding: 0;
    max-width: 97%;
  }

  .gridbox-container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
  }
}

/* My Dev Projects specific classes */

.javascript {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  text-align: center;
  border: 3px solid var(--primary-color);
  border-radius: 1em;
  margin-top: 1em;
}

.javascript h1 {
  border-bottom: 3px solid black;
  padding-bottom: 0.75em;
  margin-bottom: 0;
}

.projects-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.projects-bar a {
  border: 2px solid rgba(0, 0, 0, 0.3);
  background-color: rgba(165, 165, 165, 0.3);
  border-radius: 1em;
  padding: 0 1em;
}

/* Task Tracker */

img {
  cursor: pointer;
}

.taskTracker {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: auto;
  border: 3px dotted var(--primary-color);
  border-radius: 1em;
  max-width: 640px;
}

.taskInput h1 {
  align-self: self-start;
}

.taskInput {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  border: 3px solid var(--primary-color);
  width: 67%;
  margin: auto;
  padding-bottom: 1.5em;
  padding-left: 2em;
  padding-right: 2em;
  border-radius: 1em;
  margin-top: 2em;
}

.taskInputItem {
  display: flex;
  align-items: center;
  width: 80%;
  margin: 0.5em 0;
  line-height: 1.4em;
}

label {
  margin-right: 1em;
  text-align: right;
  width: auto;
}

input {
  flex: 1;
  height: 1.4em;
}

.addTask:hover {
  transform: scale(1.02);
  opacity: 80%;
}

.addTask {
  margin-top: 1em;
  background-color: var(--primary-color);
  padding: 0.5em 1em;
  border-radius: 1em;
  font-family: 'Poppins';
  cursor: pointer;
  font-size: large;
}

.taskOutput {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 67%;
  border: 3px solid var(--primary-color);
  border-radius: 1em;
  margin: 0.5em auto;
  margin-bottom: 2em;
  padding-bottom: 1.5em;
  padding-left: 2em;
  padding-right: 2em;
}

.taskOutput ul {
  list-style-type: none;
  width: 100%;
  min-width: 350px;
}

.currentTasks li {
  background-color: burlywood;
  border-radius: 1em;
  padding: 0.5em;
  padding-right: 1em;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5em;
}

.currentTasks li input {
  padding: 0;
}

.currentTasks li:hover {
  transform: scale(1.03);
  box-shadow: 0px 2px var(--primary-color);
}

.currentTasks {
  padding: 0;
}

.currentTasks div {
  flex: 1;
  padding-left: 1em;
}

.currentTasks h2 {
  margin: 0;
  font-family: 'Poppins';
}

.currentTasks p {
  margin: 0;
  font-size: small;
}

.taskList .currentTasksComplete {
  text-decoration: line-through;
  background-color: lightgreen;
}

.completeCheck {
  margin-left: 1em;
  max-width: 2em;
}

/* Calculator */

.calculator {
  max-width: 400px;
  margin: auto;
  margin-top: 4em;
  border: 3px solid var(--primary-color);
  border-radius: 1em;
  padding: 1em;
  background-color: lightgoldenrodyellow;
}

.calcDisplay {
  width: 100%;
  max-width: 392px;
  height: 4em;
  margin-right: 1em;
  grid-column: 1/5;
  background-color: lightgray;
  color: black;
  text-align: right;
  font-size: large;
}

.calcDisplay i {
  padding: 0;
  margin: 0;
}

.calcGrid {
  display: grid;
  gap: 0.5em;
  grid-template-columns: repeat(4, 1fr);
  max-width: 400px;
  margin-top: 0.5em;
}

.calcButton {
  height: 3em;
  background-color: lightcyan;
  font-size: large;
}

.calcButton:last-of-type {
  grid-column: 3/5;
}

/* Weather App */

.weatherCard {
  background: linear-gradient(135deg, teal, darkgreen);
  border-radius: 1em;
  padding: 2em;
  margin: auto;
  max-width: 540px;
  height: auto;
}

.searchBar {
  background-color: rgb(2, 48, 64);
  border-radius: 2em;
  box-shadow: 0px 3px 5px black;
  margin: 0 auto;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  min-height: 3em;
  padding: 0.5em 2em;
  max-width: 100%;
}

.searchInput {
  background-color: rgb(2, 48, 64);
  border: none;
  outline: 0;
  color: white;
  padding: 0;
  margin-right: 1em;
  font-size: 1em;
  max-width: 100%;
}

.searchBar button {
  border-radius: 50%;
  min-height: 3em;
  min-width: 3em;
  border: 3px solid lightcyan;
  background-color: teal;
  color: white;
  padding: 0;
  cursor: pointer;
  font-size: medium;
}

.weatherDisplay {
  margin: 1em auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: var(--secondary-color);
  border-radius: 1em;
  padding: 1em;
  min-height: 540px;
}

.weatherDisplay h1 {
  color: white;
  font-size: 2em;
  margin: 0 auto 0.5em;
  font-family: 'Poppins';
  font-weight: 400;
}

.temperatures,
.airInfo {
  color: white;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  align-items: center;
}

.airInfo {
  border-top: 3px solid rgba(165, 165, 165, 0.3);
}

.temperatures h1 {
  margin-bottom: 0;
  text-align: center;
  padding: 0 0.5em;
}

.temperatures p,
.airInfo p {
  text-align: center;
  font-size: 0.75em;
}

.currentTemp,
.sunsetTime {
  border-left: 3px solid rgba(165, 165, 165, 0.3);
  border-right: 3px solid rgba(165, 165, 165, 0.3);
}

.currentTemp p,
.sunsetTime p {
  margin-top: 0;
  font-size: medium;
}

.airInfo h1 {
  font-size: 1.5em;
  text-align: center;
  padding: 0.5em 0.5em 0;
}

.humidity,
.windspeed {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
}

.windspeed img {
  margin-right: 0.5em;
}

@media (min-width: 562px) {

  .searchInput {
    background-color: rgb(2, 48, 64);
    border: none;
    outline: 0;
    color: white;
    padding: 0;
    margin-right: 1em;
    font-size: 2em;
    max-width: 80%;
  }

  .weatherDisplay h1 {
    color: white;
    font-size: 3em;
    margin: 0 auto 0.5em;
    font-family: 'Poppins';
    font-weight: 400;
  }

  .temperatures p,
.airInfo p {
  text-align: center;
  font-size: x-large;
}
}