@font-face {
    font-family: 'Orbitron';
    src: url('Orbitron.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Orbitron', sans-serif;
    background-color: #1a1a1a;
    color: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-image: url('background.jpg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed; /* 固定背景 */
}

.container {
    text-align: center;
    transform: scale(1.0);
    position: relative;
    max-width: 90%;
}

.cyber-jiao {
    margin-bottom: 2rem;
}

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

.jiao-pair img {
    width: 20vw; /* 手机端使用 vw 单位 */
    height: auto;
    margin: 0 1rem;
    transition: transform 0.3s ease-in-out;
    filter: blur(0px);
    border: none;
    outline: none;
}

.jiao-pair img.rotating {
    animation: jiaoRotate 0.5s ease-in-out;
    filter: blur(3px);
}

@keyframes jiaoRotate {
  0% {
    transform: rotate(360deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

#throw-button {
    background-color: #4a90e2;
    color: white;
    padding: 1.2rem 2.5rem;
    border: 2px solid #4a90e2;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

#throw-button:hover {
    background-color: #fff;
    color: #4a90e2;
}

.result-area {
    margin-top: 2rem;
    font-size: 1.5rem;
    color: #fff;
    text-shadow: 0 0 10px #00f;
}

/* 添加全局的鼠标悬停效果 */
*:hover {
    animation: neonGlow 0.5s ease-in-out;
}

@keyframes neonGlow {
    0% {
        text-shadow: 0 0 5px #00f;
    }
    50% {
        text-shadow: 0 0 15px #00f;
    }
    100% {
        text-shadow: 0 0 5px #00f;
    }
}

.introduction {
    margin-top: 3rem;
    padding: 1.2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    font-size: 0.8rem;
    line-height: 1.4;
}

.introduction h2 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 3px;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.introduction p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.introduction strong {
    color: #66b3ff;
}

.jiao-pair img:first-child.rotating {
    animation: jiaoRotateLeft 0.5s ease-in-out;
    filter: blur(3px);
}

.jiao-pair img:last-child.rotating {
    animation: jiaoRotateRight 0.5s ease-in-out;
    filter: blur(3px);
}

@keyframes jiaoRotateLeft {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes jiaoRotateRight {
    0% {
        transform: rotate(360deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* 媒体查询，针对小屏幕 */
@media (max-width: 768px) {
  body {
       font-size: 14px;
  }
    .jiao-pair img {
    width: 30vw;
  }
    #throw-button {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
  }
  .result-area {
    font-size: 1.6rem;
  }
  .introduction {
    font-size: 0.9rem;
  }
  .introduction h2 {
    font-size: 1.3rem;
  }
}


/* 媒体查询，针对大屏幕 */
@media (min-width: 769px) {
    .jiao-pair img {
        width: 180px; /* 大屏幕使用固定像素值 */
    }
}
