:root {
  --bg-dark-rgb: 22, 20, 24;
  --bg-dark: #161418;
  --bg-light-dark-rgb: 25, 25, 25;
  --bg-light-dark: #191919;
  --text-main: #fff;
  --accent: #ffa726;
  --btn-bg: #232220;
  --card-bg: #232220;
  --quote-color: #ffd180;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  width: 100%;
}

body {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Montserrat', Arial, sans-serif;
  box-sizing: border-box;
  min-width: 380px;
  max-width: 1440px;
  min-height: 455px;
  margin: auto;
}

h2 {
  text-align: center;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

header.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  min-width: 380px;
  max-width: 1440px;
  padding: 1rem 1rem;
  background-color: var(--bg-dark);
  background: linear-gradient(0deg, rgba(var(--bg-dark-rgb), 0) 0%, rgba(var(--bg-dark-rgb), 0.9) 15%, rgba(var(--bg-dark-rgb), 1) 25%, rgba(var(--bg-dark-rgb), 1) 100%);
  z-index: 2;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hamburger-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: flex-start;
}

.hamburger-btn img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 1px #0008);
}

.hamburger-btn:hover img {
  filter: brightness(1.2);
}

.logo {
  background-image: url("/img/icons/logo.png") ;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.main-header .logo {
  width: 64px;
  height: 64px;
  border-radius: 0;
  box-shadow: none;
  filter: none;
}

main {
  min-height: 100%;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  padding: calc(2rem + 64px) 1rem 2rem;
}

main .hero {
  width: 100%;
  height: 15vh;
  display: flex;
  flex-flow: column nowrap;
  align-items: center;
  justify-content: center;
}


/* ====== SIDE DRAWER ====== */
.side-drawer {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-light-dark);
  z-index: 2000;
  transform: translateX(-101%);
  transition: transform 0.25s cubic-bezier(.77,0,.18,1);
  box-shadow: 2px 0 28px #0007;
}

.side-drawer.open {
  transform: translateX(0);
}

.close-drawer {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.side-drawer .header {
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 15px;
}

.side-drawer .logo {
  width: 50px;
  height: 50px;
}

.side-drawer .side-nav {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 28px;
  padding-left: 36px;
}

.side-drawer .nav-link, .side-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.08rem;
  transition: color 0.18s;
  padding: 0;
  display: block;
}

.side-nav .nav-link.active, .side-nav .nav-link:focus, .side-nav .nav-link:hover {
  color: var(--accent);
}

/* ====== MAIN PAGE ====== */

/* ====== SEARCH ====== */
.search-section {
  position: relative;
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 1.5rem auto;
}

.search-box {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  width: 100%;
  display: flex;
  align-items: center;
}

.search-box input {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.14rem;
  outline: none;
  width: 100%;
}

.search-box button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.35rem;
  margin-left: 0.7rem;
  cursor: pointer;
  opacity: 0.8;
}

.city-list {
  position: relative;
  top: 0;
  background: #232220;
  border-radius: 16px;
  width: 100%;
  margin: 1rem auto 1rem auto;
  box-shadow: 0 2px 10px #0002;
  overflow: hidden;
  z-index: 1;
}


.city-item {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.3rem;
  border-bottom: 1px solid #333;
  font-size: 1.07rem;
  cursor: pointer;
  transition: background 0.13s;
}

.city-item:last-child { border-bottom: none; }
.city-item:hover { background: #292727; }

.city-flag {
  margin-right: 0.5rem;
  font-size: 1.4rem;
}

.city-list .city-flag {
  margin-left: 1rem;
}

.share-section{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.copy-status {
  text-align: center;
  margin-top: -1rem;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--accent);
}

.main-photo {
  width: 100%;
  min-height: 250px;
  flex: 3 0 auto;
  background-size: contain;
}

.clock-photo {
  background: url("/img/watches/watch-bcg.png") no-repeat center;
  background-size: contain;
}

.world-photo {
  background: url("/img/images/world.png") no-repeat center;
  background-size: contain;
}

/* ====== WATCHES LIST ====== */
.watches-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  margin: auto;
  padding: 0 0.5rem;
  box-sizing: border-box;
  gap: 2.2rem 2.2rem;
}

