/* Heading color for contrast on background */

body {
    font-family: 'Courier New', monospace;
    text-align: center;
    background: url("/img/courses/hack-the-bank/bank.png") no-repeat center center fixed;
    background-size: cover;
    margin: 0;
    padding: 0px;
}
p{
    text-align: left;
}

h1 {
    color: white;
}

#vault {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 50px auto;
}
/* Subtle noise texture on vault walls */
#vault::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.05;
    z-index: 3;
    pointer-events: none;
}


#door {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, #666, #333 70%);
    border-radius: 200px;
    transition: transform 2s ease-in-out;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    transform-style: preserve-3d;
    overflow: visible;
    transform-origin: calc(100% + 150px) center;
    box-shadow: inset 0 0 15px #0ff, 0 0 25px #0ff;
    border: 4px solid #0ff;
}
.vault-hinge {
    position: absolute;
    width: 20px;
    height: 120px;
    background: #888;
    top: 140px;
}

.vault-hinge.right {
    right: -18px;
    border-radius: 0 5px 5px 0;
}

.vault-lock-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 90px;
    margin-top: -45px;
    margin-left: -45px;
    border-radius: 50%;
    background: radial-gradient(circle, #555 30%, #1a1a1a 100%);
    box-shadow: 0 0 15px #00f6ff, inset 0 0 10px #00f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0ff;
}

.vault-lock-core {
    width: 36px;
    height: 36px;
    background: radial-gradient(circle, #0ff, #00aaff);
    border-radius: 50%;
    box-shadow: 0 0 15px #0ff, inset 0 0 10px #000;
    animation: pulseCore 2s infinite;
}

#door.open {
    animation: openVaultDoor 2s ease-in-out forwards;
    pointer-events: none;
}

@keyframes openVaultDoor {
    0% {
        transform: rotateY(0deg);
        left: 0;
    }
    50% {
        transform: rotateY(-60deg);
        left: -50px;
    }
    100% {
        transform: rotateY(-120deg);
        left: -220px;
    }
}

@keyframes pulseCore {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px #0ff, inset 0 0 5px #000;
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px #0ff, inset 0 0 10px #000;
    }
}

#gold {
    font-size: 1.4em;
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    border-radius: 100%;
    /* Stylised vault interior with shelves */
    background:
            linear-gradient(to bottom, #222 0%, #000 100%),
            repeating-linear-gradient(to right, #333 0 10px, transparent 10px 20px),
            linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size:
            100% 100%,
            100% 100%,
            100% 25%;
    background-position:
            center center,
            center center,
            top;
    background-repeat: no-repeat, no-repeat, repeat-y;
    box-shadow:
            inset 0 0 30px rgba(0,0,0,0.8),
            inset 0 20px 60px rgba(0,0,0,0.5),
            inset 0 0 30px gold, 0 0 20px #ffd700;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 1s ease;
    text-align: center;
    z-index: 1;
    overflow: hidden;
}
/* Inner rim highlight */
#gold::before {
    content: "";
    position: absolute;
    top: 5px; left: 5px;
    right: 5px; bottom: 5px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 0 20px rgba(255,255,255,0.05);
    pointer-events: none;
}
/* 2D floor ellipse */
#gold::after {
    content: "";
    position: absolute;
    bottom: 20%;
    left: 50%;
    width: 80%;
    height: 20%;
    background: radial-gradient(ellipse at center,
    rgba(200,200,200,0.05),
    transparent 70%);
    border-radius: 50% / 30%;
    pointer-events: none;
    z-index: 0;
    transform: translateX(-50%);
}

#gold.visible {
    opacity: 1;
    animation: sparkleContainer 2s infinite alternate;
    filter: drop-shadow(0 0 20px gold);
}


