/* ! The outline NONE makes the .focus() not visible.. !!! */

* {
  box-sizing: border-box;
  padding: 0;
  /* margin: 5px; */
  /* font-family: 'Techkr'; */
  user-select: none;
  text-decoration: none;
  list-style-type: none;
  outline: none;
  -webkit-user-drag: none;
}

::-webkit-scrollbar {
  width: 0px;
}

@font-face {
  font-family: 'Techkr';
  src: url(./Assets/Fonts/TECHKR__.TTF) format('truetype');
}

@font-face {
  font-family: 'Data';
  src: url(./Assets/Fonts/data-latin.ttf) format('truetype');
}

@font-face {
  font-family: 'ShareTech';
  src: url(./Assets/Fonts/ShareTech-Regular.ttf) format('truetype');
}

:root {
  --background-color-pale-orange: #f4f1de;
  --background-color-original-pink: #f4a698;
  --background-color-transparent-pink: #f4a6982b;
  --purple-like-input-transparent-field: #4a599955;
  --purple-like-input-field: #4a5899;
  --background-test-coolers-blue: #005d7c34;
}

/** General Settings */

/* Principal */

section {
  position: relative;
  margin-bottom: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

body {
  width: 99vw;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url(./Assets/Pers-Design/Custom-Background-3.png);
  background-color: rgb(255, 255, 255);
  object-fit: cover;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h3 {
  font-family: 'Techkr';
  font-size: 2em;
  font-weight: 500;
  text-align: center;
}

/** Nav Container */

nav {
  position: relative;
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/*> Title */

.main-title {
  width: 350px;
}

/*> Text Buttons Container */

.button-container {
  margin-top: 15px;
  display: flex;
  flex-direction: column;
}

/*> Text Buttons Config */

button {
  margin: 0px 20px;
  background-color: transparent;
  border: none;
  font-family: 'Techkr';
  font-size: 2.5em;
  font-weight: lighter;
  cursor: pointer;
  transition: transform 0.3 ease-in;
}

button:hover {
  transform: scale(1.1);
}

/** Main Container */

main {
  height: fit-content;
  margin-top: 255px;
  display: flex;
  flex-direction: column;
}

/*> Select Icon Data Type  **/

#icons-container {
  margin: 10px 0px 20px 0px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Round containers */

.principal-icon-container {
  margin: 5px;
  width: 60px;
  height: 60px;
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 2px solid black;
  cursor: pointer;
  background-color: white;
}

/* Icons imgs */

.principal-icon-container > img {
  width: 100%;
  object-fit: cover;
}

.principal-icon-container:hover {
  border: 3px solid black;
  background-color: #00000011;
}

/* > Activated button style */

.active {
  box-shadow: 1px 3px 1px 1px black;
  border: 2px solid black;
  transform: scale(1.3);
}

/*> Input Config */

input {
  width: 280px;
  height: 35px;
  margin-top: 10 px;
  align-self: center;
  background-color: #0000000a;
  border: 1px solid black;
  border-radius: 5px;
  font-size: 1rem;
  text-align: center;
  user-select: all;
  font-family: 'ShareTech';
  caret-color: #000000;
}

input::selection {
  background-color: #000000e2;
  color: white;
}

input::placeholder {
  margin: 0 auto;
  font-family: 'Techkr';
  font-size: 2.3rem;
  color: rgba(0, 0, 0, 0.532);
}

input:focus::placeholder {
  color: #00000000;
}

/* Animation Empty Remove or Null Input */

.shakeItEmpty {
  animation: shakeAnimation 0.2s linear;
}

@keyframes shakeAnimation {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  50% {
    transform: translateX(3px);
  }
  75% {
    transform: translateX(-3px);
  }
  100% {
    transform: translateX(0);
  }
}

/** UI Config  */

.ui-container {
  position: absolute;
  width: 100%;
  top: 450px;
}

#local-ui {
  position: relative;
  width: 100%;
  min-height: 100px;
  padding: 30px 30px;
  margin-bottom: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  border: 3px solid rgb(0, 0, 0);
  border-radius: 10px;
  background-color: white;
  box-shadow: 1px 2px 4px 4px rgba(0, 0, 0, 0.308);
  z-index: 100;
}

/*> UI UL List Config */

#ul-lists {
  width: 100%;
  margin: 0px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 50px;
}

#ul-lists ul li p {
  margin: 5px;
  padding: 5px;
  line-height: 25px;
  font-family: 'ShareTech';
}

li {
  height: max-content;
  margin: 15px 0px;
}

li > h4 {
  margin: 5px;
  line-height: 30px;
  font-family: 'ShareTech';
  font-weight: 300;
  font-size: 1.15rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.156);
}

/* Array and object exceptions */

li > h4:not(#item-list h4) {
  opacity: 0.3;
}

li > p:not(#item-list p) {
  font-size: 0.9rem;
}

/* Selected class Add/remove style */

.selected-ul {
  transform: scale(1.1);
}

/** Footer */

footer {
  position: fixed;
  z-index: 1;
  bottom: 0px;
}

