@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@700&display=swap");

:root {
  --font1: "Roboto", sans-serif;
  --color1: #414141;
  --color2: #d3d3d3;
  --color3: #8a8a8a;
  --color4: #f7f7f7;
  --color5: #daa520;
  --col1: #111;
  --col2: #333;
  --col7: #999;
  --col3: #fff;
  --col4: #808080;
  --col5: #99a3a3;
  --col6: #ffc0cb;
  --letterSpacing: 0.7px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font1);
  background-color: #99a3a3;
  margin: 20px;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.temp-container {
  padding: 10px;
}

label {
  display: block;
  color: #333;
}

.msg2 {
  font-size: 16px;
  color: #333;
  padding: 20px 0 20px 0;
}

.unit,
.decimalPlace,
.temperature {
  background-color: rgba(120, 139, 139, 0.3);
  font-family: "Roboto", sans-serif;
  font-size: 22px;
  margin: 4px 0 20px 0;
  padding: 10px;
  width: 180px;
  outline: none;
  border: 1px solid #808080;
  cursor: pointer;
}

.temperature::placeholder {
  color: #ddd;
  font-size: 14px;
  font-style: italic;
  letter-spacing: 1.1px;
  opacity: 0.5;
}

.unit {
  font-size: 16px;
  outline: none;
}

.decimalPlace {
  background-color: rgba(120, 139, 139, 0.3);
  font-size: 15px;
  width: auto;
  margin-right: 10px;
}

.unit option,
.decimalPlace option {
  background-color: #788b8b;
  color: #111;
}

option:checked,
.decimalPlace:checked {
  background-color: #333;
  color: #ccc;
}

.unit:hover,
.decimalPlace:hover,
.temperature:hover,
button:hover {
  box-shadow: 3px 3px 3px #08154140;
  transition: 0.4s ease-in-out;
}

input:focus,
select:focus {
  background-color: #788b8b;
  color: #111;
}

/* HIDE ARROWS FROM NUMBER INPUT */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type="number"] {
  -moz-appearance: textfield;
}

.msg {
  font-size: 16px;
  text-wrap: wrap;
}

.resultText {
  color: #333;
  font-size: 16px;
  /* padding-left: 10px; */
  margin: 40px 0 10px 0;
}

/* hr.line {
    border: 0;
    border-top: 1px dotted #888;
    margin: 4px 0 20px 0;
  } */

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #888;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* WHEN TEXT HIGHLIGHTED */
input::selection {
  color: #202020;
  background-color: darkgoldenrod;
}

.btn-container {
  display: flex;
  margin-bottom: 0px;
}

/* BUTTON */
button {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  background-color: #788b8b;
  color: #111;
  width: 100px;
  letter-spacing: 1px;
  padding: 10px;
  margin-right: 10px;
  border: 1px solid #808080;
  cursor: pointer;
}

button:hover {
  background-color: rgba(120, 139, 139, 0.3);
}

.tempIn,
.tempOut {
  font-size: 16px;
  letter-spacing: 1.1px;
  padding: 5px 14px 3px 14px;
}

.tempIn {
  background-color: #333;
  color: #aaa;
}

.tempOut {
  background-color: #788b8b;
  color: #191919;
}

.convertedTemp {
  background-color: rgba(120, 139, 139, 0.3);
  width: auto;
  color: #222;
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px;
  margin-bottom: 18px;
}

.convertedTemp:last-child {
  margin-bottom: 50px;
}

/* HAMBURGER ICON: START */
.menu-toggle {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 18px;
  background-color: var(--col7);
  color: var(--col1);
  padding: 12px 16px;
  cursor: pointer;
  z-index: 1000;
  transition: color 0.7s ease;
} /* HAMBURGER ICON: END */

.menu-toggle:hover {
  background-color: #999;
}

/* MENU CONTENT: START */
.sliding-menu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background-color: var(--col2);
  color: var(--col3);
  padding: 20px 40px 20px 20px;
  transition: right 0.3s ease;
  overflow-y: scroll;
  -ms-overflow-style: none;
  /* Hide scrollbar for Chrome, Safari and Opera */
  scrollbar-width: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.sliding-menu::-webkit-scrollbar {
  display: none;
}

.sliding-menu.active {
  right: 0;
}

.sliding-menu h2 {
  color: var(--col6);
  font-size: 20px;
  margin: 10px 0 20px 0;
}

.optionHeading {
  color: #ccc;
  font-size: 16px;
  letter-spacing: var(--letterSpacing);
}

.sliding-menu p {
  font-size: 14px;
  letter-spacing: var(--letterSpacing);
  margin: 2px 0 20px 0;
} /* MENU CONTENT: END */

/*  COPYRIGHT */
.copy {
  position: fixed;
  bottom: 0;
  text-align: center;
  width: 100%;
  background-color: #99a3a3;
  color: #616e6e;
  font-size: 12px;
  letter-spacing: 1.2px;
  padding: 12px 0;
}

.copy a {
  color: #616e6e;
  text-decoration: underline;
  text-decoration-color: #616e6e;
  text-underline-offset: 5px;
}

.copy a:hover {
  color: #616e6e;
  text-decoration: none;
}

@media only screen and (max-width: 450px) {
  h1 {
    text-align: center;
    margin: 40px 0 20px 0;
  }

  .menu-toggle {
    font-size: 16px;
    padding: 8px 17px;
  }
}

@media only screen and (max-width: 370px) {
  .copy {
    line-height: 1.5;
  }

  .copy a {
    text-underline-offset: 2px;
  }

  .copy2 {
    display: block;
  }
}

@media only screen and (max-width: 340px) {
  .btn-container {
    flex-direction: column;
    gap: 10px;
  }
}

@media only screen and (max-width: 300px) {
  .sliding-menu {
    right: -220px;
    width: 220px;
  }
}