.emoji-row {
    font-size: 1.7em;
    line-height: 1.4em;
}
/* Coin surface glint animation */
.emoji-row {
    position: relative;
    overflow: hidden;
}
.emoji-row::after {
    content: "";
    position: absolute;
    top: -50%; left: -100%;
    width: 200%; height: 200%;
    background: linear-gradient(120deg,
    transparent 30%,
    rgba(255,255,255,0.3) 50%,
    transparent 70%
    );
    transform: rotate(25deg);
    animation: glint 2.5s infinite;
    pointer-events: none;
}
@keyframes glint {
    from { transform: translateX(-100%) rotate(25deg); }
    to   { transform: translateX(100%) rotate(25deg); }
}

@keyframes sparkleContainer {
    0% {
        box-shadow: inset 0 0 30px gold, 0 0 20px #ffd700;
    }
    100% {
        box-shadow: inset 0 0 40px gold, 0 0 30px #ffff66;
    }
}

.hidden {
    opacity: 0;
    display: none;
}


#codeInput {
    margin-top: 30px;
}

input[type="text"] {
    padding: 10px;
    font-size: 1em;
    width: 100px;
    text-align: center;
    border: 2px solid #0ff;
    border-radius: 6px;
    background-color: #000;
    color: #0ff;
    box-shadow: 0 0 10px #0ff;
    outline: none;
    transition: box-shadow 0.3s ease-in-out;
}

input[type="text"]:focus {
    box-shadow: 0 0 15px #00f6ff;
}

.vault-button {
    padding: 10px 20px;
    font-size: 1em;
    margin-left: 10px;
    cursor: pointer;
    border: 2px solid #0ff;
    border-radius: 6px;
    background-color: #000;
    color: #0ff;
    box-shadow: 0 0 10px #0ff;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.vault-button:hover {
    background-color: #002244;
    box-shadow: 0 0 15px #00f6ff;
}

.vault-button:active {
    background-color: #004466;
    box-shadow: 0 0 20px #00f6ff inset;
}

#message {
    margin-top: 10px;
    height: 1.2em;
    color: white;
    text-align: center;
}

/* Futuristic animated background grid */
/*
body::before {
    content: "";
    position: fixed;
    top: -50%;
    left: -50%;
    width: 400%;
    height: 400%;
    background: linear-gradient(0deg, rgba(0,255,255,0.1) 1px, transparent 1px) 0 0,
                linear-gradient(90deg, rgba(0,255,255,0.1) 1px, transparent 1px) 0 0;
    background-size: 50px 50px;
    animation: backgroundMove 30s linear infinite;
    z-index: -1;
}
*/

@keyframes backgroundMove {
    from { background-position: 0 0, 0 0; }
    to { background-position: 100px 100px, 100px 100px; }
}
/* Spot lighting & ambient glow */
/*
body::after {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,200,0.15), transparent 40%),
        radial-gradient(circle at 70% 80%, rgba(200,255,255,0.12), transparent 50%);
    pointer-events: none;
    z-index: 0;
}
*/
.treasure-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 25px gold, inset 0 0 25px #000;
    z-index: 2;
}

.vault-ring-decor {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    margin-left: -123px;
    margin-top: -123px;
    border-radius: 50%;

    background-image: repeating-conic-gradient(
            from 0deg,
            rgba(0,255,255,0.2) 0deg 5deg,
            transparent 5deg 20deg
    );
    z-index: 3;
    pointer-events: none;
    transition: opacity 5s ease;
}

.vault-ring-decor.fade-out {
    opacity: 0;
}

@keyframes spinRing {
    from { transform: rotate(0deg); }
    to { transform: rotate(180deg); }
}

.vault-ring-decor.spin {
    animation: spinRing 1.8s steps(180) forwards;
}

label
{
    color: white;
}
.vault-container {
    position: absolute;
    left: 5%;
    margin-top: 00px; /* Fixed margin from the top */
}

ol {
    text-align: left;
    padding-left: 40px;
}

ol li {
    text-align: left;
}