/* CasinoWel — responsive layout for phones & tablets */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img, video, canvas, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

#skin_img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile nav toggle (hidden on desktop) */
.cw-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: calc(100% - 24px);
  max-width: 788px;
  margin: 8px auto;
  padding: 12px 14px;
  border: 1px solid #af7c41;
  background: linear-gradient(180deg, rgba(175,124,65,.25), rgba(0,0,0,.55));
  color: #f2cf5c;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
}

.cw-nav-toggle-bars {
  display: inline-block;
  width: 18px;
  height: 12px;
  position: relative;
}
.cw-nav-toggle-bars:before,
.cw-nav-toggle-bars:after,
.cw-nav-toggle-bars i {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #f2cf5c;
}
.cw-nav-toggle-bars:before { top: 0; }
.cw-nav-toggle-bars i { top: 5px; display: block; }
.cw-nav-toggle-bars:after { bottom: 0; }

/* Forms / tables general */
.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="number"],
.form textarea,
.form select,
input.text,
textarea.textarea {
  max-width: 100%;
  box-sizing: border-box;
}

table {
  max-width: 100%;
}

/* ========== Tablet ≤ 900px ========== */
@media screen and (max-width: 900px) {
  body {
    overflow-x: hidden;
  }

  #top,
  #container,
  #common_footer,
  #main_only,
  #menu_holder {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  #top {
    height: auto !important;
    min-height: 90px;
    background-size: cover !important;
    background-position: center right !important;
    padding: 0 8px;
  }

  #top canvas,
  #canvas {
    max-width: 200px !important;
    width: 180px !important;
    height: auto !important;
  }

  #top #curr {
    width: auto !important;
    margin-top: 8px !important;
  }

  #top #curr img {
    max-height: 22px;
    width: auto;
  }

  .cw-nav-toggle {
    display: inline-flex;
  }

  #menu_holder {
    height: auto !important;
    margin: 0 !important;
    padding: 0 8px 8px;
  }

  #menu_holder.is-closed #menu {
    display: none !important;
  }

  #menu {
    display: flex !important;
    flex-direction: column;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #0a1624;
    border: 1px solid rgba(175,124,65,.45);
    box-sizing: border-box;
  }

  #menu li {
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  #menu li a,
  #menu a {
    display: block !important;
    width: auto !important;
    float: none !important;
    padding: 12px 14px !important;
    background: transparent !important;
    color: #f2cf5c !important;
    text-align: left !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    white-space: normal !important;
  }

  #menu_holder > #menu + *,
  #menu_holder {
    font-size: 0; /* hide trailing &nbsp; text nodes visually */
  }
  #menu {
    font-size: 14px;
  }

  #container {
    padding: 8px 12px 24px !important;
  }

  #index_right,
  #bonusmoreinfo {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 12px 0 !important;
  }

  #flags {
    position: relative !important;
    float: none !important;
    width: 100% !important;
    margin: 8px 0 12px !important;
    text-align: right;
    z-index: 60;
  }

  .cw-lang-btn {
    min-width: 120px;
  }

  .cw-lang-menu {
    right: 0;
    left: auto;
    max-height: 50vh;
  }

  /* Contact / legacy forms */
  .form,
  form.form {
    width: 100% !important;
    max-width: 100%;
  }

  .form label {
    display: block;
    margin-bottom: 4px;
  }

  .form input.text,
  .form textarea.textarea,
  .form .btn {
    width: 100% !important;
    max-width: 100%;
  }

  h1 {
    font-size: 22px !important;
    line-height: 1.25;
    word-wrap: break-word;
  }
}

/* ========== Phone ≤ 600px ========== */
@media screen and (max-width: 600px) {
  #top {
    min-height: 72px;
    padding: 4px;
  }

  #top canvas,
  #canvas {
    max-width: 140px !important;
    width: 140px !important;
  }

  #top #curr {
    display: none; /* currency icons clutter small screens */
  }

  .cw-nav-toggle {
    width: calc(100% - 16px);
    margin: 6px auto;
    padding: 11px 12px;
  }

  #container {
    padding: 6px 10px 20px !important;
  }

  #flags {
    text-align: left;
  }

  .cw-lang-btn span {
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Marquee / news block */
  marquee,
  MARQUEE {
    width: 100% !important;
    max-width: 100% !important;
    height: 140px !important;
  }

  /* Registration / tables */
  table[width],
  table[border] {
    width: 100% !important;
  }

  input[type="text"],
  input[type="password"],
  input[type="email"],
  input[type="submit"],
  textarea,
  select {
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* ========== Small phone ≤ 380px ========== */
@media screen and (max-width: 380px) {
  #top canvas,
  #canvas {
    max-width: 120px !important;
    width: 120px !important;
  }

  h1 {
    font-size: 18px !important;
  }
}

/* Prefer landscape tablets still get flexible width */
@media screen and (min-width: 901px) and (max-width: 1100px) {
  #top,
  #container,
  #common_footer,
  #main_only {
    width: 96% !important;
    max-width: 960px !important;
  }
}
