@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    animation: fadeIn 0.3s ease-in-out;
}

body {
    font-family: 'Arial', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(270deg, #1e232a, #13161b);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    background-color: #13161b;
    color: #fff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 40px;
    scroll-behavior: smooth;
    transition: background-image 0.3s ease;
}

p.centered {
    color: #777;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}

.agreement-container {
    display: flex;
    justify-content: center;
    gap: 25px;
}

button.agree {
    background-color: #35617e;
    color: #e4e3e3;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
#agreeYes:hover {
    background-color: #39db34;
    color: #ffffff;
    transform: scale(1.1) rotate(3deg);
    box-shadow: 0 0 10px rgba(144, 238, 144, 0.8), 0 0 20px rgba(124, 252, 0, 0.6), 0 0 30px rgba(0, 255, 127, 0.4);
}

#agreeNo:hover {
    background-color: #db3434;
    color: #ffffff;
    transform: scale(1.1) rotate(-360deg);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8), 0 0 20px rgba(255, 0, 0, 0.6), 0 0 30px rgba(255, 0, 0, 0.4);
}

button.centered {
    margin: 0;
}

h1.header {
    margin-bottom: 0;
    font-size: 2.5rem;
    text-align: center;
}

h1 {
    margin-bottom: 20px;
    font-size: 2.5rem;
    text-align: center;
}

.search-container {
    position: fixed;
    top: 15px;
    width: 70%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.search-container input {
    width: 100%;
    padding: 10px 15px;
    font-size: 1rem;
    border: 2px solid #2d323a;
    border-radius: 5px;
    background-color: #13161b;
    color: #fff;
    outline: none;
    transition: all 0.3s ease;
}

.expansion-icon {
    width: 30px;
    height: 30px;
    margin-right: 10px;
}

.search-container input:focus {
    border-color: #191f26;
}

.results {
    padding-top: 35px;
    width: 80%;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    margin-bottom: 10px;
    border: 1px solid #2d323a;
    border-radius: 5px;
    background-color: transparent;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
    pointer-events: auto;
}

.result-item:hover {
    transform: translateY(-5px);
    background-color: #1e232a;
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.preset-box {
    display: flex;
    align-items: center;
}

.preset-category {
    padding: 0 5px;
    font-size: 1rem;
    font-weight: bold;
    color: #000;
    background-color: #acbdd5;
    border-radius: 5px;
    margin-right: 10px;
}

.preset-name {
    font-size: 1rem;
    color: #fff;
}

.expansion-name {
    position: absolute;
    left: 50%;
    font-size: 0.9rem;
    color: #888;
    margin-right: 10px;
}

.preset-id {
    font-size: 0.9rem;
    color: #888;
}

.no-results {
    text-align: center;
    font-size: 1.2rem;
    color: #888;
    margin-top: 20px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

#modal2 {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#modal2image {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
}

.modal-content {
    background-color: #13161b;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.modal-content2 {
    background-color: #13161b;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    height: 50%;
    position: relative;
    margin: 20px;
    line-height: 1.6;
    font-size: 0.9rem;
    overflow-y: scroll;
}

.modal-content2 h2 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #ffffff;
}
.modal-content2 ul {
    list-style: none;
    padding-left: 0;
    margin-left: 2px;
}
.modal-content2 li {
    margin-bottom: 8px;
    margin-left: 10px;
}
.modal-content2 ul ul {
    padding-left: 20px;
    list-style-type: disc;
}
.modal-content2 strong {
    color: #82a6c4;
}

.close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
}

.list-name {
    top: 10.6%;
    left: 14.9%;
    position: absolute;
    font-size: 1rem;
    font-weight: semi-bold;
    color: #687281;
    margin-bottom: 10px;
}

.list-xp {
    top: 10.6%;
    left: 50%;
    position: absolute;
    font-size: 1rem;
    font-weight: semi-bold;
    color: #687281;
    margin-bottom: 10px;
}

.list-id {
    top: 10.6%;
    right: 17.4%;
    position: absolute;
    font-size: 1rem;
    font-weight: semi-bold;
    color: #687281;
    margin-bottom: 10px;
}

.nonsel {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#dwp-available {
    color: rgba(255, 255, 255, 0.5)
}

#download-dwp {
    display: none;
    position: absolute;
    border: none;
    background: none;
    top: 5px;
    right: 45px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
}

#request-dwp {
    display: none;
    position: absolute;
    border: none;
    background: none;
    top: 5px;
    right: 45px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
}

#upload-dwp {
    display: none;
    position: absolute;
    border: none;
    background: none;
    top: 5px;
    right: 75px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
}

.load-more {
    color: #3498db;
    font-style: underline;
    border: none;
    cursor: pointer;
}

#search-options {
    position: relative;
    margin-left: 10px;
    border: 2px solid #5c6e7d;
    color: #f1f4f8;
    width: 150px;
    max-width: 100%;
    border-radius: 15px;
    padding: 8px 12px;
    height: auto;
    background-color: #191f26;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

#search-options:hover {
    background-color: #2a323d;
    border-color: #191f26;
    color: #ffffff;
}

.req-count {
    position: relative;
    padding-left: 4px;
    font-size: 0.8rem;
    color: #888;
    transition: all 0.1s ease;
}

.req-count:hover {
    text-decoration: line-through;
    color: #8d4747;
    pointer-events: all;
    cursor: pointer;
}

#loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
}

.loading-gif {
    max-width: 400px;
    max-height: 400px;
}

#upload-p {
    position: absolute;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    top: 80%;
    left: 40%;
}

.glow {
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.8), 0 0 10px rgba(52, 152, 219, 0.6), 0 0 18px rgba(52, 152, 219, 0.4);
    margin-bottom: 2px;
}

.glow-text {
    margin: 0;
    padding: 0;
    margin-bottom: 10px;
    margin-top: 4px;
    font-weight: bold;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5), -1px -1px 0 rgba(0, 0, 0, 0.5), 1px -1px 0 rgba(0, 0, 0, 0.5), -1px 1px 0 rgba(0, 0, 0, 0.5);
    color: #3498db;
}