/* Setup */
:root {
  --white-color: #fafafa;
  --orange-color: #ff9800;
  --black-color: #010101;
  --gray-color: #9c9c9c;
  --another-gray-color: #333333;
  --dark-gray-color: #1a1a1a;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
  color: var(--white-color);
  transition: 0.2s ease;
}
body {
  position: relative;
  background-color: var(--black-color);
  -webkit-tap-highlight-color: transparent;
}
.container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}
@media (max-width: 767px) {
  .container {
      width: 100%;
  }
}
/* Small  */
@media (min-width: 768px) {
  .container {
      width: 750px;
  }
}
/* Medium  */
@media (min-width: 992px) {
  .container {
      width: 970px;
  }
}
/* Large  */
@media (min-width: 1200px) {
  .container {
      width: 1170px;
  }
}

/* Nav Bar */
.nav-bar {
  background-color: var(--dark-gray-color);
  height: 75px;
}
@media (max-width: 360px) {
  .nav-bar {
    height: 100px;
  }
}
.nav-bar .container {
  height: 100%;
}
@media (max-width: 360px) {
  .nav-bar .container {
    height: 50%;
  }
}
/* Page Buttons */
.page-buttons {
  height: 100%;
}
.page-buttons button {
  height: 100%;
  width: 50%;
  background-color: transparent;
  border: none;
  font-size: 20px;
  font-weight: bold;
  opacity: 0.5;
  position: relative;
  float: left;
  letter-spacing: 1px;
}
@media (max-width: 500px) , (max-height: 750px) {
  .page-buttons button {
    font-size: 15px;
  }
}
@media (max-width: 360px) {
  .page-buttons button {
    width: 100%;
  }
}
.page-buttons button::after {
  content: "";
  position: absolute;
  height: 5px;
  width: 0;
  background-color: var(--white-color);
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}
.page-buttons button:hover {
  opacity: 1 !important;
  cursor: pointer;
  letter-spacing: 2px;
}
.page-buttons button:hover::after {
  width: 100%;
}
@media (max-width: 360px) {
  .page-buttons button:hover::after {
    width: 0;
  }
}
.page-buttons button:active {
  background-color: var(--another-gray-color);
}
button, i {
  -webkit-tap-highlight-color: transparent;
}
.page-content .container .page-header {
  width: 100%;
  text-align: center;
  margin: 100px 0;
  font-size: 30px;
  letter-spacing: 5px;
}
@media (max-width: 500px) {
  .page-content .container .page-header {
    margin: 50px 0;
    font-size: 20px;
  }
}
@media (max-width: 360px) {
  .page-content .container .page-header {
    margin: 30px 0;
    font-size: 15px;
  }
}
@media (max-height: 750px) {
  .page-content .container .page-header {
    margin: 50px 0;
    font-size: 25px;
  }
}
@media (max-height: 550px) {
  .page-content .container .page-header {
    margin: 10px 0;
    font-size: 15px;
  }
}
.page-content .container .page-header h1{
  margin-bottom: 20px;
  font-size: 50px;
  color: var(--orange-color);
}
@media (max-width: 500px) {
  .page-content .container .page-header h1{
    margin-bottom: 10px;
    font-size: 30px;
  }
}
@media (max-height: 750px) {
  .page-content .container .page-header h1{
    margin-bottom: 10px;
    font-size: 25px;
  }
}
@media (max-height: 550px) {
  .page-content .container .page-header h1{
    margin-bottom: 0;
  }
}
@media (max-width: 360px) {
  .page-content .container .page-header h1{
    font-size: 20px;
  }
}
@media (max-width: 240px) {
  .page-content .container .page-header h1{
    font-size: 16px;
  }
}
/* Timer Page */
.container .timer-page {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 50px;
}
@media (orientation: portrait) {
  .container .timer-page {
    width: 100%;
    flex-direction: column;
  }
}
.container .timer-page > div {
  width: 100%;
}
.container .timer-page .left-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.inputs-labels {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.inputs-labels div {
  width: 150px;
  margin: 0 10px;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
@media (max-width: 240px) {
  .inputs-labels div {
    margin: 0 2px;
  }
}
.inputs-labels div label {
  width: 100%;
  font-size: 20px;
  margin-bottom: 20px;
  opacity: 0.5;
}
@media (max-width: 500px) , (max-height: 750px) {
  .inputs-labels div label {
    font-size: 16px;
    margin-bottom: 10px;
  }
}
@media (max-width: 240px) {
  .inputs-labels div label {
    font-size: 13px;
  }
}
.inputs-labels div input {
  width: 100px;
  height: 100px;
  background-color: transparent;
  border: none;
  text-align: center;
  font-size: 70px;
}
@media (max-width: 500px) , (max-height: 750px) {
  .inputs-labels div input {
    width: 60px;
    height: 60px;
    font-size: 40px;
  }
}
@media (max-width: 240px) {
  .inputs-labels div input {
    width: 40px;
    height: 40px;
    font-size: 25px;
  }
}
.inputs-labels div input:focus{
  outline: 0;
}
.inputs-labels p {
  margin-top: 35px;
  font-size: 65px;
}
@media (max-width: 500px) , (max-height: 750px) {
  .inputs-labels p {
    margin-top: 20px;
    font-size: 35px;
  }
}
@media (max-width: 240px) {
  .inputs-labels p {
    margin-top: 30px;
    font-size: 25px;
  }
}
.inputs-labels i {
  width: 100%;
  font-size: 70px;
}
@media (max-width: 500px) , (max-height: 750px) {
  .inputs-labels i {
    font-size: 35px;
  }
}

.inputs-labels i:hover {
  cursor: pointer;
  opacity: 0.5;
}

.alert {
  font-size: 20px;
}
@media (max-width: 500px) , (max-height: 750px) {
  .alert {
    font-size: 15px;
  }
}
.alertmsg {
  color: #FF5722;
}
.start-add-btns {
  position: relative;
  text-align: center;
  margin: 50px 0;
}
@media (max-width: 500px) , (max-height: 750px) {
  .start-add-btns {
    margin: 35px 0;
  }
}
@media (max-height: 360px) {
  .start-add-btns {
    margin: 25px 0;
  }
}
@media (max-width: 360px) {
  .start-add-btns {
    width: 100%;
    position: relative;
    text-align: center;
    margin-bottom: 30px;
  }
}
.start-btn {
  color: var(--black-color);
  background-color: var(--orange-color);
}
.start-btn:hover {
  background-color: #f7b757;
}
.start-btn:focus-visible {
  outline: none;
  box-shadow: 0px 0px 10px var(--white-color);
}
.add-btn {
  font-size: 45px;
  font-family: Arial, Helvetica, sans-serif;
  background-color: transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  border: 3px solid var(--dark-gray-color);
  position: absolute;
  margin-left: 15px;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 500px) , (max-height: 750px) {
  .add-btn {
    font-size: 25px;
    width: 40px;
    height: 40px;
    margin-left: 10px;
  }
}
@media (max-width: 360px) {
  .add-btn {
    top: calc(100% + 15px);
    left: 50%;
    margin-left: 0;
    transform: translateX(-50%);
  }
}
.add-btn:hover {
  cursor: pointer;
  background-color: var(--another-gray-color);
}

/* Start Of Popup Style */
.pop-up {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  scale: 0;
  opacity: 0;
}
@media (max-width: 650px) {
  .pop-up {
    width: 90%;
  }
}
@media (min-width: 750px) and (max-height: 550px) {
  .pop-up {
    display: flex;
  }
}
.pop-up > p {
  background-color: #c54e29;
  padding: 30px;
  font-weight: bold;
  font-size: 30px;
  letter-spacing: 2px;
  border-radius:20px 20px 0 0;
  text-align: center;
}
@media (max-width: 650px) {
  .pop-up > p {
    font-size: 20px;
    padding: 20px;
  }
}
@media (min-width: 750px) and (max-height: 550px) {
  .pop-up > p {
    border-radius:20px 0 0 20px;
  }
}
.preset-timer-content {
  background-color: var(--white-color);
  padding: 30px 30px 0;
  border-radius: 0 0 20px 20px;
}
@media (max-width: 300px) {
  .preset-timer-content {
    padding: 10px 10px 0;
    border-radius: 0 0 10px 10px;
  }
}
@media (min-width: 750px) and (max-height: 550px) {
  .preset-timer-content {
    border-radius: 0 20px 20px 0;
  }
}
@media (min-width: 750px) and (max-height: 450px) {
  .preset-timer-content {
    padding: 10px 30px 0;
  }
}
.popup-label {
  color: var(--dark-gray-color);
}
.popup-input,
.colon,
.popup-icon,
.cancel-btn-pop {
  color: var(--black-color);
}
input[type="text"] {
  width: -webkit-fill-available;
  padding: 20px 0;
  font-size: 25px;
  background-color: transparent;
  color: var(--black-color);
  border: none;
  border-bottom: 1px solid #9f9f9f;
  outline: none;
  margin: 25px 0;
}
@media (max-width: 650px) {
  input[type="text"] {
    font-size: 20px;
    padding: 15px 0;
  }
}
@media (max-width: 300px) {
  input[type="text"] {
    margin: 15px 0;
    font-size: 16px;
  }
}
@media (min-width: 750px) and (max-height: 450px) {
  input[type="text"] {
    margin: 5px 0;
    padding: 10px 0;
    font-size: 16px;
  }
}
.cancle-pause-container-pop {
  display: flex;
  justify-content: flex-end;
  margin-right: -30px;
}
@media (max-width: 300px) {
  .cancle-pause-container-pop {
    margin-right: -10px;
  }
}
.start-btn-pop {
  color: #c54e29;
}
.btn-pop {
  padding: 20px;
  border: none;
  font-size: 20px;
  font-weight: bold;
  background-color: transparent;
  opacity: 0.6;
}
@media (max-width: 300px) {
  .btn-pop {
    padding: 10px;
    font-size: 16px;
  }
}
.btn-pop:hover {
  cursor: pointer;
  opacity: 1;
}
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  appearance: none;
}
.opacity {
  background-color: white;
  visibility: hidden;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0;
}
/* End Of Popup Style */
.angle-checkbox {
  visibility: hidden;
  width: 0;
  height: 0;
  cursor: pointer;
}
@media (max-width: 360px) {
  .angle-checkbox {
    margin-top: 40px;
  }
}
.angle-checkbox .fa {
  transform: rotate(0);
  font-size: 30px;
  font-weight: bold;
}
:has(#angle_checkbox:checked) .fa-angle-down {
  transform: rotate(180deg);
}
.table {
  display: flex;
  flex-direction: column;
  font-size: 20px;
  max-height: 280px;
  overflow: hidden auto;
  padding-right: 10px;
  width: 100%;
  visibility: visible;
}
@media (max-height: 770px) {
  .table:not(:empty) {
    visibility: hidden;
    width: 0;
    max-height: 0;
  }
  :has(.table:not(:empty)) .angle-checkbox {
    visibility: visible;
    width: unset;
    height: unset;
  }
}
.table:empty {
  visibility: hidden;
  width: 0;
  max-height: 0;
}
@media (max-width: 500px) , (max-height: 750px) {
  .table {
    max-height: 210px;
    font-size: 18px;
  }
}
.table-row {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--another-gray-color);
}
.table-row .left {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 5px 10px 5px 0;
  border-radius: 10px;
  padding: 10px;
  width: 100%;
}
@media (max-width: 360px) {
  .table-row .left {
    flex-direction: column;
  }
}
.table-row .left:hover {
  cursor: pointer;
  background-color: var(--dark-gray-color) !important;
}
.indx-val {
  display: flex;
  align-items: center;
}
@media (max-width: 360px) {
  .indx-val {
    flex-direction: column;
    align-items: center;
  }
}
.indx-val span{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
  min-width: 40px;
  max-width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--dark-gray-color);
}
@media (max-width: 360px) {
  .indx-val span{
    margin-right: 0;
  }
}
@media (max-width: 360px) {
  .indx-val p {
    text-align: center;
  }
}
.table-row i {
  opacity: 0.8;
  color: #FF5722;
  transition: 0s;
}
.table-row i:hover {
  cursor: pointer;
  opacity: 1;
}

