html {
    scroll-behavior: smooth;
}

body {
    color: #333;
    background-color: #f5f5f5;
    margin: 0;
    background-repeat: no-repeat;
    background-attachment: fixed;
    text-transform: capitalize;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

#logo {
    margin-left: 44%;
    position: fixed;
    width: 10%;
    top: 2%;
    left: 1%;
    transition: .5s;
    border-radius: 10px;
}

#logo:hover {
    transform: scale(1.1);
}

#titlediv {
    width: 100%;
    text-align: center;
}

h1 {
    padding-top: 8%;
    font-size: 10vw;
    font-weight: 300;
}

#bookmarks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 1.5rem;
    padding-bottom: 20%;
}

#bookmarks a {
    padding-right: 30px;
    transition: 0.5s;
}

#bookmarks a:hover,
footer a:hover {
    transform: translateY(-10px);
}

.alterh1 {
    text-align: center;
    font-size: 3rem;
    padding: 10%;
}

#scripts div,
#otherworks div {
    width: 300px;
    height: 295px;
    border: 5px solid #ff6347;
    text-align: center;
    background-color: #000;
    color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#scripts div img,
#otherworks div img {
    max-width: 100%;
    max-height: 185px;
    border-radius: 8px 8px 0 0;
}

#scripts div p,
#scripts div h2,
#otherworks div p,
#otherworks div h2 {
    font-size: 1.5rem;
}

#scripts div h2:hover,
#otherworks div h2:hover {
    cursor: pointer;
}

#scripts,
#otherworks {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    padding-top: 25px;
    gap: 10px 5px;
    overflow-y: hidden;
}

div a:hover,
#bookmarks a:hover {
    cursor: pointer;
}

a,
a:hover,
a:focus,
a:active,
a:visited {
    text-decoration: none;
    color: inherit;
    transition: .5s;
}

p {
    padding: 0;
}

#treasurechestwindow,
#treasurechestoswindow,
#newplayerwindow,
#newplayeroswindow,
#tobaccowindow,
#tawktoblockerwindow,
#duplicatedtuningidfinderwindow {
    display: none;
    width: 80%;
    max-width: 600px;
    height: auto;
    background-color: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 99;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: left;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

#treasurechestwindow p,
#treasurechestoswindow p,
#newplayerwindow p,
#newplayeroswindow p,
#tobaccowindow p,
#tawktoblockerwindow p,
#duplicatedtuningidfinderwindow p {
    margin: 10px 0;
    color: #333;
    line-height: 1.6;
}

#treasurechestwindow h1,
#treasurechestoswindow h1,
#newplayerwindow h1,
#newplayeroswindow h1,
#tobaccowindow h1,
#tawktoblockerwindow h1,
#duplicatedtuningidfinderwindow h1 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #ff6347;
}

#treasurechestwindow .close-btn,
#treasurechestoswindow .close-btn,
#newplayerwindow .close-btn,
#newplayeroswindow .close-btn,
#tobaccowindow .close-btn,
#tawktoblockerwindow .close-btn,
#duplicatedtuningidfinderwindow .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    transition: color 0.3s ease;
}

#treasurechestwindow .close-btn:hover,
#treasurechestoswindow .close-btn:hover,
#newplayerwindow .close-btn:hover,
#newplayeroswindow .close-btn:hover,
#tobaccowindow .close-btn:hover,
#tawktoblockerwindow .close-btn:hover,
#duplicatedtuningidfinderwindow .close-btn:hover {
    color: #ff6347;
}

#about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.aboutdivs {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: 0.5s;
}

.aboutdivs:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);   
}

.aboutdivs i {
    font-size: 2rem;
    color: #ff6347;
    margin-bottom: 1rem;
}

footer {
    backdrop-filter: blur(10px);
    width: 100%;
    height: fit-content;
    position: absolute;
    color: #333;
    margin-top: 2%;
    font-weight: bold;
}

#Partners {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: 3%;
    font-size: 1.5rem;
}

#Partners img {
    width: 35px;
    vertical-align: middle;
}

#backtotop {
    display: none;
    cursor: pointer;
    position: fixed;
    bottom: 1%;
    margin-left: 95%;
    z-index: 99;
}

#filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#filter-container label {
    margin-right: 10px;
    font-size: 1.2rem;
    color: #333;
}

#scriptfilter {
    background: #FFA500;
    border: 1px solid #FFA500;
    border-radius: 5px;
    box-shadow: 0 0 10px #FFA500 inset;
    height: 40px;
    width: 150px;
    color: #fff;
    font-size: 1rem;
    padding: 5px;
    transition: background 0.3s ease;
}

#scriptfilter:hover {
    background: #FF8C00;
}

#scriptfilter option {
    background: #fff;
    color: #333;
}

#Discount {
    font-size: 2rem;
    font-weight: bolder;
    color: red;
    text-align: center;
}

.ConfigPreview {
    text-align: center;
    font-size: 1.5rem;
    color: gold;
}

.BuyButton,
.PreviewButton {
    width: fit-content;
    height: fit-content;
    text-align: center;
    vertical-align: middle;
    margin: 0 auto;
    margin-top: 5%;
    padding: 2%;
    border-radius: 15px;
    border: 1px solid gray;
}

.BuyButton {
    color: greenyellow;
    background-color: green;
    border: 1px solid green;
}

.PreviewButton {
    color: blue;
    background-color: cyan;
    border: 1px solid cyan;
}

.ScriptWindowH1 {
    font-size: 1.5rem;
    padding-top: 0;
    padding-bottom: 5%;
    text-align: center;
    margin-left: 5%;
}

#X {
    color: red;
    font-size: 2rem;
    float: right;
    margin: 2%;
    position: sticky;
    cursor: pointer;
}

#resources {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.resource-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: 0.5s;
    width: 300px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.resource-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.resource-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-bottom: 5px solid #ff6347;
}

.resource-item h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 10px 0;
}

.resource-item p {
    font-size: 1rem;
    color: #666;
    padding: 0 10px 10px;
    flex-grow: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.resource-item a {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
}

.new {
    position: relative;
}

.new::after {
    content: "NEW";
    position: absolute;
    top: -8px;
    right: -5px;
    background: red;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.8rem;
}
