@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --bg-color: #e5e4e2;         /* Silver Mist */
  --text-color: #2f2f2f;       /* Dark Graphite */
  --button-bg: #c5c6c7;        /* Soft Platinum */
  --button-hover: #909497;     /* Cool Pewter */
}

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

body {
    font-family: Arial, sans-serif;
    background: #e5e4e2;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 20px;
  }

.nav-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    background-color: var(--button-bg);
    padding: 20px 40px;
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.1); */
  }
  
  .logo {
    font-family: Arial, sans-serif;
    font-size: 1.8em;
    font-weight: bold;
    color: var(--text-color);
    text-decoration: none;
  }

.wrapper {
  width: 430px;
  background: #fff;
  border-radius: 10px;
}

.wrapper h1 {
  font-size: 25px;
  font-weight: 500;
  color: var(--text-color);
  padding: 20px 25px;
  border-bottom: 1px solid #ccc;
}

.wrapper .content {
  margin: 25px 25px 35px;
}

.content .typing-input {
  opacity: 0;
  z-index: -999;
  position: absolute;
}

.content .inputs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.inputs input {
  height: 57px;
  width: 56px;
  margin: 4px;
  color: var(--text-color);
  font-size: 24px;
  font-weight: 500;
  text-align: center;
  background: none;
  border-radius: 5px;
  text-transform: uppercase;
  border: 1px solid #b5b5b5;
}

.inputs input:first-child {
  margin-left: 0px;
}

.content .details {
  margin: 20px 0 25px;
}

.details p {
  font-size: 19px;
  margin-bottom: 10px;
  color: var(--text-color);
}

.content .reset-btn,
.content .start-btn {
  width: 100%;
  outline: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  font-size: 17px;
  padding: 15px 0;
  background: var(--button-bg);
  border-radius: 5px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.content .start-btn {
  width: 50%;
}

.content .reset-btn:hover,
.content .start-btn:hover {
  background: var(--text-color);
  color: var(--bg-color);
  transform: scale(1.03);
}

.content .reset-btn:active,
.content .start-btn:active {
  transform: scale(0.97);
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.popup {
  position: fixed;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border: 2px solid var(--button-bg);
  border-radius: 10px;
  padding: 20px 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  text-align: center;
  font-size: 20px;
  display: none;
}

.popup p {
  margin: 0;
  color: var(--text-color);
  font-weight: 600;
}

.popup.hidden {
  display: none;
}

.popup:not(.hidden) {
  display: block;
}

footer {
    text-align: center;
    margin: 60px 0 20px;
  }