.container .timer-sec-page,
.container .stopwatch-page {
  display: flex;
  flex-flow: column;
  align-items: center;
  gap: 75px;
}
.container .stopwatch-page {
  height: 750px;
}
.container .stopwatch-page {
  justify-content: center;
}
@media (max-height: 1200px) {
  .container .stopwatch-page {
    height: 400px;
  }
}
@media (max-height: 850px) {
  .container .stopwatch-page {
    height: 300px;
  }
}
@media (max-height: 750px) {
  .container .timer-sec-page,
  .container .stopwatch-page {
    height: unset;
    gap: 50px;
  }
}
@media (max-height: 550px) {
  .container .timer-sec-page,
  .container .stopwatch-page {
    gap: 10px;
  }
}
@media (max-width: 360px) {
  .container .timer-sec-page {
    gap: 30px;
  }
  .container .stopwatch-page {
    gap: 40px;
  }
}

.btn {
  width: 200px;
  padding: 20px 0;
  border-radius: 50px;
  border: none;
  font-size: 25px;
  font-weight: 800;
  cursor: pointer;
}
@media (max-width: 500px) , (max-height: 750px) {
  .btn {
    width: 150px;
    padding: 15px 0;
    font-size: 20px;
  }
}
@media (max-width: 360px), (max-height: 550px) {
  .btn {
    padding: 10px 0;
    font-size: 15px;
  }
}
@media (max-width: 240px), (max-height: 400px) {
  .btn {
    width: 100px;
    padding: 5px 0;
    font-size: 14px;
  }
}
.btn:not(:disabled):hover {
  background-color: #ffa828;
}
.cancle-pause-container {
  display: flex;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 40px;
}
@media (max-width: 500px) {
  .cancle-pause-container {
    gap: 20px;
    width: 100%;
    flex-direction: column;
  }
}
@media (max-height: 550px) {
  .cancle-pause-container {
    gap: 10px;
    margin-bottom: 20px;
  }
}
.cancel-btn {
  background-color: var(--dark-gray-color);
}
.cancel-btn:not(:disabled):hover {
  background-color: #414040;
}
@media (max-width: 500px) {
  .cancle-pause-container button {
    width: 100%;
  }
}
.pause-btn {
  background-color: #731d17;
}
.pause-btn:not(:disabled):hover {
  background-color: #a53737;
}
.resume-btn {
  background-color: #00554d;
}
.resume-btn:hover {
  background-color: #009688 !important;
}
:disabled {
  opacity: 0.5;
  cursor: default;
}

