body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-size: 1rem;
    background-color: black;
    color: white;
    text-align: center;
    background-image: url('background.png');
    font-family: 'VictorMono', 'Courienterer New', Courier, monospace;
}

@font-face {
    font-family: 'VictorMono';
    src: url('/VictorMono-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'EarthTone';
    src: url('/EarthTone-Regular.ttf') format('truetype');
}

.main-title {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: white;
    z-index: 1000;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.sub-text {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    font-size: 0.9rem;
    color: rgb(94, 94, 94);
    z-index: 1000;
}

.graveyardMain {
    text-align: center;
    margin: 0;
    padding: 0;
    white-space: pre;
    box-sizing: border-box;

}

#canvas-container {
    width: 900vw; /* 5x width */
    height: 700vh; /* 3x height */
    position: relative;
    visibility: hidden;
    display: none;
    transition: background-color 0.3s ease;
    z-index: 2;
}

.tap-text {
    position: absolute;
    pointer-events: none;
    opacity: 1;
    transition: opacity 1s ease-out;
    font-family: monospace; /* Better for ASCII art */
    white-space: pre; /* Preserves spaces and formatting */
    text-shadow: 0 0 10px white; /* Add slight glow effect */
}

.content-div, .content-div-2, .content-div-landscape {
    position: absolute;
    padding: 20px;
    background-color: transparent;
    font-family: monospace;
    white-space: pre-wrap;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50px;
    height: auto;
    min-height: 100px;
    text-align: justify;
    transition: opacity 0.5s ease-in-out;
    text-shadow: 0 0 10px white;
    font-size: 1rem;
    box-sizing: border-box;
    /* line-height: 1.5; */
}


.content-div {
    transform: skewY(-20deg) translateZ(20px);
    perspective: 1000px;
    animation: ghostfade 4s infinite;
}

.content-div-2 {
    transform: skewY(20deg) translateZ(-20px);
    perspective: 1000px;    
    animation: ghostfade 4s infinite;
}

.content-div-landscape {
    transform: skewY(20deg) translateZ(-20px);
    perspective: 1000px;
    opacity: 0.2;
}

.text-line {
    display: block;
    width: 100%;
    text-align: justify;
    text-align-last: justify;
    margin: 2px 0;
}

.grained-element {
    background-image: url('background.png');
    background-repeat: repeat;
    visibility: hidden;
    width: 900vw; /* 5x width */
    height: 700vh; /* 3x height */
    display: none;
    opacity: 0.8;
    /* overflow: hidden; */
}

.grained-element::before {
    background-image: url('background.png');
    position: absolute;
    content: "";
    width: 900vw; /* 5x width */
    height: 700vh; /* 3x height */
   
    top: 0;
    left: 0;
    animation-name: grained;
    animation-iteration-count: infinite;
    animation-duration: 3s;
    animation-timing-function: steps(1);
    z-index: -1;
}

@keyframes grained {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-5px, 5px); }
    50% { transform: translate(3px, -6px); }
    75% { transform: translate(-2px, 3px); }
    100% { transform: translate(0, 0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
    100% { transform: translateY(0px); }
}

@keyframes ghostfade {
    0% { opacity: 0.3; }
    50% { opacity: 0.4; }
    100% { opacity: 0.3; }
}

@keyframes windBlow {
    0% { opacity: 0.05; }
    50% { opacity: 0.4; }
    100% { opacity: 0.05; }
}



#bury_entry {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 80vw;
    z-index: 1000;
    font-size: 1rem;
    color: rgb(138, 138, 138);
    cursor: pointer;
    transition: opacity 0.8s ease;
    display: none; /* Initially hidden */
    opacity: 0; /* Start with opacity 0 for fade in */
}

#bury_entry.visible {
    display: block;
    opacity: 1;
}

#bury_entry:hover {
    opacity: 0.8;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    #bury_entry {
        width: 80vw;
        padding: 10px;
        bottom: 10px;
    }
}

.intro-text {
    font-family: 'EarthTone', monospace;
    font-size: 1.1rem;
    margin: 2rem auto;
    padding: 0 20px;
}

.graveyard-count {
    background-color: rgb(15, 15, 15);
    /* background-image: url('/rock_bg.png'); */
    position: fixed;
    color: white;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure it stays above other content */
    transition: opacity 0.5s ease-in-out;
}

.background-image {
    /*  background image for the main site... */
    background-image: linear-gradient(rgba(182, 177, 177, 0.98), rgba(182, 179, 179, 0.99)), url('rock_pattern.png');
    opacity: 0.001;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    position: absolute;
    /* top: 0;
    left: 0; */
    width: 100%;
    height: 100%;
    z-index: -1;
}

.rock-svg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.9;
}

.rock-svg path {
    stroke: #4C484A;
    stroke-width: 3px;
    filter: url(#noise1);
}

/* Apply filter to all text elements */
/* p, span, div, button {
    filter: url(#distort);
} */

/* Bury Modal Styles */
.bury-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(46, 46, 46, 0.9);
    opacity: 0.6;
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 80%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
    min-height: 200px;
    justify-content: center;
}

.bury-modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.bury-modal-title {
    color: white;
    font-family: 'EarthTone', monospace;
    font-size: 1.2rem;
    text-align: center;
    margin: 0;
    transition: all 0.3s ease;
}

.bury-modal-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.bury-modal-textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px;
    font-family: 'VictorMono', monospace;
    resize: vertical;
    min-height: 100px;
    width: 100%;
}

.bury-modal-textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.bury-modal-submit,
.bury-modal-close {
    background: none;
    border: none;
    color: white;
    padding: 8px 16px;
    font-family: 'VictorMono', monospace;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-align: center;
}

.bury-modal-submit:hover,
.bury-modal-close:hover {
    opacity: 0.8;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .bury-modal {
        width: 90%;
        padding: 15px;
    }
    
    .bury-modal-title {
        font-size: 1rem;
    }
}