@font-face {
    font-family: 'timer';
    src: url('/css/font/Iceland-Regular.ttf');
}

#timer {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;

    padding-left: 15px;
    padding-right: 15px;
    padding-top: 5px;
    padding-bottom: 5px;

    border-style: solid;
    border-top: 2px;
    border-radius: 0px 0px 10px 10px;

    background-color: rgba(255, 255, 255, 0.7);
    border-color: rgb(0, 0, 0);

    font-size: 30px;
    font-family: 'timer';
    color: rgb(0, 0, 0);
}

#return-map-button {
    position: fixed;
    top: 8px;
    right: 10px;
    z-index: 10000;
    padding: 0;

    background: none;
    border: none;
}

#hint-button, #info-button {
    position: fixed;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    padding: 0;

    background: none;
    border: none;
}

#hint-button {
    transform: translateX(60px);
}

#info-button {
    transform: translateX(-110px);
}

#hint-button img, #info-button img, #return-map-button img {
    height: 50px;
    padding: 0;
}

#hint-button img:hover, #info-button img:hover, #return-map-button img:hover {
    height: 50px;
    padding: 0;
    filter: brightness(1.2);
    cursor: pointer;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

#hint-button img:active, #info-button img:active, #return-map-button img:active {
    height: 50px;
    padding: 0;
    filter: brightness(0.8);
    cursor: pointer;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#hint-container, #info-container {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    width: 300px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
}

#hint-container {
    transform: translateX(120px);
}

#info-container {
    transform: translateX(-420px);
}

#hint-title, #info-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

#hint-content, #info-content {
    font-size: 1.2em;
    margin-bottom: 10px;
}

#hint-unlock-button {
    width: 100%;
}

/* Satellite pieces column shown under the return button */
#satellite-pieces {
    position: fixed;
    right: 12px; /* align with return button */
    top: 70px; /* below the return button */
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    pointer-events: none; /* allow clicks through unless piece is unlocked */
}

.sat-piece {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background-color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    overflow: hidden;
    pointer-events: auto;
}

.sat-piece img {
    max-width: 34px;
    max-height: 34px;
    display: block;
}

.sat-piece.locked {
    filter: grayscale(100%) opacity(0.35);
}

.sat-piece.unlocked {
    filter: none;
    opacity: 1;
    transition: transform 0.18s ease, filter 0.25s ease;
}

.sat-piece.unlocked:hover {
    transform: scale(1.05);
    cursor: default;
}

/* Custom tooltip for satellite pieces - positioned to the left */
.custom-tooltip {
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    
    /* Animation */
    opacity: 0;
    animation: tooltip-fade-in 0.2s ease forwards;
}

@keyframes tooltip-fade-in {
    from {
        opacity: 0;
        transform: translateY(-50%) translateX(5px);
    }
    to {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

#info-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    z-index: 100000000000000000000000000;
}

#info-image-container img {
    position: absolute;
    width: 90%;
    height: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 100000000000000000000000000;
}

#info-image-button {
    position: absolute;
    top: 10px;
    right: 80px;
    width: 200px;
    max-height: 300px;
    z-index: 100000000000000000000000000;
    border-color: transparent;
    background-color: transparent;
}

#info-image-button img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 100000000000000000000000000;
}

#info-image-button:hover img {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}