body {
    background-color: #1a1919;
    color: #fff;
    font-family: Arial, sans-serif;
    text-align: center;
    padding: 100px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tabs, .title {
    position: absolute;
    display: flex;
    align-items: center;
}
.tabs {
    top: 10px;
    right: 10px;
    gap: 10px;
}
.tab {
    padding: 10px 20px;
    background-color: #333;
    border-radius: 5px;
    cursor: pointer;
}
.tab:hover {
    background-color: #555;
}
.title {
    top: 10px;
    left: 10px;
    font-size: 18px;
    font-weight: bold;
}
.logo {
    margin-right: 10px;
    max-height: 30px;
}
.search-bar {
    margin: 20px 0;
    width: 80%;
    max-width: 600px;
}
.search-bar input {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    background-color: #333;
    color: #fff;
}
.search-bar input::placeholder {
    color: #bbb;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    width: 80%;
    max-width: 900px;
}
.grid-item {
    background-color: #333;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
}
.grid-item:hover {
    background-color: #555;
}
.grid-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
}
#popupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}
#popup {
    background-color: #1e1e1e;
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 1000px;
    height: 700px;
    overflow: auto;
    resize: both;
}
#closeButton {
    background-color: transparent;
    color: #fff;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    float: right;
}
.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background-color: #1a1919;
}
.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.fps-counter {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 5px;
    border-radius: 3px;
    display: none;
    z-index: 1000;
}
#fullscreenButton, #toggleFPSButton {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 10px;
}