@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    cursor: pointer;
    scroll-behavior: smooth;
    font-family: 'Fira Sans', sans-serif;
}

section {
    width: 100%;
}

/* scrollbar */
::-webkit-scrollbar {
    display: none;
    width: 0px;
}

/* main contents */
main {
    width: calc(99vw - 40px);
    height: calc(99vh - 40px);
    max-width: 1024px;
    overflow-x: hidden;
    overflow-y: auto;

    padding: 20px;
    text-align: center;
    font-size: clamp(1rem, 0.75rem + 1.2dvw, 1.25rem);

    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Information Section */
.info {
    width: 100%;
    margin-bottom: 1em;
}

.info img {
    width: 200px;
    margin: 10px auto 20px auto;
}

.info h1 {
    color: #f0f8ff;
    font-size: 2em;
    margin-bottom: 10px;
}

.info p {
    color: #f0f8ff;
    font-size: 1em;
}

/* Contact Section */
.contact {
    display: flex;
    gap: 0 15px;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}

.link a img {
    width: 1.2em;
    height: auto;
}

hr {
    width: 50%;
    margin: 20px auto 10px auto;
}

/* Category Section */
.category-section {
    margin-bottom: 1px;
}

/* Category Title Styles */
.category-title {
    color: #f0f8ff;
    font-size: 1.5em;
    margin: 0 0 20px 0;
    text-align: left;
    display: none;
}

/* Button Section */
#button-container {
    width: 100%;
    margin: 32px auto;
}

/* Button Container for Categories */
.category-button-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Button Styles with Image */
.button-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
    color: #f0f8ff;
    background-color: transparent;
    border: 1px solid #f0f8ff;
    border-radius: 20px 0;
    flex: 1;
    transition: background-color 0.3s, transform 0.2s;
}

.button-item img {
    aspect-ratio: 1;
    width: 100%;
    border-radius: 10px 0;
    margin-bottom: 10px;
}

.button-item:hover {
    background-color: #f0f8ff16;
    backdrop-filter: blur(4px);
    transform: translateY(-5px);
}

/* copyright */
p#copyright {
    color: #f0f8ff;
    font-size: 0.75em;
    line-height: 1.25em;
    text-align: center;
}

/* Responsive Styles for Small Screens */
@media (max-width: 512px) {
    main {
        padding: 15px;
        border-radius: 25px 0;
    }

    .info img {
        width: 128px;
    }

    .category-section {
        padding: 0;
    }

    .category-button-container {
        grid-template-columns: 1fr;
    }

    .button-item {
        padding: 8px 16px;
    }

    .category-title {
        font-size: 1.3em;
    }

    .button-item img {
        aspect-ratio: auto;
    }
}

/* -------- */