/* ==========================================================
   burgersandwich.jp — shared stylesheet
   Link from every page with:
   <link rel="stylesheet" href="/style.css">
   ========================================================== */

/* ---------- Site colors (change them once here) ---------- */
:root {
  --bg: #EDD5AF;
  --text: #317F7F;
  --link: #316563;
  --link-visited: #000080;
  --link-active: #6330FF;
}

/* ---------- Base page ---------- */
body {
  font-family: Meiryo, "Yu Gothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  background-color: var(--bg);
  color: var(--text);
  text-align: left;
}

a:link    { color: var(--link); }
a:visited { color: var(--link-visited); }
a:active  { color: var(--link-active); }

/* ---------- Headings ---------- */
.title-big   { font-size: 60px; }
.title-small { font-size: 20px; }

/* ---------- Buttons ---------- */
.btn {
  width: 250px;
  height: 60px;
  font-size: 18px;
}

.btn-wide {
  width: 550px;
  max-width: 100%;
  height: 60px;
  font-size: 30px;
}

.center-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ---------- Exchange rate (top right) ---------- */
#rate {
  position: fixed;
  top: 5px;
  right: 10px;
  font-weight: bold;
  font-size: 24px;
}

/* ---------- Visitor counter ---------- */
#count {
  font-size: 22px;
  font-weight: bold;
}

/* ---------- Embedded chat ---------- */
.chat-frame {
  width: 768px;
  max-width: 100%;
  height: 500px;
  border: 0;
}

/* ---------- Bottom advertisement ---------- */
#ad {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 9999;
  pointer-events: none;
}

#adBox {
  display: inline-block;
  position: relative;
  max-width: 100%;
  pointer-events: auto;
}

#adBox img {
  display: block;
  max-width: 100%;
  max-height: 15vh;
  width: auto;
  height: auto;
}

#adClose {
  position: absolute;
  top: 0;
  right: 0;
  cursor: pointer;
  font-weight: bold;
}

@media (max-width: 600px) {
  #adBox {
    display: block;
    width: 100%;
  }
  #adBox img {
    width: 100%;
    max-height: none;
  }
}
