/* ::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.2s;
} */

/* header {
  view-transition-name: main-header;
  contain: layout;
}

header {
  view-transition-name: main-header-text;
  contain: layout;
  width: fit-content;
} */

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

@keyframes slide-from-right {
  from {
    transform: translateX(30px);
  }
}

@keyframes slide-to-left {
  to {
    transform: translateX(-30px);
  }
}

.wrapper {
  view-transition-name: wrapper;
  layout: contain;
}

::view-transition-old(wrapper) {
  animation: 90ms cubic-bezier(0.4, 0, 1, 1) both fade-out, 300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-to-left;
}

::view-transition-new(wrapper) {
  animation: 210ms cubic-bezier(0, 0, 0.2, 1) 90ms both fade-in, 300ms cubic-bezier(0.4, 0, 0.2, 1) both slide-from-right;
}

html {
  min-height: 100%;
  height: 100%;
}

@media (prefers-color-scheme: light) {
  body {
    margin: 0px 5px 0px 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
    background-color: #ffffff;
  }
}

::-webkit-scrollbar {
  display: none;
}

@media screen and (min-width: 1024px) and (max-width: 2560px) {
  /* width */
  ::-webkit-scrollbar {
    display: block;
    width: 3px;
    overflow-y: auto;
  }

  /* Track */
  ::-webkit-scrollbar-track {
    opacity: 0;
  }

  /* Handle */
  ::-webkit-scrollbar-thumb {
    background: rgb(223, 222, 222);
  }
}

.return {
  position: absolute;
  top: 13px;
}

h1 {
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 25px;
  letter-spacing: 1px;
  text-align: center;
}

h2 {
  margin-top: 0px;
  font-size: 20px;
  text-align: center;
}

h5 {
  margin-top: 5px;
  margin-bottom: 0;
}

a:link {
  text-decoration: none;
}

.wrapper {
  height: 100%;
  overflow-y: scroll;
  padding: 0.2rem 0.5rem;
}

header {
  background-color: white;
  padding: 0.2rem 0.5rem;
}

.name {
  margin: 0 auto;
}

.title {
  background-color: lightgray;
  padding: 5px;
}

button {
  background-color: #5b3c89;
  color: white;
  border: 0;
  border-radius: 5px;
  outline: none;
}

button:active {
  background-color: #5b3c70;
}

.main-grid-container {
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 0.5rem;
}

.main-grid-container button {
  padding: 105px 0 10px 10px;
  width: 99%;
  text-align: left;
  font-size: 16px;
  margin-bottom: 2px;
}

.main-grid-container button:active {
  background-color: #5b3c70;
}

.grid-container {
  display: grid;
  grid-template-columns: auto 35%;
  grid-gap: 0.5rem;
}

.grid-container div {
  border: 0.5px solid lightgray;
  border-radius: 5px;
}

.name-align {
  display: flex;
  justify-content: left;
  align-items: center;
  padding-left: 10px;
}

.fa {
  padding: 6px;
  font-size: 30px !important;
  text-align: center;
  text-decoration: none;
}

.fab {
  font-size: 30px !important;
  text-align: center;
  text-decoration: none;
}

.fa:hover {
  opacity: 0.7;
}

.fa-whatsapp {
  background: #4fce5d;
  color: white;
  width: 100%;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 5px;
}

.whatsapp-btn {
  background: #4fce5d;
  fill: white;
  width: 100%;
  padding: 0.2rem 0;
}

.whatsapp-btn:active {
  background: #349c40;
}

.whatsapp-btn > svg {
  fill: white;
  width: 1.8rem;
  display: flex;
  margin: 0 auto;
}

.rota {
  width: 100%;
  height: auto;
  border: none;
  max-width: 1080px;
  margin: 0 auto;
}

.fa-arrow-left {
  width: 20px;
  color: black;
}

.icon-bar {
  width: 100%;
  background-color: white;
  border-top: 1px solid #c3c0c0;
  display: flex;
  justify-content: space-between;
  padding-bottom: env(safe-area-inset-bottom);
}

.icon-bar a {
  float: left; /* Float links side by side */
  text-align: center; /* Center-align text */
  width: 20%; /* Equal width (5 icons with 20% width each = 100%) */
  padding: 12px 0; /* Some top and bottom padding */

  color: white; /* White text color */
  color: #555;
  text-decoration: none;
}

.icon-bar a:hover {
  background-color: grey; /* Add a hover color */
}

.active {
  background-color: #4caf50; /* Add an active/current color */
}

/*This is the Check List CSS*/

.container {
  background: #fff;
  max-width: 600px;
  width: 100%;
  display: table;
  margin: 0 auto;
  margin-top: 40px;
  border: 1px solid #cfcbcc;
}

input {
  border: none;
  display: block;
  width: 98.4%;
  line-height: 1.5;
  padding: 8px 0 8px 8px;
  border-bottom: 1px solid #cfcbcc;
  outline: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
ul li {
  color: #899098;
  font-weight: 400;
  border-bottom: 1px solid #cfcbcc;
  line-height: 1.5;
  padding: 8px 0;
}
ul li:before {
  content: '\25A1';
  padding: 10px 10px;
  font-size: 20px;
}
ul li:hover {
  text-decoration: line-through;
  cursor: pointer;
}
ul li:last-child {
  border-bottom: none;
}

.checked {
  color: green;
}
.checked:before {
  content: '\2713';
  padding: 10px 10px;
  font-size: 20px;
}
.checked:hover {
  text-decoration: none;
}
.checked:hover:after {
  content: '(remove)';
  color: tomato;
  text-align: right;
}

/*Counter css*/
.btn-container {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0.5rem;
}

.btn-container-bottom {
  padding: 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

label {
  font-size: 20px;
  margin-left: 2.5%;
}

.counter-result {
  font-size: 110px;
  text-align: center;
  padding-top: 10%;
}

.saveCount {
  display: inline;
  font-size: 23px;
}

.dateSaved {
  margin-left: 2.5%;
}

.plus.minus {
  font-size: 55px;
  height: auto;
  display: block;
  padding: 20px 0 20px 0;
}

.save.resetCount.resetAll {
  padding: 10px 20px;
  line-height: 0;
}

/* Modal */
.pop-up {
  position: fixed;
  background-color: white;
  border: 1px solid grey;
  top: 25%;
  left: 50%;
  translate: -50%;
  padding: 1rem;
  width: 80%;
}

.pop-up-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.buttons {
  padding: 2rem;
}

.cancel {
  grid-column: span 2;
}

.hidden {
  display: none;
}

@media (prefers-color-scheme: dark) {
  body {
    margin: 0px 5px 0px 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    min-height: 100%;
    background-color: #1e1f23;
    color: white;
  }

  header {
    background-color: #1e1f23 !important;
  }

  .icon-bar {
    background-color: #1e1f23 !important ;
  }

  .title {
    color: #1e1f23;
  }

  .return svg {
    fill: white;
  }

  a {
    color: white !important;
  }

  .pop-up {
    background-color: #1e1f23;
  }
}
