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

body {
  font-family: "Winky Rough", sans-serif;
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #7e98fd;
  background-image: url("./images/unit-convertor-bg.png");
  background-size: cover;
}

.container {
  width: 350px;
  height: 600px;
  border: 3px solid black;
  padding: 20px;
  display: flex;
  flex-direction: column;
  background-color: white;
  position: relative;
  box-shadow: 15px 15px 15px rgba(0, 0, 0, 0.619);
}

.container::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 350px;
  height: 600px;
  background-color: rgba(244, 240, 240, 0.636);
  background-image: repeating-linear-gradient(
    -45deg,
    #000000,
    #000000 2px,
    transparent 3px,
    transparent 7px
  );
  border: 3px solid black;
  z-index: -1;
}

.header h1 {
  font-size: 2rem;
  letter-spacing: 0.2rem;
  font-style: italic;
  background-color: #333333;
  color: white;
  border: 3px solid rgb(255, 255, 255);
  box-shadow: 0px 0px 50px rgba(0, 0, 0, 0.536);
  /* border-radius: 5px; */
}

.font {
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.1rem;
}

nav {
  /* background-color: aqua; */

  margin-top: 30px;
}

nav ul {
  list-style-type: none;
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

nav ul li {
  /* background-color: blue; */
  padding: 5px 0;
}

nav ul li:hover {
  cursor: pointer;
}

.nav-active {
  color: #4465e9;
  border-bottom: 3px solid #4465e9;
}

.main {
  margin-top: 40px;
  flex: 1;
  /* background-color: aqua; */
  /* overflow-y: scroll; */
  scroll-behavior: smooth;
}

.input-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  /* gap: 10px; */
}
.input-wrapper {
  /* background-color: #4465e9; */
  padding: 10px;
  flex: 1;
}

.input-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 130px;
}

.input-box label {
  /* margin-left: 10px; */
  font-style: normal;
  color: rgb(66, 66, 66);
  /* background-color: #4465e9; */
  /* text-align: center; */
}

.input-box input[type="number"] {
  border: 3px solid black;
  border-radius: 3px;
  height: 40px;

  /* width: 130px; */

  padding: 5px;
  font-family: "Winky Rough", sans-serif;
  font-size: 1rem;

  letter-spacing: 0.05rem;
  /* font-weight: 500; */
}

.hide {
  display: none;
}

/* Remove arrows in Chrome, Edge, Safari */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Remove arrows in Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}
