
@import url("https://fonts.googleapis.com/css2?family=Intel+One+Mono:ital,wght@0,300..700;1,300..700&family=Kablammo&family=Miniver&family=My+Soul&family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Oswald:wght@200..700&family=Poppins:ital,wght@0,100;0,400;0,600;0,800;1,400;1,500;1,700;1,800&family=Sour+Gummy:ital,wght@0,100..900;1,100..900&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--font-family2);
}
:root {
  --bg-color: #113f67;
  --sec-color: #38598b;
  --thi-color: #a2a8d3;
  --for-color: #e7eaf6;

  --font-xs: 0.8rem; /* 8px */
  --font-sm: 1rem; /* 10px */
  --font-base: 2rem; /* 16px */
  --font-md: 2.5rem; /* 18px */
  --font-lg: 3rem; /* 20px */
  --font-xl: 3.5rem; /* 24px */
  --font-2xl: 4rem; /* 30px */
  --font-3xl: 4rem; /* 30px */
  --font-4xl: 6rem; 
  --font-clock: 10rem; 
  --font-clock-mobile: 8rem; 

  --font-5xl: 20rem;

  --font-family1: "Kablammo", system-ui;
  --font-family2: "Sour Gummy", sans-serif;

  --color-primary: #2563eb; /* Blue-600 */
  --color-primary-light: #60a5fa; /* Blue-400 */
  --color-primary-dark: #0d2576; /* Blue-800 */
  --color-black: #000;
  --color-white: #fff;

  /* mobile font sizes*/
   --fs-mobile-xs: 1.2rem;   /* 12px - captions, helper text */
  --fs-mobile-sm: 1.4rem;   /* 14px - small text, labels */
  --fs-mobile-base: 1.6rem; /* 16px - body text */
  --fs-mobile-md: 1.8rem;   /* 18px - emphasis text */
  --fs-mobile-lg: 2rem;     /* 20px - subheadings */
  --fs-mobile-xl: 2.4rem;   /* 24px - section headings */
  --fs-mobile-xxl: 3rem;    /* 30px - hero titles */
}
html {
  font-size: 62.5%;
  color: var(--for-color);
}

