* {
    padding: 0;
    margin: 0;
    font-family: Lucida Console, Consolas, SimHei, Menlo, Monaco, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, serif;
}

#clock {
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: #00BFFF;
    color: white;
    font-size: 48px;
    transition: all 0.5s;
}

#clock:hover {
    font-weight: bold;
    font-size: 64px;
    /* text-shadow: 2px 2px 5px #1E90FF; */
}

#door {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: #1E90FF;
}

#poem {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: #4682B4;
    color: white;
    font-size: 48px;
    transition: all 0.5s;
}

#qgroups {
    position: relative;
    width: 100vw;
    /* height: 100vh; */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: #4682B4;
    color: white;
    font-size: 48px;
    transition: all 0.5s;
}

#foot {
    height: 20vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    color: white;
    font-size: 16px;
    background-color: #00BFFF;
}

#foot a {
    color: white;
    text-decoration: none;
}

#gap-module {
    width: 100vw;
    height: 20vh;
}

#group-container {
    display: grid;
    gap: 0px;
    width: 60vw;
    grid-template-columns: repeat(3, 1fr); /* 3 columns default */
}

body {
    background-color: #1E90FF;
}

.circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: expand 1s ease-out forwards;
}

@keyframes expand {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: min(100vh, 100vw);
        height: min(100vh, 100vw);
        opacity: 0;
    }
}

.white-rectangle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: white;
    animation: expandAndFade 1s forwards;
    z-index: 0;
}

@keyframes expandAndFade {
    0% {
        height: 0;
        opacity: 1;
    }
    100% {
        height: 100%;
        opacity: 0;
    }
}

.button-container {
    display: grid;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 50vw;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 32px;
    margin-bottom: 32px;
    /* margin: 0 auto; */
}

.button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 150px;
    margin: 0 auto;
    text-decoration: none;
    border-radius: 10px;
    border: solid;
    border-width: 2px;
    border-color: transparent;
    color: white;
    background-color: transparent;
    padding: 10px;
    transition: all 0.5s;
}

.button:hover {
    border-color: white;
    /* background-color: rgba(255, 255, 255, 0.5); */
}

.button img {
    width: 100%;
    border-radius: 5px;
}

.satelite-container {
  position: relative;
  width: 100vw;
  height: 64vh;
}

.moving-group {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.moving-image {
  z-index: -1024;
  width: min(42vh, 42vw);
  height: auto;
  position: relative;
}

.star-link {
  position: absolute;
  z-index: 1023;
  top: calc(100% * 2 / 3); /* 相对于 moving-image 的下三分之一 */
  left: calc(100% * 3 / 5); /* 相对于 moving-image 的中心对齐 */
  transform: translate(-50%, -50%) scale(0); /* 默认最小，不显示 */
  opacity: 0; /* 默认隐藏 */
  transition: transform 0.2s linear, opacity 0.2s linear; /* 平滑变化 */
}

.star {
  width: min(63vh, 63vw);
  height: auto;
}

h1 {
    margin-top: 60px;
    margin-bottom: 60px;
    font-size: 64px;
    line-height: 72px;
    text-align: center;
    color: white;
    transition: all 0.5s;
    z-index: 1;
    /* animation: fadeIn 1.5s; */
}
h1:hover {
    font-weight: bold;
    transform: scale(1.25);
    /* text-shadow: 2px 2px 5px #00BFFF; */
}
h2 {
    margin-top: 18px;
    margin-bottom: 18px;
    font-size: 36px;
    line-height: 48px;
    color: white;
    text-align: center;
    transition: all 0.5s;
    z-index: 1;
}
h2:hover {
    font-weight: bold;
    transform: scale(1.3);
    /* text-shadow: 2px 2px 5px #00BFFF; */
}
p {
    font-size: 18px;
    line-height: 32px;
    transition: all 0.5s;
    color: white;
    z-index: 1;
}
p:hover {
    transform: scale(1.1);
}
#qgroups p:hover {
    transform: scale(1.5);
}


@media (max-width: 800px) {
    #group-container {
        width: 80vw;
        grid-template-columns: repeat(2, 1fr); /* 2 columns on smaller screens */
    }
    .button-container {
        width: 80vw;
        grid-template-columns: 1fr; /* 1 column on smaller screens */
    }
    #clock {
        font-size: 24px;
    }
    #clock:hover {
        font-size: 36px;
    }
    p {
        font-size: 12px;
    }
    h1 {
        font-size: 24px;
        line-height: 36px;
    }
    h2 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    #group-container {
        width: 80vw;
        grid-template-columns: 1fr; /* 1 column on very small screens */
    }
    .button-container {
        width: 80vw;
        grid-template-columns: 1fr;
    }
}