/* Define the font and body style */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background: url('IMG/poster.webp') no-repeat center center fixed;
    background-size: cover;
    color: #333;
}

/* General Container */
.container {
    width: 100%;
    max-width: 768px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
    background: rgba(255, 255, 255, 0.85); /* Slightly opaque background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

/* Header Styles */
.header h1 {
    font-size: 28px; /* Larger font size */
    margin-bottom: 20px;
    color: #333;
    font-weight: bold; /* Bold text */
}

/* Grid Styles for Categories and Subcategories */
.category-grid, .subcategory-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    display: none; /* Initially hide all categories */
}

.judge-options-grid {
    grid-template-columns: 1fr; /* Single column for judge options */
    gap: 10px;
    text-align: center; /* Center align judge options grid */
}

.judge-category {
    display: none; /* Hide all judge categories initially */
    text-align: center; /* Center align the content inside */
}

/* Category Item and Image Styles */
.category-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-align: center;
}

.category-image {
    width: 100px;
    height: 100px;
    object-fit: cover;
    margin-bottom: 10px;
}

.category-item p {
    font-size: 20px; /* Larger font size */
    color: #333;
    font-weight: bold; /* Bold text */
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    background-color: #e0f7fa; /* Light blue background on hover */
}

.category-item:active {
    background-color: #b2ebf2; /* Darker blue on click */
    transform: scale(0.95); /* Shrink slightly on click */
}

/* Judge Option Item Styles */
.judge-option-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px; /* Smaller padding for smaller buttons */
    width: 240px; /* Set fixed width */
    margin: 10px auto; /* Center align judge option item */
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    text-align: center; /* Center align text inside the button */
}

.judge-option-item p {
    font-size: 20px; /* Smaller font size for judge options */
    color: #333;
    font-weight: bold; /* Bold text */
}

.judge-option-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    background-color: #e0f7fa; /* Light blue background on hover */
}

.judge-option-item:active {
    background-color: #b2ebf2; /* Darker blue on click */
    transform: scale(0.95); /* Shrink slightly on click */
}

/* Back Button */
.back-button {
    grid-column: span 3;
    background: #f44336;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    margin-top: 20px;
}

.back-button:hover {
    background: #d32f2f;
}

/* Show the main category on load */
#main-category {
    display: grid;
}

/* Display subcategories or judging options */
.show {
    display: grid !important;
}

.show-inline {
    display: block !important;
}