main {
  width: 100%;
  height: 100vh;
  background-color: var(--bg-color);
  position: relative;
}
header {
  width: 100%;
  height: 10rem;
  border: 1px solid white;
  display: grid;
  /* align-items: center; */
  grid-template-columns: 0.5fr 1fr;
  justify-content: center;
  padding: 1rem;
  background: var(--color-primary-dark);
  /* position: fixed; */
}
header h1 {
  margin-top: 1.3rem;
  text-align: center;
  cursor: pointer;
}
.navbar {
  display: flex;
  list-style: none;
  width: 80%;
  /* border: 1px solid white; */
  font-size: var(--font-md);
  padding: 2.5rem 0 0 0;
  justify-content: end;
  gap: 1.5rem;
}
.navbar li a {
  margin-left: 1rem;
  background: var(--color-primary-dark);
  padding: 0.5rem;
  border-radius: 1rem;
  position: relative;
  text-decoration: none;
  color: var(--color-white);
  font-weight: 500;
  &:hover {
    color: var(--color-primary-dark);
    cursor: pointer;
    background: var(--color-white);
    width: 100%;
  }
}
.navbar li a:after {
  content: "";
  position: absolute;
  bottom: -0.7rem;
  left: 0.4rem;
  width: 0%;
  border-bottom: 0.2rem solid var(--color-white);
  transition: all 0.3s linear;
}
.navbar li a:hover:after {
  width: 90%;
}
.menu-bar{
  display: none;
}
header button {
  display: none;
}
.bgdiv {
  width: 100%;
  height: 100vh;
  border: 1px solid white;
  /* background: var(--thi-color); */
  /* background: linear-gradient(301deg, #ff6bd0 0%, #4c5bcd 100%); */
  background: linear-gradient(301deg, #2483cc 0%, #330e8b 100%);
  display: flex;
  /* flex-direction: column; */
  justify-content: center;
  align-items: center;
  gap: 4rem;
}
.boxdiv {
  width: 60%;
  height: 55rem;
  border: 1px solid var(--color-white);
  /* background: transparent; */
  display: flex;
  flex-direction: column;
  justify-content: baseline;
  align-items: center;
  margin-top: -5rem;
  gap: 1rem;
  border-radius: 2rem;
  box-shadow: 0 0 1rem 0.2rem var(--color-white);
  /* backdrop-filter: blur(10px); */
}

/* stop watch section */

.sw-container {
  padding-top: 13rem;
}
.sw-container h1{
  margin-top: -5rem;
  margin-bottom: 5rem;
}
h1 {
  font-size: var(--font-2xl);
  color: var(--color-white);
  text-shadow: 0 0 0.2rem var(--color-white);
}
button {
  width: 10rem;
  height: 4.8rem;
  margin-top: 2rem;
  margin-left: 1rem;
  border: 0.1rem solid rgb(192, 190, 190);
  border-radius: 1rem;
  font-weight: 600;
  transition: 0.2s ease;
  font-size: var(--font-md);
  text-transform: capitalize;
  box-shadow: 0 0 1rem 0.1rem rgb(129, 128, 135);
  &:hover {
    color: var(--color-white);
    background: var(--color-primary-dark);
    /* background: linear-gradient(301deg, #2483cc 0%, #330e8b 100%); */
    border: none;
    cursor: pointer;
    scale: 1rem;
    font-weight: 600;
    /* background: transparent; */
    box-shadow: none;
  }
}
.time-sw {
  font-size: var(--font-md);
  font-weight: 500;
  color: var(--color-white);
}
.time-sw .timer-p {
  letter-spacing: 0.2rem;
}
.show-sw {
  width: 30%;
  height: 60rem;
  /* border: 1px solid white; */
   border: 1px solid black;
  display: flex;
  align-items: center;
  justify-content: baseline;
  flex-direction: column;
  gap: 1.3rem;
  overflow: scroll;
  scrollbar-width: none;
  padding: 1rem 0;
}
.show-sw h1{
  /* border: 1px solid black; */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  width: 100%;
  text-align: center;
  padding: 1rem 0;
}
.show-times{
  width: 100%;
  /* border: 1px solid white; */
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: baseline;
  gap: 1rem;
  overflow-x: hidden;
  scrollbar-width: none;
  padding: 2rem 0;
  scroll-behavior: smooth;
   box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.show-sw  .bottom-sw{
  width: 100%;
  height: 10rem;
  /* border: 1px solid black; */
  margin: 0;
}
.lichild {
  font-size: xx-large;
  font-weight: 500;
  color: var(--color-white);
  list-style-type: disc;
  background: transparent;
  border: 1px solid white;
  width: 50%;
  text-align: center;
  list-style-type: none;
  padding: 0 2rem;
  box-shadow: 0 0 1rem 0.2rem rgb(255, 254, 254);
  border-radius: 1rem;
}

/* Timer css */
.input-layout {
  gap: 2rem;
  /* border: 1px solid black; */
  padding: 2rem;
  /* position: relative; */
}
label {
  font-size: var(--font-2xl);
  padding-right: 1rem;
  font-weight: 500;
  padding-left: 2.5rem;
  /* display: block; */
}
input {
  width: 10rem;
  height: 4rem;
  padding-left: 0.4rem;
  outline: none;
  font-size: xx-large;
  margin-top: -10rem;
  /* caret-color: transparent; */
  /* hide the blinking vertical line */
  /* background: transparent; */
  text-align: center;
  font-weight: 500;
  &:hover {
    outline: none;
    border: none;
  }
}
input::-webkit-inner-spin-button {
  appearance: none;
}
.time-sw{
  margin-top: -3rem;
}
.timer-p {
  font-size: 10rem;
}

/*Clock*/
.clock-time {
  font-size: var(--font-5xl);
}
.bgdiv-clock {
  width: 100%;
  height: 100vh;
  border: 1px solid white;
  /* background: var(--thi-color); */
  /* background: linear-gradient(301deg, #ff6bd0 0%, #4c5bcd 100%); */
  background: linear-gradient(301deg, #2483cc 0%, #330e8b 100%);
  display: flex;
  /* flex-direction: column; */
  justify-content: center;
  align-items: center;
}
.bgdiv-clock h1 {
  margin-top: -10rem;
  font-size: var(--font-2xl);
}
.clock-time-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* section{display: none;} */

/* Medium Devices (Tablets) */
@media (max-width: 768px) {
  /* Styles for tablets */
  header button{
    display: inline;
  }
  .navbar button{
      margin-top: -.1rem;
      cursor: pointer;
      right: 0;
      display: block;
      position: absolute;
      top: 0;
      margin: 2rem;
      background-color: #2483cc;
      border: none;
  }
  nav .menu-bar{
    display: block;
    align-items: center;
    /* right: 0; */
  }
  .navbar{
  width: 50%;
  height: 100vh;
  background-color: #2483cc;
  position: absolute;
  top: 0;
  left: -400px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content:center;
  gap: 4rem;
  transition: left 0.3s ease;
}
.menu-open-button{
  position: absolute;
  right: 0;
  margin-right: 5rem;
  margin-top: 2.7rem;
}
body.show-menu-mobile .navbar {
  left:0;
  /* display: none; */
}
.bgdiv{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: auto;
  gap: 25rem;
  padding: 30rem 0;
}
.boxdiv{
  width: 80%;
}

.boxdiv .time-sw .stp-timer{
  font-size: var(--font-4xl);
  margin-top: -5rem;
}

/*Timer*/

  .boxdiv .timer-p{
    margin-top: -3rem;
  }

  .input-layout form .form-div{
    width: 100%;
    /* border: 2px solid white; */
    display: flex;
  }

}

/*clock*/
.clock-time-container{
  gap: 10rem;
}
.clock-time-container h1{
      text-shadow: 0 0 2rem  black;
}
  .time-sw .clock-time{
      font-size: var(--font-clock);

  }
/* Small devices (portrait phones, up to 480px) */
@media (max-width: 380px) {

  /*stopwatch*/
.boxdiv .buttons{
  display: flex;
  flex-direction: column;
}
.bgdiv{
  padding-top: 8rem;
  gap:10rem;
}
.boxdiv {
  /* padding-top: 0; */
  justify-content: space-around;
}
.boxdiv .time-sw .timer-p{
  font-size: var(--font-2xl);
}
.boxdiv:nth-child(4){
  margin-top: -3rem;
}


  /*Timer*/

    .form-div label{
      font-size: var(--font-base);
      display: inline-block;
    }
    .form-div input{
      margin-top: 2rem;
      width: 5rem;
    }
    .boxdiv{
      padding-top: 5rem;
    }
    .boxdiv .timer-p{
    margin-top: -3rem;
    font-size: var(--font-4xl);
  }
  .boxdiv .buttons{
    margin-top: -3rem;
  }


  .input-layout form .form-div{
    width: 100%;
    /* border: 2px solid white; */
   display: flex;
  }




  /*clock*/
  .clock-time-container{
    margin-top: 1rem;
    justify-content: space-evenly;
  }
.time-sw .clock-time{
  margin-top: -10rem;
}


   .time-sw .clock-time{
      font-size: var(--font-clock-mobile);

  }

}