body {
    font-family: 'Alegreya SC', serif;
    background-color: #121212;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    box-sizing: border-box;
}

.container {
    background-color: #000000;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    max-width: 90%;
    width: 100%;
    margin-bottom: 20px;
}

h1 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #C0C0C0;
}

.link-list {
    display: grid;
    gap: 10px;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 1200px) {
    .link-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .link-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .link-list {
        grid-template-columns: 1fr;
    }
}


.logo {
    max-height: 55px;
    margin-top: 24px;
    margin-left: 30px;
}

.link-button {
    display: block;
    padding: 15px;
    font-size: 16px;
    color: #ffffff;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    font-weight: bold;
    letter-spacing: 0.05em;
    text-align: center;
}

/* Button Colors for each group */
.link-button-group1 { background-color: #007BFF; border: 2px solid #007BFF; }
.link-button-group2 { background-color: #FF6347; border: 2px solid #FF6347; }
.link-button-group3 { background-color: #28A745; border: 2px solid #28A745; }
.link-button-group4 { background-color: #FFC107; border: 2px solid #FFC107; }
.link-button-group5 { background-color: #17A2B8; border: 2px solid #17A2B8; }
.link-button-group6 { background-color: #6610F2; border: 2px solid #6610F2; }
.link-button-group7 { background-color: #E83E8C; border: 2px solid #E83E8C; }
.link-button-group8 { background-color: #FD7E14; border: 2px solid #FD7E14; }
.link-button-group9 { background-color: #5A9BD4; border: 2px solid #4B8BBE; }

.link-button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.clicked {
    background-color: grey;
    border-color: grey;
    color: #ffffff;
    box-shadow: none;
    transform: none;
}

/* Popup Styles */
.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 2px solid #007BFF;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
}

.popup button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.popup .confirm { background-color: #28a745; color: white; }
.popup .cancel { background-color: #dc3545; color: white; }

@media (max-width: 600px) {
    .container { width: 100%; padding: 10px; }
    h1 { font-size: 20px; }
}