.counter-circle {
  border-radius: 50%;
  background-color: var(--white-color);
  font-size: 40px;
}
.counter-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 50%;
  background-color: var(--black-color);
}
.counter-style {
  width: 400px;
  height: 400px;
  font-size: 70px;
  position: relative;
  display: flex;
  align-items: center;
}
@media (max-width: 450px), (max-height: 750px) {
  .counter-style {
    width: 300px;
    height: 300px;
  }
}
@media (max-width: 320px), (max-height: 600px) {
  .counter-style {
    width: 200px;
    height: 200px;
  }
}
@media (max-width: 220px), (max-height: 500px) {
  .counter-style {
    width: 150px;
    height: 150px;
  }
}
.timer-counter-p {
  z-index: 999;
}
.check-icon {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  animation: 0.4s ease-in check-animation;
  z-index: 999;
}
@keyframes check-animation {
  from {
    opacity: 0;
    transform: translate(-50%, 50%) scale(0) rotate(-360deg);
  }
  to {
    transform: translate(-50%, 50%) scale(1) rotate(0);
    opacity: 1;
  }
}
.check-icon i {
  font-size: 120px;
  color: #4caf50;
}
@media (max-width: 450px), (max-height: 750px){
  .check-icon i {
    font-size: 80px;
  }
}
@media (max-width: 320px), (max-height: 550px) {
  .check-icon i {
    font-size: 50px;
  }
}

.sw-style {
  text-align: center;
}
.large-font {
  font-size: 70px;
}
@media (max-width: 500px) , (max-height: 750px) {
  .large-font {
    font-size: 50px;
  }
}
@media (max-height: 550px) {
  .large-font {
    font-size: 40px;
  }
}
@media (max-width: 360px) {
  .large-font {
    font-size: 35px;
  }
}

.pos-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.hide {
  display: none !important;
}
.rotate {
  transform: rotate(180deg);
}
::selection {
  background-color: var(--orange-color);
  color: var(--black-color);
}

/* Scroll Bar*/
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  ::-webkit-scrollbar {
    position: absolute;
    bottom: 0;
    width: 10px;
    background-color: #171616;
    border-radius: 6px;
}
  ::-webkit-scrollbar-thumb {
    background-color: rgb(136 136 136 / 50%);
    border-radius: 6px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background-color: rgb(136 136 136);
  }
}