body {
  font-family: 'Product Sans', sans-serif;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  flex-direction: column;
  overflow: hidden;
}

.container {
  text-align: center;
  width: 100%;
  max-width: 600px;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
}

.logo { font-size: 64px; margin-bottom: 30px; letter-spacing: -2px; }
.logo span:nth-child(1){color:#4285F4;}
.logo span:nth-child(2){color:#EA4335;}
.logo span:nth-child(3){color:#FBBC05;}
.logo span:nth-child(4){color:#34A853;}
.logo span:nth-child(5){color:#4285F4;}
.logo span:nth-child(6){color:#EA4335;}
.logo span:nth-child(7){color:#FBBC05;}
.logo span:nth-child(8){color:#34A853;}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #dfe1e5;
  border-radius: 24px;
  padding: 0 8px;
  background: white;
  transition: box-shadow 0.2s ease;
  z-index: 1;
  flex-wrap: nowrap;
}

.search-container:focus-within { box-shadow: 0 1px 6px rgba(32,33,36,0.28); }

#search-input {
  flex: 1;
  height: 44px;
  border: none;
  outline: none;
  font-size: 16px;
  padding: 0 8px;
  min-width: 50%;
}

.search-icon { color: #9aa0a6; font-size: 20px; margin-right: 8px; }

.icons-right {
  display: flex;
  gap: 8px;
  align-items: center;
}

.material-icons {
  cursor: pointer;
  color: #5f6368;
  font-size: 24px;
}

#history-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  background: white;
  border: 1px solid #dfe1e5;
  border-radius: 0 0 8px 8px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
}

#history-list li { padding: 8px 16px; cursor: pointer; }
#history-list li:hover { background: #f1f3f4; }

.mode-btn {
  background: #e8f0fe;
  color: #1967d2;
  border: none;
  border-radius: 20px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

.buttons {
  margin-top: 30px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.buttons button {
  padding: 10px 20px;
  border: none;
  background: #f8f9fa;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}
.buttons button:hover { border: 1px solid #dadce0; }

.floating-keyboard-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #e8f0fe;
  color: #1967d2;
  border: none;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 2000;
}

.keyboard {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #f1f3f4;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 5px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
  max-height: none;
  overflow: hidden;
  z-index: 1500;
}

.keyboard button {
  padding: 12px 0;
  background: white;
  border: 1px solid #d1d1d1;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
  user-select: none;
}

.keyboard button:active { background: #e8f0fe; }
.hidden { display: none; }

@media (max-width:600px){
  .keyboard { grid-template-columns: repeat(10, 1fr); }
  .keyboard button { font-size:14px; padding:10px 0; }
  .mode-btn { font-size: 11px; padding: 5px 8px; }
}

@keyframes wave {
  0% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-5px) rotate(-5deg); }
  50% { transform: translateY(0px) rotate(0deg); }
  75% { transform: translateY(5px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.logo span.animate {
  display: inline-block;
  animation: wave 0.6s ease-in-out;
}
