body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background: url('./Phantasmal.png') no-repeat center center fixed !important;
    background-size: cover !important;
    font-family: 'Phantasmal', sans-serif;
    color: #ff0000; /* Blood red text color */
    overflow: hidden;
    transition: all 0.5s ease;
}

#main-content {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    text-align: center;
    width: 80%;
    max-width: 600px;
}

.title {
    font-size: 4rem;
    margin-bottom: 2rem;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    letter-spacing: 3px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 255, 0, 0.8), 0 0 30px rgba(0, 255, 0, 0.6);
    }
}

.input-container {
    margin-top: 2rem;
}

.input-field {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #4a4a4a;
    border-radius: 5px;
    color: #e0e0e0;
    font-family: 'Phantasmal', sans-serif;
    font-size: 1.2rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

.response-area {
    margin-top: 20px;
    min-height: 100px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    font-size: 1.1rem;
    text-align: left;
    word-wrap: break-word;
}

.thinking {
    color: #00ff00;
}

.error {
    color: #ff5555;
    font-family: monospace;
}

#floating-text {
    position: absolute;
    font-family: 'Phantasmal', sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    pointer-events: none;
    z-index: -1;
}

.floating-text-element {
    position: absolute;
    animation: float 15s infinite linear;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.7);
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    100% {
        transform: translate(100vw, 100vh) rotate(360deg);
        opacity: 0;
    }
}

#horror-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: #000;
    z-index: 1000;
}

.horror-text {
    color: #ff0000;
    font-size: 3rem;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
    animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
    border-right: 3px solid #ff0000;
    letter-spacing: 2px;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #ff0000 }
}

.shake {
    animation: shake 0.1s cubic-bezier(.36,.07,.19,.97) infinite;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

.violent-shake {
    animation: violent-shake 0.05s cubic-bezier(.36,.07,.19,.97) infinite;
}

@keyframes violent-shake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-20px, -10px); }
    20% { transform: translate(20px, 10px); }
    30% { transform: translate(-15px, 5px); }
    40% { transform: translate(15px, -5px); }
    50% { transform: translate(-10px, 10px); }
    60% { transform: translate(10px, -10px); }
    70% { transform: translate(-5px, 15px); }
    80% { transform: translate(5px, -15px); }
    90% { transform: translate(0, 20px); }
}

.discord-button {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #4a4a4a;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    z-index: 100;
    text-decoration: none;
}

.discord-button:hover {
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.discord-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    filter: invert(1) drop-shadow(0 0 5px rgba(0, 255, 0, 0.7));
}

.discord-text {
    color: #00ff00;
    font-family: 'Phantasmal', sans-serif;
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
    text-align: center;
    margin: 0;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.discord-button:hover .discord-icon {
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .discord-button {
        top: auto;
        bottom: 20px;
        right: 20px;
        transform: none;
    }
    
    .discord-button:hover {
        transform: scale(1.05);
    }
}

.credits-button {
    position: fixed;
    right: 20px;
    top: calc(50% + 80px); /* Position below Discord button */
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #4a4a4a;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    z-index: 100;
    cursor: pointer;
}

.credits-button:hover {
    border-color: #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.credits-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    filter: invert(1) drop-shadow(0 0 5px rgba(0, 255, 0, 0.7));
}

.credits-text {
    color: #00ff00;
    font-family: 'Phantasmal', sans-serif;
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(0, 255, 0, 0.6);
    text-align: center;
    margin: 0;
}

.credits-button:hover .credits-icon {
    animation: pulse 2s infinite;
}

/* Credits Sequence */
#credits-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.credits-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scrollCredits 30s linear forwards;
    text-align: center;
}

