@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

.titulus {
    font-size: 48px;
    font-weight: bold;
    background: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-align: center;
    margin-top: 20vh;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px auto;
    max-width: 600px;
}

.search-box-wrapper {
    position: relative;
    width: 100%;
}

.search-box {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border: 2px solid #ccc;
    border-radius: 25px;
    outline: none;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: transparent;
}

.prediction-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 15px;
    font-size: 18px;
    color: #999;
    pointer-events: none;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: calc(15px + var(--input-width, 0px));
}

.button-container {
    display: flex;
    gap: 20px;
}

.search-button, .lucky-button {
    padding: 12px 24px;
    font-size: 16px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button {
    background-color: #4285f4;
    color: white;
}

.lucky-button {
    background-color: #34a853;
    color: white;
}

.search-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.lucky-button:hover{
    transform: scale(2);
    background-color: rgb(255, 0, 0);
}

.hover-word {
    display: inline-block;
    transition: font-size 0.1s ease;
}

.hover-word:hover {
    font-size: 200%;
    z-index: 100;
    position: relative;
}

footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    background-color: #f8f9fa;
    color: #333;
    font-size: 14px;
}

sup {
    font-size: 50%;
    color: #6c757d;
}

sup:hover {
    color: crimson;
    cursor: pointer;
    font-size: 1700%;
    background-image: url('images/TM.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: block;
    position: fixed;
    top: 0;
    z-index: 102;
}

.text {
    font-size: 24px;
    text-align: center;
    border: 1px solid black;
    border-radius: 10px;
    padding: 10px;
    margin-left: 10%;
    margin-right: 10%;
}

.chain-image {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80vh;
    opacity: 0;
    transition: opacity 5s ease;
    pointer-events: none;
    z-index: 1000;
}

.tyumi-image {
    position: fixed;
    top: 80%;
    left: 10%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    transition: opacity 5s ease;
    pointer-events: none;
    z-index: 1000;
}

.stu-image {
    position: fixed;
    top: 70%;
    left: 70%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    transition: opacity 5s ease;
    pointer-events: none;
    z-index: 1000;
}

.nonagon-image {
    position: fixed;
    top: 30%;
    left: 20%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    transition: opacity 5s ease;
    pointer-events: none;
    z-index: 1000;
}

.engine-image {
    position: fixed;
    top: 50%;
    left: 77%;
    transform: translate(-50%, -50%);
    max-width: 60%;
    max-height: 60%;
    opacity: 0;
    transition: opacity 5s ease;
    pointer-events: none;
    z-index: 1000;
}

.hyper-image {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 45%;
    max-height: 45%;
    opacity: 0;
    transition: opacity 5s ease;
    pointer-events: none;
    z-index: 1000;
}

.poly-image {
    position: fixed;
    top: 60%;
    left: 35%;
    transform: translate(-50%, -50%);
    max-width: 60%;
    max-height: 60%;
    opacity: 0;
    transition: opacity 5s ease;
    pointer-events: none;
    z-index: 1000;
}

.melt-image {
    position: fixed;
    top: 44%;
    left: 74%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    transition: opacity 5s ease;
    pointer-events: none;
    z-index: 1000;
}

.gif {
    display: block;
    margin: 20px auto;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.funky-tteny {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    cursor: pointer;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.funky-tteny:hover {
    animation: rainbow 0.5s infinite, spin 1s infinite, bounce 0.3s infinite, pulse 0.5s infinite, wave 2s infinite;
    transform: scale(2) rotate(720deg);
    text-shadow: 0 0 10px #fff,
                 0 0 20px #fff,
                 0 0 30px #fff,
                 0 0 40px #ff00de,
                 0 0 70px #ff00de,
                 0 0 80px #ff00de,
                 0 0 100px #ff00de,
                 0 0 150px #ff00de;
    letter-spacing: 10px;
    filter: hue-rotate(360deg);
}

.funky-tteny:not(:hover) {
    animation: spin-out 1s ease-out;
}

@keyframes spin-out {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes rainbow {
    0% { color: red; }
    14% { color: orange; }
    28% { color: yellow; }
    42% { color: green; }
    57% { color: blue; }
    71% { color: indigo; }
    85% { color: violet; }
    100% { color: red; }
}

@keyframes spin {
    0% { transform: rotate(0deg) scale(2); }
    100% { transform: rotate(720deg) scale(2); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(2); }
    50% { transform: translateY(-30px) scale(2); }
}

@keyframes pulse {
    0%, 100% { transform: scale(2); }
    50% { transform: scale(2.5); }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg) scale(2); }
    25% { transform: rotate(-10deg) scale(2); }
    75% { transform: rotate(10deg) scale(2); }
}

.nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
    font-family: 'Poppins', sans-serif;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
    text-shadow: 0 0 10px #fff;
}

.copyright-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    color: #fff;
}

.modal-content h2 {
    color: #ff4444;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.modal-content p {
    margin-bottom: 1rem;
    line-height: 1.5;
    color: #e0e0e0;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.modal-content button {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-content .primary-button {
    background-color: #ff4444;
    color: white;
}

.modal-content .secondary-button {
    background-color: #333;
    color: white;
    border: 1px solid #555;
}

.modal-content button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.modal-content .primary-button:hover {
    background-color: #ff3333;
}

.modal-content .secondary-button:hover {
    background-color: #444;
}