@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Unbounded:wght@200..900&display=swap');

@font-face {
  font-family: myFont;
  /* set name */
  src: url(../font/Akira.otf);
  /* url of the font */
  font-weight: 500;
}

h1 {
  font-family: myFont, Atboard3 !important;
}

#display,
button {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}

* {
  margin: 0;
  padding: 0;
  font-family: "Unbounded", sans-serif;
  box-sizing: border-box;
}

body {

  height: 100vh !important;
  overflow: hidden;
}

.logo {
  top: 2%;
  left: 5%;
  padding: 15px;
  background: #b4b4b456;
  border-radius: 50px;
  position: absolute;
  display: flex;
  z-index: 6;
}

.logo img {
  margin: 0 10px;
}

.logo .logo_undip {
  width: 40px;
  height: max-content;
}

.logo .logo_hmtli {
  width: 50px;
  height: max-content;
}

.logo .logo_decibel {
  width: 40px;
}

.logo .spektrum {
  width: 30px;
}

.sec_container {
  width: 100vw;
  height: 100vh !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background-image: url(../img/background.PNG);
  background-size: cover;
  background-position: center;
  position: relative;
}

.sec_container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(75, 74, 74, 0.116);
  z-index: 0;
  pointer-events: none;
}


h1 {
  margin: 50px 0 15px;
  font-size: 3em;
  font-family: "Unbounded", sans-serif;
  color: #f5f5f5;
  text-shadow: 2px 2px 8px rgba(75, 75, 75, 0.788);
  font-weight: 600;
  letter-spacing: 5px;
  z-index: 6;
}

h3 {
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 2px 2px 8px rgba(75, 75, 75, 0.788);
  font-family: "Unbounded", sans-serif;
  letter-spacing: 5px;
  z-index: 6;
}
h5 {
  letter-spacing: 2px;
  font-size: 3em;
  color: #fff129;
  margin-top: 40px;
  font-family: "Unbounded", sans-serif;
  letter-spacing: 5px;
  text-shadow: 0px 0px 15px rgba(160, 149, 88, 0.842);
  z-index: 6;
}

.h3ii {
  margin-bottom: 540px;
}

#display {
  font-family: 'Courier New', Courier, monospace !important;
  font-weight: bold;
  font-size: 5em;
  width: 580px;
  text-align: center;
  white-space: nowrap;
  outline: none;
  color: #fff;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  background-color: #919191af;
  padding: 15px 0;
  border-radius: 20px;
  margin: 50px auto 0;
  z-index: 1;
  transition: none !important;
  line-height: 1;
  letter-spacing: 0.03em;
  cursor: text;
  cursor: text;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  position: relative;
  z-index: 2;
}

#display[contenteditable="false"] {
  cursor: default;
  outline: none;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.9;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.pulse {
  animation: pulse 0.5s infinite;
}
@keyframes blang {

  100% {
  background-color: #202020af;
  }
}

.blang {
  animation: blang 0.2s;
}

.content_tim {
  width: 100%;
  margin-top: 40px;
  display: flex;
  align-content: center;
  justify-content: center;
}

h2 {
  color: #fff;
  margin: auto;
  font-size: 4em;
}

.content_tim1,
.content_tim2 {
  display: inline-block;
  width: 400px;
  max-width: 500px;
  padding: 50px 20px;
  border-radius: 25px;
  margin: auto;
  text-align: center;
  transition: width 0.25s ease;
  box-shadow:
    0 0 6px rgba(255, 95, 109, 0.4),
    0 0 10px rgba(0, 201, 255, 0.3),
    0 0 14px rgba(146, 254, 157, 0.3);
}

.content_tim1 {
  background-color: #0151c9;
}

.content_tim2 {
  background-color: #cf0000;
}

.content_tim1 input,
.content_tim2 input {
  width: auto;
  min-width: 200px;
  max-width: 100%;
  font-size: 30pt;
  font-weight: 600;
  letter-spacing: 2px;
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  color: #fff;
  padding: 10px 10px 5px;
  text-align: center;
  background: none;
  outline: none;
  border: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@keyframes subtleGlow {
  0% {
    box-shadow:
      0 0 4px rgba(255, 255, 255, 0.2),
      0 0 8px rgba(100, 200, 255, 0.15);
  }

  50% {
    box-shadow:
      0 0 6px rgba(255, 255, 255, 0.3),
      0 0 12px rgba(100, 200, 255, 0.25);
  }

  100% {
    box-shadow:
      0 0 4px rgba(255, 255, 255, 0.2),
      0 0 8px rgba(100, 200, 255, 0.15);
  }
}

.content_tim1,
.content_tim2 {
  /* Hapus animasi lama */
  animation: subtleGlow 6s infinite ease-in-out;
  transition: box-shadow 0.4s ease;
}

.content_tim1:hover {
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.3),
    0 0 12px rgba(100, 200, 255, 0.3);
}

