﻿body {
  font-family: "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  background: #fff url("images/lotus-bg.png") repeat;
  background-size: 200px auto;
  color: #444;
  margin: 0;
  padding: 0;
}

.header {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  background: linear-gradient(to bottom, #fff, #fce4ec);
  padding: 2px 10px;
  border-bottom: 2px solid #ec407a;
}

.logo-title {
  display: flex;
  align-items: center;
}

.logo {
  height: 50px;
  margin-right: 10px;
}

h1 {
  font-size: 1.5rem;
  color: #ad1457;
  margin: 0;
}

.control-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin: 1rem 2rem;
}

.control-left,
.control-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

.control-left > *,
.control-right > * {
  font-size: 1rem;
  color: #880e4f;
}

.control-left select,
.control-left button,
.control-right > div {
  background: #fff0f6;
  border: 1px solid #ec407a;
  border-radius: 8px;
  padding: 6px 12px;
  color: #ad1457;
}

.control-left button,
.control-right button {
  cursor: pointer;
  transition: background-color 0.2s;
}

.control-left button:hover,
.control-right button:hover {
  background-color: #f48fb1;
}

#word {
  background: #ffffffcc;
  margin: 2rem auto 1rem;
  padding: 1.2rem 1.5rem;
  width: 80%;
  max-width: 600px;
  text-align: center;
  font-size: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(236, 64, 122, 0.2);
  border: 1px solid #f8bbd0;
  color: #d81b60;
}

input[type="text"] {
  width: 70%;
  margin: 0 auto;
  padding: 10px;
  font-size: 1.1rem;
  border: 2px solid #ec407a;
  border-radius: 6px;
  display: block;
}

button {
  background-color: #ec407a;
  color: white;
  border: none;
  padding: 8px 14px;
  margin: 4px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #ad1457;
}

#image {
  display: block;
  margin: 1rem auto;
  max-width: 40%;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


#typing-area {
  margin-top: 20px;
}

.input-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 12px auto;
  width: 100%;
  max-width: 800px;
}

.timer-bar-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.timer-container {
  display: flex;
  align-items: center;
  gap: 8px;
}


.timer-label {
  font-weight: bold;
}

.timer-bar {
  width: 150px;
  height: 20px;
  background-color: #eee;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

#timer-fill {
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, #ff69b4, #ffc0cb);
  transition: width 1s linear;
}

#timer-value {
  min-width: 50px;
}


.main-layout {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.ad-left {
  width: 500px;
  background-color: #f8f8f8;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 8px 4px;
  font-size: 12px;
}

.ad-box {
  width: 100%;
  text-align: center;
}

.game-area {
  flex-grow: 1;
  overflow-y: auto;
  min-width: 300px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
}

.ad-footer {
  margin-top: 20px;
  padding: 10px 0;
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  text-align: center;
}

.ad-footer .ad-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

.ad-footer img {
  max-height: 80px;
  height: auto;
  max-width: 160px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
