@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700;900&display=swap');

* {
    margin:0;
}

body {
    margin: 0;
    background-color: #202124;
    color: white;
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

.container {
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.top {
    padding-top: 25px;
    width: 100%;
    display: flex;
    align-items: center;
}

a {
    color: white;
    font-weight: normal;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.box {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
    width: 600px;
    max-width: 90vw;
    margin: 0 auto;
}

.search-wrap {
    position: relative;
    display: block;
    width: 600px;
    max-width: 90vw;
    margin: 0 auto;
}

.search-wrap,
.search-input {
    box-sizing: border-box;
}

.search-input {
    display: flex;
    padding: 5px 10px;
    border-radius: 20px;
    background-color: #333;
    color: white;
    width: 100%;
}

.search-input .icon {
    width: 50px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-input .right {
    width: 50px;
}

.search-input input {
    flex: 1;
    background-color: transparent;
    color: white;
    border: 0;
    outline: none;
    height: 100%;
    font-size: 21px;
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;    
}

.hidden {
    display: none;
}

.suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background-color: #303134;
    color: white;
    border: 1px solid #3c4043;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    overflow: hidden;
    z-index: 50;
}

.suggestion-list {
    max-height: 320px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #3c4043;
}

.suggestion-item .text {
    font-size: 16px;
}

.suggestions .actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #3c4043;
    background-color: #2d2f31;
}

.footer {
    padding-top: 10px;
    padding-bottom: 10px;
    background-color: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: 600px;
    max-width: 90vw;
    margin: 0 auto;
}

button {
    padding: 0 16px;
    height: 36px;
    margin-right: 0;
    cursor: pointer;
    background-color: #303134;
    color: white;
    font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    border: 0;
    border-radius: 8px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-in-out;
}

.modal.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: #303134;
    border-radius: 16px;
    padding: 32px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
    z-index: 1001;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: 500;
    color: white;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 32px;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: #404144;
    color: white;
}

.changelog-content {
    color: #e8eaed;
    line-height: 1.6;
}

.changelog-content p {
    margin: 12px 0;
}

.changelog-content ul {
    margin: 12px 0;
    padding-left: 24px;
}

.changelog-content li {
    margin: 8px 0;
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
}