.content_tim2:hover {
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.3),
    0 0 12px rgba(255, 150, 150, 0.3);
}

.content_button {
  margin-top: 50px;
}

button {
  padding: 5px 10px;
  font-size: 12px;
  margin: 5px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  outline: none;
  z-index: 1;
}

button:hover {
  transform: scale(1.05);
  opacity: 1;
}

#start {
  background: linear-gradient(135deg, #4caf4f04, #1b5e20);
  color: white;
}

#pause {
  background: linear-gradient(135deg, #ff990000, #e65100);
  color: white;
}

#reset {
  background: linear-gradient(135deg, #f4433600, #b71c1c);
  color: white;
}

.content_tim_start {
  width: 100%;
  height: 100%;
  display: flex;
  margin-top: -1px;
  align-content: center;
  justify-content: center;
  position: absolute;
  background-color: #77777717;
  transform: translate(0, -50%);
  top: 50%;
  padding-top: 300px;
  z-index: 5;
}

h4 {
  font-size: 3em;
  color: #fff129;
  margin-bottom: 150px;
  position: absolute;
  background-color: #999999;
  border-radius: 20px;
  padding: 10px 30px;
  letter-spacing: 5px;
  text-shadow: 2px 2px 8px rgba(214, 199, 115, 0.788);
  z-index: 6;
}

.vs {
  width: 200px !important;
  height: max-content !important;
  transform: translate(0, -50%);
  top: 50%;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(0, 149, 255, 0.89)) drop-shadow(0 0 10px rgba(255, 50, 50, 0.89));
  animation: vs-glow 2s infinite alternate;
}

@keyframes vs-glow {
  0% {
    filter: drop-shadow(0 0 5px rgba(0, 150, 255, 0.4)) drop-shadow(0 0 5px rgba(255, 50, 50, 0.4));
  }

  100% {
    filter: drop-shadow(0 0 20px rgba(0, 150, 255, 0.8)) drop-shadow(0 0 20px rgba(255, 50, 50, 0.8));
  }
}

/* Jika ingin efek lebih dramatis */
.vs:hover {
  filter: drop-shadow(0 0 30px rgba(0, 200, 255, 0.9)) drop-shadow(0 0 30px rgba(255, 100, 100, 0.9));
}

.content_tim_start1,
.content_tim_start2 {
  display: inline-block;
  width: 400px;
  max-width: 400px;
  padding: 50px 20px;
  border-radius: 25px;
  margin: auto;
  text-align: center;
  transition: width 0.25s ease;
  box-shadow:
    0 0 6px rgba(255, 95, 109, 0.4),
    0 0 10px rgba(0, 201, 255, 0.3),
    0 0 14px rgba(146, 254, 157, 0.3);
}


.content_tim_start1 {
  background-color: #0151c9;
}

.content_tim_start2 {
  background-color: #cf0000;
}

.content_tim_start1 input,
.content_tim_start2 input {
  width: auto;
  min-width: 200px;
  max-width: 100%;
  font-size: 30pt;
  font-weight: 600;
  letter-spacing: 2px;
  font-family: 'Rajdhani', 'Segoe UI', sans-serif;
  color: #e4e4e4;
  padding: 10px 10px 5px;
  text-align: center;
  background: none;
  outline: none;
  border: none;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

@keyframes subtleGlow {
  0% {
    box-shadow:
      0 0 4px rgba(255, 255, 255, 0.2),
      0 0 8px rgba(100, 200, 255, 0.15);
  }

  50% {
    box-shadow:
      0 0 6px rgba(255, 255, 255, 0.3),
      0 0 12px rgba(100, 200, 255, 0.25);
  }

  100% {
    box-shadow:
      0 0 4px rgba(255, 255, 255, 0.2),
      0 0 8px rgba(100, 200, 255, 0.15);
  }
}

.content_tim_start1,
.content_tim_start2 {
  /* Hapus animasi lama */
  animation: subtleGlow 6s infinite ease-in-out;
  transition: box-shadow 0.4s ease;
}

.content_tim_start1:hover {
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.3),
    0 0 12px rgba(100, 200, 255, 0.3);
}

.content_tim_start2:hover {
  box-shadow:
    0 0 6px rgba(255, 255, 255, 0.3),
    0 0 12px rgba(255, 150, 150, 0.3);
}

.d-none {
  display: none !important;
}