* {
    box-sizing: border-box;
}
body {
    font-family: "Calligraffitti", cursive;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #999;
}

header {
    font-family: "Pirata One", system-ui;
    background-color: #16232F;
    color: white;
    width: 100%;
    text-align: center;
}

header img {
    margin-top: 3px;
    width: 99%;
    height: auto;
    border: 4px solid #000; /* Adding a thin border */
}

.container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1400px;
    width: 100%;
}

.tile {
    position: relative;
    background-color: #F5D678;
    border: 4px solid #16232F;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    font-size: 1.2em;
    color: #333;
    min-height: 400px;
}

.locked {
    background-color: #16232F;
    color: #999;
}

.ahoy {
    font-family: "Lily Script One", system-ui;
    font-weight: 400;
    font-style: normal;
    width: 50%;
    margin-top: -250px;
    margin-bottom: 50px;
    font-size: 1.6em;
    padding-left: 100px;
    padding-right: 100px;
    color: black;
    border-radius: 10px;
    border: 5px solid #271203; /* Darker brown for the border */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
    transform: rotate(-2deg);
    background-image: url('assets/img/parchment-texture.jpg'); /* Parchment texture image */
    background-size: cover;
    background-blend-mode: multiply;
}

.questno {
    font-size: 1em;
    font-family: "Pirata One", cursive;
}

.name {
    font-size: 2em;
    font-family: "Great Vibes", cursive;
    font-weight: bold;
}

.description {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 1em;
}

.description.small {
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    font-size: 8pt;
    margin-top: -10px;
}

button {
    background-color: #16232F;
    color: white;
    border-radius: 5px;
    padding: 10px 20px;
    font-family: 'Pirata One', cursive;
    font-size: 1em;
    cursor: pointer;
}

button.na {
    background-color: #999;
    color: #16232F;
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 1224px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tile {
        font-size: 1em;
        padding: 15px;
    }

    .ahoy {
        width: calc(100% - 40px);
        font-size: 1.3em;
        margin: -100px auto 0;
        transform: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .container {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tile {
        font-size: 1em;
        padding: 15px;
    }

    .ahoy {
        width: 90%;
        font-size: 1em;
        padding: 15px;
        margin-top: -100px;
        transform: none;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }

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

    .tile {
        font-size: 0.9em;
        padding: 10px;
        min-height: 250px;
    }

    .ahoy {
        width: 90%;
        font-size: 1em;
        padding: 10px;
        margin-top: -50px;
        transform: none;
    }
}

.label-container {
    margin-top: 10px;
}

.label {
    font-family: 'Arial', sans-serif;
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: 0.5em;
    font-weight: bold;
    color: white;
    border-radius: 12px;
    text-transform: uppercase;
    background-color: #4CAF50; /* Default background color for demonstration */
    /* Customize background color per category */
}

.label.devops {
    background-color: #4CAF50; /* Green for DevOps */
}

.label.data {
    background-color: #2196F3; /* Blue for Data */
}

.label.frontend {
    background-color: #FF9800; /* Orange for FrontEnd */
}

.label.docs {
    background-color: #9C27B0; /* Purple for Documentation */
}

.label.backend {
    background-color: #F44336; /* Red for BackEnd */
}

.label.devex {
    background-color: #000; /* Black for Developer Experience */
}