.credit-item {
    color: white;
    font-family: 'Phantasmal', sans-serif;
    margin: 20px 0;
    opacity: 0;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.credit-logo {
    margin-top: 100px;
    opacity: 0;
    max-width: 300px;
    animation: fadeInLogo 2s ease forwards;
    animation-delay: 15s;
}

@keyframes scrollCredits {
    0% {
        transform: translateY(100vh);
    }
    100% {
        transform: translateY(-100vh);
    }
}

.credit-item:nth-child(1) {
    animation: fadeIn 2s ease forwards;
    animation-delay: 2s;
}

.credit-item:nth-child(2) {
    animation: fadeIn 2s ease forwards;
    animation-delay: 6s;
}

.credit-item:nth-child(3) {
    animation: fadeIn 2s ease forwards;
    animation-delay: 10s;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInLogo {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.exit-credits {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-family: 'Phantasmal', sans-serif;
    padding: 10px 20px;
    border: 1px solid white;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.exit-credits:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .credits-button {
        top: auto;
        bottom: 20px;
        right: 90px; /* Position next to Discord button */
        transform: none;
    }
    
    .credits-button:hover {
        transform: scale(1.05);
    }
}

/* Add this to your styles.css file */

.black-background {
    background: #000 !important;
    background-image: none !important;
}

/* Ensure the horror message takes priority */
#horror-message {
    z-index: 9999;
}

/* Updated styling for user photo */
.user-photo {
    margin-top: 20px;
    max-width: 300px;
    border: 2px solid #ff0000;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
    overflow: hidden;
}

.user-photo img {
    width: 100%;
    display: block;
}

/* Support Button */
.support-button {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid #4a4a4a;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
    z-index: 100;
    cursor: pointer;
}

.support-button:hover {
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    transform: translateY(-50%) scale(1.05);
}

.support-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 5px;
    filter: invert(1) drop-shadow(0 0 5px rgba(255, 0, 0, 0.7));
}

.support-text {
    color: #ff0000;
    font-family: 'Phantasmal', sans-serif;
    font-size: 1rem;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
    text-align: center;
    margin: 0;
}

.support-button:hover .support-icon {
    animation: pulse 2s infinite;
}

@media (max-width: 768px) {
    .support-button {
        top: auto;
        bottom: 20px;
        left: 20px;
        transform: none;
    }
    
    .support-button:hover {
        transform: scale(1.05);
    }
}

/* Support Screen */
#support-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    z-index: 1000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.support-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 80%;
    max-width: 600px;
}

.support-title {
    color: #ff0000;
    font-family: 'Phantasmal', sans-serif;
    font-size: 3rem;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
    margin-bottom: 50px;
    letter-spacing: 4px;
    animation: glitch 3s infinite alternate;
}

.support-buttons {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.support-option {
    position: relative;
    color: #ff0000;
    font-family: 'Phantasmal', sans-serif;
    font-size: 1.8rem;
    text-shadow: 0 0 8px rgba(255, 0, 0, 0.6);
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #4a4a4a;
    border-radius: 5px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
}

.support-option:hover {
    border-color: #ff0000;
    background: rgba(20, 0, 0, 0.8);
    transform: scale(1.03);
    letter-spacing: 2px;
}

.pulse-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #ff0000;
    border-radius: 5px;
    opacity: 0;
    z-index: -1;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.05);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.exit-support {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #ff0000;
    font-family: 'Phantasmal', sans-serif;
    padding: 10px 20px;
    border: 1px solid #ff0000;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.exit-support:hover {
    opacity: 1;
    background-color: rgba(255, 0, 0, 0.1);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

/* Robux Options Screen */
.support-subscreen {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #ff0000;
    font-family: 'Phantasmal', sans-serif;
    padding: 10px 20px;
    border: 1px solid #ff0000;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.back-button:hover {
    opacity: 1;
    background-color: rgba(255, 0, 0, 0.1);
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

.robux-option {
    display: flex;
    align-items: center;
    justify-content: center;
}

.robux-option::before {
    content: "R$";
    margin-right: 10px;
    font-size: 1.5rem;
}

/* Message Screen */
.message-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1100;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.message-content {
    background: rgba(20, 0, 0, 0.8);
    border: 2px solid #ff0000;
    padding: 30px;
    max-width: 80%;
    text-align: center;
    animation: flicker 4s infinite alternate;
}

.message-text {
    color: #ff0000;
    font-family: 'Phantasmal', sans-serif;
    font-size: 2rem;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.message-button {
    color: black;
    background-color: #ff0000;
    font-family: 'Phantasmal', sans-serif;
    font-size: 1.5rem;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0 auto;
    width: fit-content;
}

.message-button:hover {
    background-color: #c00000;
    transform: scale(1.05);
}

@keyframes glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                     -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                     0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                     -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                     0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                     0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                     -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                     0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                     -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                     0.05em 0 0 rgba(0, 255, 0, 0.75),
                     0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                     0.05em 0 0 rgba(0, 255, 0, 0.75),
                     0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
                     -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
                     -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

@keyframes flicker {
    0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
        box-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000, 0 0 30px #ff0000;
    }
    20%, 24%, 55% {
        box-shadow: none;
    }
}
