* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    touch-action: none;
    /* Disable all touch actions like pinch zoom */
    -ms-touch-action: none;
    overflow: hidden;
    overscroll-behavior: none;
    /* Prevent pull-to-refresh and overscroll effects */
    user-select: none;
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    height: 100vh;
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Comic Sans MS, sans-serif;
    position: relative;
    touch-action: manipulation;
    /* Allow only scrolling but not zoom */
}

a {
    color: inherit;
    /* Inherits text color from parent element */
    text-decoration: underline;
    /* Removes underline */
}

.button {
    display: block;
    margin: auto;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: rgb(28, 88, 252);
    padding: 0.5rem;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}
.button:visited{
    color: white;
}

.button:hover {
    color: white;
    text-decoration: none;
    transform: scale(1.05);
}

a:visited, a:hover, a:active, a:focus {
    color: inherit;
    /* Maintains the same color in all link states */
    text-decoration: underline;
    /* Ensures no underline appears on interaction */
}

.center-box {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 80%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.center-box p {
    margin: 10px 0;
    font-weight: bold;
}

.copyable {
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.1);
    padding: 3px 6px;
    border-radius: 4px;
    transition: background-color 0.2s;
    user-select: all;
    -webkit-user-select: all;
    -moz-user-select: all;
    -ms-user-select: all;
}

.copyable:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

.copyable:active {
    background-color: rgba(0, 0, 0, 0.3);
}

.copy-notification {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
}

.copy-notification.show {
    opacity: 1;
}

#moving-image {
    position: absolute;
    width: 5rem;
    height: 5rem;
    z-index: 20;
    cursor: pointer;
    transition: transform 0.2s;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Hover effect is now handled via JavaScript to preserve flip state */


#dancing-troll {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    /* width: 15rem; */
    height: 15rem;
    /* z-index: 10; */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.audio-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 100;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}


.absolute {
    position: absolute;
}

.w-screen {
    width: 100vw;
}

.h-screen {
    height: 100vh;
}

.top-0 {
    top: 0;
}

.left-0 {
    left: 0;
}

.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}


.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

#jupiter-terminal-instance{
    position: absolute;
    z-index: 10;
}