@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
}

a {
  color: #000;
  text-decoration: none;
}

li {
  list-style: none;
}

label {
  display: block;
}

.nav {
  margin-top: 2rem;
}

.canvas {
  border-radius: 5px;
  padding: 0.8rem;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px,
    rgba(0, 0, 0, 0.15) 0px 8px 16px;
  margin-bottom: 1rem;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -o-user-select: none;
  user-select: none;
}

/* BUTTONS */
button {
  cursor: pointer;
}

.btn {
  display: inline-block;
  cursor: pointer;
  transition: all 0.5s;
  padding: 0.8rem 2rem;
  border: 2.5px solid #4a90e2;
  background: #fff;
  color: #4a90e2;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.btn:hover {
  background: #4a90e2;
  border: 2.5px solid #4a90e2;
  color: #fff;
}

.btn:focus,
.switch-btn:focus,
.frame-btn:focus,
.session-btn,
.add-btn,
.animate-btn {
  outline: none;
}

.session-btn {
  background: #fff;
  color: #f5a623;
  border: 2.5px solid #f5a623;
}

.session-btn:hover {
  background: #f5a623;
  color: #fff;
  border: 2.5px solid #f5a623;
}

.animate-btn {
  background: #fff;
  color: #4a90e2;
  border: 2.5px solid #4a90e2;
}

.animate-btn:hover {
  background: #4a90e2;
  color: #fff;
  border: 2.5px solid #4a90e2;
}

/* FRAME ITEM */

.frame-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.frames-header,
.frames-heading {
  margin-bottom: 0.5rem;
}
.frames-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.add-btn {
  font-size: 1.2rem;
  padding: 0.3rem 0.8rem;
  background: none;
  border: 0;
  color: #000;
}

.add-btn:hover {
  border: 0;
  background: #000;
  color: #fff;
}

.frame-name {
  font-size: 1rem;
}
.frame-name:hover {
  border-bottom: 2px solid #000;
}

.frame-btn {
  cursor: pointer;
  background: none;
  transition: all 0.5s;
  border: 2px solid transparent;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  padding: 0.4rem 0;
}

.frame-btn-delete {
  border: 2.5px solid #d0021b;
  background: #d0021b;
  padding: 0.4rem 1rem;
  color: #fff;
  border-radius: 5px;
  transition: all 0.2s;
}

.frame-btn-delete:hover {
  background: #fff;
  color: #d0021b;
  border: 2px solid #d0021b;
}

/* LANDING PAGE */

.container {
  max-width: 1280px;
  padding: 0 4rem;
  overflow: hidden;
}

/* LANDING PAGE */

.landing-btn {
  color: #000;
  background: #fff;
  border: 2.5px solid #000;
}
.landing-btn:hover {
  color: #fff;
  background: #000;
  border: 2.5px solid #000;
}

.landing-container {
  background: white;
  margin: 5rem 0;
  height: 75vh;
  overflow: hidden;
  border: 4px solid black;
  border-radius: 7px;
}

.center-box {
  padding: 5rem;
  border-radius: 5px;
}

.landing-container h1 {
  text-transform: uppercase;
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.landing-container p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

nav a {
  display: inline-block;
  margin: 1em;
}

form div {
  margin: 1em;
  display: inline-block;
}

/* MAIN CONTAINER */
.main-container {
  display: flex;
  margin: 4rem 0;
  flex-wrap: wrap;
  justify-content: space-evenly;
}

.canvas-container h3 {
  margin-bottom: 0.5rem;
}

/* BUTTONS CONTAINER */
.buttons-container {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.buttons-container .btn,
.buttons-container input {
  margin-bottom: 1rem;
}

.slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.slider-header,
.slider-bar,
.frame {
  margin-bottom: 1rem;
}

.frame img {
  width: 200px;
  height: 200px;
}

/* CHECKERED BACKGROUND */
.checkered-background {
  position: absolute;
  z-index: -5;
}

.real-canvas {
  position: absolute;
  z-index: 0;
}

/* TOOLBOX CONTAINER */

.toolbox-container {
  margin-top: 2rem;
}

.sketch-picker {
  margin-bottom: 1rem;
  height: 300px;
}

.tools {
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-around;
}

.tool-btn {
  background: #fff;
  padding: 0.5rem 1.5rem;
  border: 2.5px solid #4a90e2;
  color: #4a90e2;
}
.tool-btn:hover,
.tool-btn-active {
  padding: 0.5rem 1.5rem;
  background: #4a90e2;
  border: 2.5px solid #4a90e2;
  color: #fff;
}

/* CHANGE PIXEL BUTTONS */
.pixel-buttons {
  display: flex;
  justify-content: space-around;
}

.pixel-btn {
  font-size: 0.8rem;
  background: #fff;
  padding: 0.3rem 0.8rem;
  border: 2.5px solid #4a90e2;
  color: #4a90e2;
}
.pixel-btn:hover,
.pixel-btn-active {
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  background: #4a90e2;
  border: 2.5px solid #4a90e2;
  color: #fff;
}

/* Instructions */

.instructions {
  position: absolute;
  top: 0;
  left: 0;

  min-height: 100vh;
  width: 420px;
  padding: 30px;
  background: #4a90e2;
  color: #fff;
  transform: translateX(-420px);
  transition: transform 0.7s ease-in-out;
  z-index: 5;
}

.instructions p {
  margin-bottom: 1rem;
}

.instructions h3 {
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
}

.show {
  transform: translateX(0);
}

.instruct-btn {
  position: absolute;
  top: 30px;
  left: 135px;
  background: #4a90e2;
  color: #fff;
}

.close-instruct-btn {
  border: 2.5px solid #fff;
  padding: 0.6rem 1.2rem;
}

.close-instruct-btn:hover {
  background: #fff;
  color: #4a90e2;
  border: 2.5px solid #fff;
  padding: 0.6rem 1.2rem;
}
