﻿html,
body {
  width: 100vw;
  overflow-x: hidden;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.shake {
  animation: shake 0.5s;
}
.number-button {
  width: 40px;
  height: 40px;
  margin: 2px;
  font-size: 16px;
}

.form-controls {
  width: 50px;
  margin: 2px;
  font-weight: bold; /* 设置文本加粗 */
  color: rgb(220, 20, 60);
}

.number-label {
  margin-right: 10px;
  font-weight: bold;
}

.number-input-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.number-input {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: center;
}

@media (max-width: 576px) {
  .number-input-wrapper {
    display: block;
    text-align: center;
  }

  .number-label {
    display: block;
    margin-bottom: 10px;
    margin-right: 0;
  }

  .number-input {
    justify-content: center;
  }

  .form-control,
  .number-input img {
    margin: 5px 2px;
  }

  /* .form-control {
    width: 40px;
  }*/

  .number-input img {
    width: 24px;
    height: 24px;
  }
}

.no-underline {
  text-decoration: none; /* 取消下划线 */
  color: inherit; /* 使链接颜色继承父元素 */
  cursor: pointer; /* 确保鼠标变为指针，增强用户体验 */

  font-size: 0.9rem;
  height: 30px;
}

.no-underline:hover,
.no-underline:focus {
  text-decoration: none; /* 在悬停和聚焦时也确保没有下划线 */
  /* color: inherit;  可以根据需要改变悬停颜色 */
}

.number-label {
  color: #007bff; /* Bootstrap主题的蓝色 */
  font-size: 1.5rem; /* 大小设置为1.5rem，你可以根据需要调整 */
  /* 其他样式保持不变 */
  width: 60px; /* 或其他尺寸，以匹配输入框 */
  height: 60px; /* 或其他尺寸，以匹配输入框 */
  margin-right: 10px; /* 如果需要在输入框之间添加间距 */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* 最后一个输入框不需要右边距 */
.number-input .form-control:last-child {
  margin-right: 0;
}

/* 序号标签的样式，使其看起来像输入框 */
.number-label {
  background-color: #f8f9fa; /* 使用和输入框相似的背景色 */
  border: 1px solid #ced4da; /* 使用和输入框相似的边框颜色和宽度 */
  margin-right: 10px; /* 与输入框之间的间距 */
}

.lottery-number[data-group="0"] {
  background-color: #eff6ff;
}
.lottery-number[data-group="1"] {
  background-color: #bfdbfe;
}
.lottery-number[data-group="2"] {
  background-color: #eff6ff;
}
.lottery-number[data-group="3"] {
  background-color: #bfdbfe;
}
.lottery-number[data-group="4"] {
  background-color: #eff6ff;
}

.ButtonContainer {
  display: grid;
  width: fit-content;
  width: 90vw;
  max-width: 400px;
  grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
  gap: 5px;
  padding: 4px;

  & > button {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .ButtonContainer {
    max-width: 500px;
  }
}

/* 为了在响应式设计中保持一致，可以添加媒体查询来调整尺寸 */
@media (max-width: 600px) {
  .number-input .form-control,
  .number-label {
    width: 42px;
    height: 42px;
  }
}

@media (min-width: 992px) {
  .number-input .form-control,
  .number-label {
    width: 60px;
    height: 60px;
  }
}

.number-input {
  display: flex;
  justify-content: center;
  text-align: center;
}

.form-control {
  max-width: 300px; /* 或更多，视设计而定 */
  height: 60px;
  margin-right: 10px; /* 添加间距 */
  /* 其他样式... */
}

.form-control:last-child {
  margin-right: 0; /* 移除最后一个元素的间距 */
}

/* style.css */
/*.modal {
    display: none;*/ /* Hidden by default */
/*position: fixed;*/ /* Stay in place */
/*z-index: 1;*/ /* Sit on top */
/*left: 0;
    top: 0;
    width: 100%;*/ /* Full width */
/*height: 100%;*/ /* Full height */
/*overflow: auto;*/ /* Enable scroll if needed */
/*background-color: rgb(0,0,0);*/ /* Fallback color */
/*background-color: rgba(0,0,0,0.4);*/ /* Black w/ opacity */
/*}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;*/ /* 15% from the top and centered */
/*padding: 20px;
    border: 1px solid #888;
    width: 70%;*/ /* Could be more or less, depending on screen size */
/*}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

    .close:hover,
    .close:focus {
        color: black;
        text-decoration: none;
        cursor: pointer;
    }*/

:root {
  --header-nav-mobile-height: 60px;
  --header-nav-desktop-height: 120px;
  --nav-icon-wobble-translate: 32px;
  --nav-icon-wobble-rotate: 10deg;
  --nav-item-unselected: rgb(0 0 0);
  --nav-item-selected: blue;
  --side-gap: 20px;
}

@keyframes shake {
  0% {
    transform: rotate(2deg);
  }

  5% {
    transform: rotate(4deg);
  }

  10% {
    transform: rotate(6deg);
  }

  15% {
    transform: rotate(8deg);
  }

  20% {
    transform: rotate(10deg);
  }

  25% {
    transform: rotate(8deg);
  }

  30% {
    transform: rotate(6deg);
  }

  35% {
    transform: rotate(4deg);
  }

  40% {
    transform: rotate(2deg);
  }

  45% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-2deg);
  }

  55% {
    transform: rotate(-4deg);
  }

  60% {
    transform: rotate(-6deg);
  }

  65% {
    transform: rotate(-8deg);
  }

  70% {
    transform: rotate(-10deg);
  }

  75% {
    transform: rotate(-8deg);
  }

  80% {
    transform: rotate(-6deg);
  }

  85% {
    transform: rotate(-4deg);
  }

  90% {
    transform: rotate(-2deg);
  }

  100% {
    transform: rotate(0deg);
  }
}

@keyframes button-clicked {
  0% {
    transform: translateY(3px);
  }

  50% {
    transform: translateY(1px);
  }

  100% {
    transform: translateY(0px);
  }
}
.lottoNav {
  z-index: 100;
  background-color: white;
  position: sticky;
  top: 0px;
  left: 0px;
  width: 100%;
  box-shadow: 0px 4px 2px rgb(0 0 0/0.15);
  display: flex;
  flex-direction: column;
  align-items: center;

  font-weight: 600;

  & button {
    /*clear style*/
    background: none;
    color: var(--nav-item-unselected);
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
    outline: inherit;
  }

  & .lotto-nav-items {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    & .nav-item {
      min-width: 0;
      min-height: 0;
      flex: 1 1 0;

      & img {
        width: 80%;
        height: auto;
      }
    }
  }
}

.lotto-nav-header {
  width: 95%;
  height: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  & img {
    width: 100px;
    max-width: 40%;
    height: 100%;
    align-self: center;
  }

  & .lotto-nav-login {
    font-size: large;
    width: 180px;
    max-width: 40%;
    gap: 10px;
    display: flex;
    justify-content: space-between;

    & .login,
    & .more {
      flex-grow: 1;
      border-radius: 20px;
      box-shadow: 0 4px 4px rgb(0 0 0 /0.25);

      &:active {
        animation: 0.3s ease-in button-clicked;
      }
    }

    & .login {
      background-color: white;
    }

    & .more {
      background-color: rgb(67 100 247);
    }
  }
}

.secondary-level-menu {
  display: none;
  padding: 10px 15px; /* Adjust padding for better spacing */
  border-radius: 10px;
  box-shadow: 0px 4px 4px rgb(0 0 0 / 0.25), 4px 0px 4px rgb(0 0 0 / 0.25);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  z-index: 100;
  & button:hover {
    color: var(--nav-item-selected);
  }
}
.secondary-level-menu a {
  font-size: 1rem; /* Adjust font size for readability */
  padding: 10px 15px; /* Add padding for better spacing */
  line-height: 1.5; /* Increase line height for readability */
  display: block; /* Ensure each link is a block element */
  white-space: nowrap; /* Prevent text wrapping */
}

#lotto-nav-secondary-items {
  & .secondary-menu {
    display: grid;
    flex-direction: column;
    width: 100%;
    height: 0px;
    overflow: hidden;

    & a {
      max-width: 100%;
      text-wrap: wrap;
      font-size: 3vw;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  }

  & .secondary-menu[data-status="open"] {
    padding: 10px;
    height: fit-content;
    background-color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    color: var(--nav-item-unselected);
  }
}

.body-content {
  position: relative;
  z-index: 0;
}

@media (min-width: 1000px) {
  .lottoNav {
    height: var(--header-nav-desktop-height);
    width: 90vw;
    flex-direction: row;
    justify-content: space-between;
    margin: 0 auto;
    border-radius: 0 0 20px 20px;
    & .lotto-nav-items {
      display: block;
      display: flex;
      flex-direction: row;
    }

    & .lotto-nav-header {
      justify-content: start;
      height: 100%;
      flex-grow: 1;

      &::before {
        content: "";
        height: 100%;
        width: 20px;
      }

      & img {
        max-width: 100%;
      }
      & .lotto-nav-login {
        display: none;
      }
    }

    & .lotto-nav-items {
      height: 100%;
      display: flex;
      width: 900px;
      flex-grow: 0;
      align-items: center;

      & .nav-item {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        & img {
          width: 30%;
          height: auto;
        }

        &:hover {
          & img {
            animation: shake 0.5s;
          }
        }
      }
    }
  }

  .breadcrumb-nav-lotto {
    margin-top: 10px;
    margin-left: 20px;
  }

  button.lotto-nav-button {
    height: fit-content;
    max-height: 80%;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
  }

  .secondary-level-menu-shown {
    background-color: white;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    color: var(--nav-item-unselected);
    position: absolute;
    z-index: 10;
    width: fit-content;
    left: 50%;
    transform: translateX(-50%);
    & button {
      font-size: 0.9rem;
      width: 220px;
      height: 30px;
    }
  }
}



@media (max-width: 480px) {
    .conditional-div

{
    display: none;
}

}