footer p {
  font-family: 'Techkr';
  margin-bottom: 15px;
  font-size: 2rem;
  font-weight: 500;
}

p > span {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 11px;
}

/*> Loading Bar */

#myProgress {
  position: absolute;
  display: flex;
  align-items: center;
  width: 90%;
  height: 30px;
  background-color: #ddddddb1;
  border-radius: 5px;
  border: 2px solid black;
}

#myBar {
  position: absolute;
  margin: 0;
  width: 10px;
  height: 28px;
  border-radius: 2px;
  background-color: #000000d7;
}

#loading {
  margin: 0 auto;
  position: absolute;
  height: 30px;
  line-height: 30px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.5rem;
  z-index: 1;
  font-family: 'Techkr';
}

/** Pop-up ERROR message box */

#pop-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 250px;
  border: 1px solid black;
  box-shadow: 5px 5px 5px 0px rgba(0, 0, 0, 0.75);
  background-color: #e5e5e5;
  display: none;
  z-index: 9999;
  font-family: 'Techkr';
}

/* Nav container message */

.nav {
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 40px;
  padding: 0px 10px;
  font-size: 2.5rem;
  background-color: #0000aa;
  border: 1px solid black;
}

/* Text */

.nav > p {
  color: white;
}

/* X */

.nav > span {
  padding: 0px;
  width: 25px;
  height: 25px;
  line-height: 25px;
  text-align: center;
  vertical-align: middle;
  box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.75);
  background-color: #e5e5e5;
}

.nav > span:hover {
  background-color: #b0b0b0;
  cursor: pointer;
}

/* Main message container */

.main-message-container {
  height: calc(100% - 61px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#pop-message {
  font-size: 2.8rem;
  margin-bottom: 30px;
}

/* Buttons */

.error-buttons-container {
  display: flex;
}

#confirm-pop-buttons,
#cancel-pop-buttons,
#erase-pop-buttons,
#instruction-pop-buttons {
  /* margin: 0px; */
  width: 120px;
  border: 1px solid black;
  box-shadow: 2px 2px 2px 0px rgba(0, 0, 0, 0.75);
  transition: none;
}

#confirm-pop-buttons:hover,
#cancel-pop-buttons:hover,
#erase-pop-buttons:hover {
  transform: none;
  background-color: #b0b0b07e;
}

/* #instruction-pop-buttons:hover {
  background-color: #b0b0b07e;
} */

/*> Instructions box */

#instructions-box {
  padding: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 70vw;
  height: 80vh;
  transform: translate(-50%, -50%);
  box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.587);
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.6s linear;
  overflow: scroll;
  background-image: url('./Assets/Pers-Design/Custom-Background-Instru.png');
  background-color: rgb(255, 255, 255);
  background-size: cover;
  overflow-x: hidden;
}

#instructions-box h3 {
  margin: 15px;
  font-size: 3.8rem;
  font-weight: 400;
}

#instructions-box p {
  font-weight: 100;
  text-align: center;
  /* font-size: 2.5rem; */
  font-family: 'ShareTech';
}

ol {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#instructions-box li {
  align-self: flex-start;
  margin-bottom: 15px;
  font-size: 1.2rem;
  font-family: 'ShareTech';
}

/* Images */

[alt='Syntax'] {
  width: 100%;
  max-width: 250px;
}

[alt='Keyboard'] {
  width: 40%;
  max-width: 500px;
}

/** Media Query */

@media screen and (min-width: 300px) and (max-width: 1180px) {
  .main-title {
    width: 280px;
  }

  section {
    margin: 0px;
    flex-wrap: wrap;
    gap: 0px;
  }

  body {
    margin: 0;
    height: fit-content;
  }

  .ui-container {
    position: absolute;
    padding: 0px 40px;
    max-width: 750px;
    min-width: 300px;
  }

  #local-ui {
    display: flex;
    max-width: 700px;
  }

  #ul-lists {
    gap: 5px;
  }

  #pop-container {
    width: fit-content;
    min-width: 240px;
    max-width: 550px;
  }

  #pop-message {
    padding: 0px 20px;
  }

  #confirm-pop-buttons,
  #cancel-pop-buttons,
  #erase-pop-buttons,
  #instruction-pop-buttons {
    margin-bottom: 10px;
  }

  #nav-message {
    opacity: 0;
  }

  #instructions-box {
    width: 80%;
  }

  #pop-message {
    font-size: 2.3rem;
  }

  [alt='Keyboard'] {
    display: none;
  }
}

@media screen and (min-width: 300px) and (max-width: 600px) {
  main {
    margin-top: 20px;
  }

  .ui-container {
    margin-top: 60px;
  }

  #local-ui {
    padding: 30px 10px;
  }

  li {
    font-size: 1.8rem;
  }

  li > h4 {
    font-size: 1rem;
  }

  .ui-container {
    top: 580px;
    padding: 0px 40px;
    max-width: 750px;
    min-width: 300px;
  }

  footer > p {
    font-size: 1.5rem;
  }

  #instructions-box {
    width: 80%;
  }

  #pop-message {
    font-size: 2.3rem;
  }

  [alt='Keyboard'] {
    display: none;
  }
}