/* ====== WATCH CARD ====== */
.watch-card {
  flex: 0 0 400px;
  display: grid;
  grid-template-columns: 58% 42%;
  min-width: 350px;
  min-height: 300px;
  width: 370px;
  height: 300px;
  max-width: 370px;
  max-height: 300px;
  border-radius: 22px;
  background: var(--card-bg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 2px 10px #0001;
}

.watch-card-left {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  padding-right: 0;
}

.watch-icon {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  background: url('/img/watches-w-logo/watch-w-logo1.png') no-repeat center/cover;
  border-radius: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  max-width: 310px;
  min-width: 170px;
  position: relative;
}

.watch-face-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.watch-am {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
}

.watch-digit-img {
  height: 53px;
  object-fit: contain;
  filter: drop-shadow(0 0 4px #0007);
  vertical-align: middle;
  margin-left: -2.5px;
  margin-right: -2.5px;
}

.watch-divider-img {
  width: 20px;
  min-width: 13px;
  max-width: 22px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 3px #0007);
}

.watch-ampm-img {
  width: 44px;
  height: 28px;
  object-fit: contain;
}

.watch-digits {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;
  gap: 0;
  width: auto;
  justify-content: center;
  pointer-events: none;
}

/* ====== WATCH CARD RIGHT ====== */
.watch-card-right {
  position: relative;
  display: flex;
  flex-flow: column nowrap;
  width: 100%;
  height: 100%;
  min-height: 100%;
  padding: 1rem 1rem 1rem 0.5rem;
}

.watch-card-right .top-section {
  display: flex;
  flex: 1;
  align-items: flex-start;
}

.watch-card-right .middle-section {
  flex: 2;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.watch-card-right .bottom-section {
  flex: 1;
  display: flex;
  flex-flow: column nowrap;
  justify-content: end;
  align-items: end;
}

.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 1;
}

.city-row {
  display: flex;
  flex-flow: row;
  align-items: center;
}

.city-label {
  display: flex;
  align-items: center;
  gap: 0.15em;
  font-size: 1.13rem;
  font-weight: 700;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.city-name {
  font-weight: 700;
  letter-spacing: 0.01em;
}

.day-icon {
  width: 34px;
  height: 34px;
}

.daynight-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 2px #0008);
}

.remove-watch {
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  font-size: 1.85em;
  color: #fff;
  opacity: 0.85;
  cursor: pointer;
  transition: color 0.18s;
  line-height: 1;
  padding: 0;
}

.remove-watch img {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
  filter: brightness(0.87) grayscale(0.2);
  transition: filter 0.18s;
}

.remove-watch:hover img {
  filter: brightness(1.15) drop-shadow(0 0 4px #ff6b6b);
}

.change-watch {
  color: var(--accent);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ====== BUTTONS & PHOTO ====== */
.share-btn {
  background: var(--btn-bg);
  color: #fff;
  border-radius: 13px;
  padding: 0.75rem 2rem;
  border: none;
  font-size: 1.15rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  margin: 1.5rem auto;
  justify-content: center;
}

.share-meeting {
  flex-basis: 100%;
  margin-top:1.1em;
  background: var(--accent);
  font-weight:bold;
  font-size:1.1em;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:0.4em;
  padding:1em 0;
  border-radius:10px;
}

.add-watch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2rem auto 0;
  background: var(--btn-bg);
  border-radius: 16px;
  width: 62px;
  height: 62px;
  font-size: 2.3rem;
  color: var(--accent);
  border: none;
  cursor: pointer;
  box-shadow: 0 1px 6px #0003;
  transition: background 0.13s;
}
.add-watch-btn:hover { background: #292727; }
.watch-sun { font-size: 1.3rem; margin-right: 0.4em; }
.watch-moon { font-size: 1.2rem; margin-right: 0.4em; }

/* ====== WATCH SELECTOR PAGE/OVERLAY ====== */
.watch-selector {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 2;
  background: var(--bg-dark);
  flex-direction: column;
  align-items: center;
  padding: 80px 1rem 2rem;
  overflow: auto;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.watch-back-btn {
  position: absolute;
  top: 24px;
  left: 22px;
  background: var(--btn-bg);
  color: #fff;
  border: none;
  font-size: 1.14rem;
  font-weight: 600;
  padding: 9px 24px;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 2px 8px #0002;
  z-index: 99;
  transition: background 0.14s;
}

.watch-back-btn:hover { background: #2a2826; }
.watch-selector .selector-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.selector-content h2 {
  margin-top: 16px;
  font-weight: 400;
  letter-spacing: 0.01em;
  font-size: 1.21rem;
}

.crafted-large {
  font-size: 2.8rem;
  color: #fff;
  text-align: center;
  margin: 24px 0 0 0;
  letter-spacing: 0.04em;
}

.crafted-large .swiss-flag {
  margin-left: 0.7em;
  width: 29px;
  height: 29px;
  vertical-align: middle;
}

.selector-watches {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  /*gap: 34px 24px;*/
  gap: 2.2rem 2.2rem;
  margin: 32px 0 0 0;
  justify-content: center;
  max-width: 400px;
}

.selector-logo-img {
  display: inline-block;
  vertical-align: middle;
  width: 146px;
  margin-left: 0.4em;
  border-radius: 8px;
  box-shadow: 0 1px 8px #0002;
  padding-bottom: 10px;
}

.selector-watches .watch-opt[data-style="watch-1"] img {
  width: 150px; /* or match the size of the others */
  max-width: 90%;
  height: auto;
}

.watch-opt {
  background: #232220;
  border-radius: 22px;
  padding: 22px 20px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 310px;
  min-height: 210px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 9px #0002;
  transition: box-shadow 0.17s, transform 0.12s;
}

.watch-opt.selected {
  cursor: default;
}

.watch-opt.selected,
.watch-opt:hover {
  box-shadow: 0 2px 18px #ffa72633, 0 1.5px 10px #0003;
  transform: translateY(-4px) scale(1.027);
}

.watch-opt img {
  width: 120px;
  height: auto;
  display: block;
  margin-bottom: 12px;
  filter: drop-shadow(0 1px 8px #0005);
}

.watch-opt-label {
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  position: absolute;
  right: 19px;
  bottom: 17px;
  letter-spacing: 0.01em;
  background: none;
  border-radius: 7px;
  padding: 0 7px;
}

.watch-opt.selected .watch-opt-label {
  color: #fff;
  background: none;
  font-size: 1.07rem;
  right: 19px;
  bottom: 17px;
}


/* ------------------ Your clock -----------------k*/

.meeting-title {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 2.2rem;
  margin-top: 2.5rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* --- PARTICIPANTS LIST --- */
.participants-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  margin-bottom: 0.7rem;
}

.participant-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.2rem 1.4rem 0.9rem 1.4rem;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 1px 8px #0002;
  display: flex;
  flex-direction: column;
  position: relative;
  margin-bottom: 0.2em;
}

.participant-header {
  display: flex;
  align-items: center;
  gap: 0.7em;
  margin-bottom: 0.7em;
  position: relative;
}

.participant-flag {
  font-size: 1.6em;
  margin-right: 0.23em;
}

.participant-city {
  font-weight: 700;
  font-size: 1.23em;
  letter-spacing: 0.01em;
}

.remove-participant-btn {
  position: absolute;
  right: -0.5rem;
  background: none;
  border: none;
  font-size: 1.85em;
  color: #fff;
  opacity: 0.85;
  cursor: pointer;
  transition: color 0.18s;
  line-height: 1;
  padding: 0.09em 0.3em;
  display: flex;
  align-items: center;
}

.remove-participant-btn img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  filter: brightness(0.87) grayscale(0.2);
  transition: filter 0.18s;
}

.remove-participant-btn:hover img {
  filter: brightness(1.15) drop-shadow(0 0 4px #ff6b6b);
}

.time-range-row {
  display: flex;
  align-items: center;
  gap: 0.65em;
  margin-bottom: 0.1em;
}

.time-range-row label {
  font-size: 1.09em;
  color: #eee;
  margin-right: 0.09em;
  font-weight: 500;
  min-width: 2.6em;
}

.time-select {
  appearance: none;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 12px;
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 400;
  width: 50px;
  height: 40px;
  margin-right: 0.35em;
  outline: none;
  box-sizing: border-box;
  transition: border 0.18s, box-shadow 0.15s;
  padding: 0.1em 0.1em 0.1em 0.4em;
  background-image: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 13L16 21L24 13' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 16px 16px;
  padding-left: 0.7em;
}

.time-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 2px var(--accent);
}

.time-select option {
  background: var(--card-bg);
  color: #fff;
  font-size: 0.95em;
}

.am-pm-btn {
  margin: 0 0.10em;
  padding: 0.21em 0.92em;
  border-radius: 9px;
  background: #282828;
  color: var(--accent);
  border: none;
  font-size: 1.08em;
  cursor: pointer;
  font-weight: 600;
  outline: none;
  transition: background 0.17s, color 0.16s;
}

.am-pm-btn.selected, .am-pm-btn:focus {
  background: var(--accent);
  color: #232220;
}

/* --- SEARCH BLOCK and ADD BUTTON --- */
.participants-section {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- ADD PARTICIPANT BUTTON --- */
.add-participant-btn {
  background: var(--btn-bg);
  color: var(--accent);
  font-size: 2.38rem;
  border: none;
  border-radius: 16px;
  width: 63px;
  height: 63px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto 1.0rem auto;
  cursor: pointer;
  box-shadow: 0 1px 8px #0003;
  transition: background 0.13s;
}

.add-participant-btn:hover {
  background: #292727;
  color: #fff2;
}

/* --- SUBMIT BUTTON --- */
.submit-btn {
  width: 97%;
  max-width: 370px;
  margin: 1.5rem auto 1.5rem auto;
  display: block;
  padding: 1.14rem 0;
  background: var(--accent);
  color: #161418;
  border: none;
  border-radius: 17px;
  font-size: 1.18rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px #0001;
  transition: background 0.15s;
}

.submit-btn:hover {
  background: #ffd180;
  color: #232220;
}

/* --- RESULTS BLOCK --- */
#results-block {
  max-width: 860px;
  color: #fff;
}

#results-block > div:first-child {
  font-size: 1.13rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

hr {
  border: none;
  border-top: 2px solid #2c2a2f;
  margin-bottom: 1.5em;
}

.meeting-block {
  /*background: var(--card-bg);*/
  border-radius: 16px;
  margin: 1.3rem 0;
  padding: 1.2rem 0;
  box-shadow: 0 2px 12px #0002;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.meeting-title-row {
  font-size: 1.19rem;
  margin-bottom: 0.8em;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  flex-basis: 100%;
}

/* --- WORLD CLOCK STYLE WATCH CARD --- */

.city-name {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 15px;
}

.city-actions {
  display: flex;
  align-items: center;
  margin-left: 1.3em;
}


/* ---------------- ABOUT -------------- */

main.about-us {
  text-align: center;
}

main.about-us .content {
  flex: 1;
}

main.about-us .hero {
  flex: 1
}

.about-quote {
  color: var(--quote-color);
}

.about-quote-author {
  font-size: 1.04em;
  font-style: normal;
  color: #bbb;
  font-weight: 400;
}

.about-text {
  font-size: 1.12rem;
  line-height: 1.6;
  margin-bottom: 10.7em;
  margin-top: 3em;
  font-weight: 400;
  color: #fff;
}

.about-us .footer .logo  {
  margin: auto;
  width: 4rem;
  aspect-ratio: 1;
}


/* ----------------- UTILITY ----------- */
.no-scroll {
  overflow: hidden;
}

.hidden {
  display: none;
}

@media (min-width: 481px) {
  .meeting-block {
    padding: 1.2rem 0.8rem;
  }
}


@media (min-width: 861px) {
  html {
    font-size: 18px;
  }

  .watches-list {
    max-width: 860px;
    margin: auto;
    gap: 2.2rem 2.2rem;
  }

  .search-section {
    max-width: 400px;
  }

  .selector-watches {
    max-width: 860px;
  }

  .side-drawer {
    max-width: 350px;
  }
}
