#Castle {
    font-family: "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
    font-size: 30px;
    color: #000000;
    text-align: center;
    margin: 0;
    padding: 2px;
}

a {
    text-decoration: none;
    color: blueviolet;
}

#Ladstable {
   background-image: url("Ladstable.png");
   background-size: cover;
}

.Medieval {
    font-family: "MedievalSharp", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
}

#poem {
    font-family: "MedievalSharp", cursive;
    font-weight: 400;
    font-style: normal;
    background-color: rgb(125, 179, 223);
    color: white;
    font-size: 30px;
    text-align: center;
    padding: 20px;
}


#monkimage {
    width: 300px;
    height: auto;
    position: absolute;
    top: 40%;
    left: 50%;
    border-radius: 8px;
    animation: floatSpirit 4s ease-in-out infinite;
}


@keyframes floatSpirit {
    0% {
        transform: translate(-50%, -50%) translateY(0px);
        filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.3));
    }
    50% {
        transform: translate(-50%, -50%) translateY(-15px);
        filter: drop-shadow(0 20px 25px rgba(212, 175, 55, 0.5));
    }
    100% {
        transform: translate(-50%, -50%) translateY(0px);
        filter: drop-shadow(0 5px 15px rgba(212, 175, 55, 0.3));
    }
}


.hidden-portal {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    font-family: "SFMono-Regular", "Menlo", "Monaco", monospace;
    white-space: pre;
    line-height: 1.2;
    font-size: 14px;
    text-decoration: none;
    color: #474747; 
    transition: color 0.6s ease, text-shadow 0.6s ease;
    cursor: pointer;
    z-index: 5;
}

.hidden-portal:hover {
    color: #555555; 
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

#chill-zone {
    font-family: "MedievalSharp", cursive;
    background-color: black; 
    color: white;
    font-size: 20px;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

.window-room {
    font-family: monospace;
    font-size: 11px;
    line-height: 1.1;
    color: white;
    margin-bottom: 20px;
}

#game-status {
    font-size: 18px;
    margin: 5px 0;
}

.dice-row {
    display: flex;
    gap: 60px;
    margin: 15px 0;
}

.dice-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dice-block p {
    margin: 0 0 5px 0;
}

.simple-dice {
    font-family: monospace;
    font-size: 20px;
    line-height: 1.1;
    color: white;
    margin: 0;
}

#roll-btn {
    background: none;
    border: none;
    font-family: "MedievalSharp", cursive;
    font-size: 20px;
    color: blueviolet;
    cursor: pointer;
    padding: 0;
}

#roll-btn:hover {
    color: #dfbfff;
}

#roll-btn:disabled {
    color: #555;
    cursor: not-allowed;
}

#poem {
    font-family: "MedievalSharp", cursive;
    font-weight: 400;
    font-style: normal;
    background-color: rgb(125, 179, 223);
    color: white;
    font-size: 30px;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

a:hover {
    color: #dfbfff;
}

.card-row {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.simple-card {
    font-family: monospace;
    white-space: pre;
    font-size: 24px;
    color: white;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s ease;
}

.simple-card:hover {
    color: blueviolet;
    transform: scale(1.1);
}

#poem-box {
    max-width: 700px;
    line-height: 1.4;
}

.key-container {
    position: relative;
    display: inline-block;
    text-align: center;
}


#blackbackground {
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
}

.game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#keyimage {
    width: 440px;
    height: auto;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.5s ease-in-out;
}

#keyimage.found {
    opacity: 1;
}

.key-victory-link {
    font-family: "MedievalSharp", cursive;
    font-size: 25px;
    color: blueviolet;
    text-decoration: none;
    position: fixed;
    top: 20px;
    left: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-in-out;
    z-index: 9999;
}

.key-victory-link.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.key-victory-link:hover {
    color: #dfbfff;
}