/* Generale */
body {
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
}

.logo {
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 200px;
    border-radius: 50%;
    object-fit: cover;
}

.center {
    margin-top: 50px;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.centernom {
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

h2 {
    color: white;
    text-align: center;
}

/* Tabelle */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    color: white;
    border-color: white;
}

th,
td {
    border: 1px solid white;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #333;
}

td {
    background-color: #222;
}

a {
    text-decoration: none;
    color: white;
}

a:hover {
    text-decoration: underline;
    color: white;
}

/* Barra di ricerca */
#searchInput,
#leftSearchInput {
    background-color: #222;
    color: white;
    border: 2px solid #444;
    padding: 10px 15px;
    border-radius: 25px;
    margin-bottom: 20px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

#searchInput {
    width: 88%;
    max-width: 300px;
}

#leftSearchInput {
    width: 90%;
    max-width: 330px;
}

#searchInput:focus,
#leftSearchInput:focus {
    border-color: white;
    box-shadow: 0 0 10px rgba(0, 183, 183, 1);
}

#searchInput::placeholder,
#leftSearchInput::placeholder {
    color: #bbb;
    font-style: italic;
}

/* Input Password */
#passwordInput {
    background-color: #222;
    color: white;
    border: 2px solid #444;
    padding: 10px 15px;
    border-radius: 25px;
    width: 88%;
    max-width: 300px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

#passwordInput:focus {
    border-color: white;
    box-shadow: 0 0 10px rgba(0, 183, 183, 1);
}

#passwordInput::placeholder {
    color: #bbb;
    font-style: italic;
}

/* Bottoni */
button {
    background-color: #444;
    color: white;
    border: 2px solid #a1a1a1;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 10px;
}

button:hover {
    background-color: #444;
    box-shadow: 0 0 10px rgba(0, 183, 183, 1);
    border-color: white;
}

button:focus {
    outline: none;
}

button:active {
    background-color: #222;
    box-shadow: 0 0 5px rgba(0, 183, 183, 1);
}

/* Sidebar degli sponsor (già esistente a destra) */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 12%;
    height: 100vh;
    background-color: #111;
    padding: 20px;
    overflow-y: auto;
    border-left: 2px solid white;
    transition: all 0.3s ease;
}

.sidebar h3.center {
    color: white;
    text-align: center;
    margin-bottom: 15px;
}

.sponsor-box {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #222;
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
    text-align: center;
}

.sponsor-box a {
    color: #00b3b3;
    font-weight: bold;
}

.sponsor-box p {
    font-size: 14px;
    color: #bbb;
}

/* Footer */
footer {
    color: white;
    text-align: center;
    padding: 20px 0;
    background-color: #222;
    margin-top: 50px;
}

footer a {
    color: #00b3b3;
}

/* Mobile: Sidebar a destra nascosta */
@media screen and (max-width: 768px) {
    .sidebar {
        visibility: hidden;
    }

    .sponsor-box {
        visibility: hidden;
    }

    .sponsor-box p {
        visibility: hidden;
    }
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox-overlay img {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}

.screenshot-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
    /* Centra verticalmente */
    margin-bottom: 20px;
}

.screenshot-gallery img {
    max-width: 150px;
    height: fit-content;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 4px;
}

/* Sidebar a sinistra (menu Tools) */
.left-sidebar {
    position: fixed;
    top: 0;
    left: -400px;
    /* inizialmente nascosta fuori schermo */
    width: 350px;
    height: 100vh;
    background-color: #111;
    padding: 20px;
    overflow-y: auto;
    border-right: 2px solid white;
    transition: left 0.3s ease;
    z-index: 1100;
}

.left-sidebar.active {
    left: 0;
}

.left-sidebar h3 {
    color: white;
    text-align: center;
    margin-bottom: 15px;
}

.left-sidebar h3.left {
    color: white;
    text-align: left;
    margin-bottom: 15px;
}

.left-sidebar table {
    width: 100%;
    border-collapse: collapse;
    color: white;
}

.left-sidebar th,
.left-sidebar td {
    border: 1px solid white;
    padding: 8px;
    text-align: left;
}

.left-sidebar th {
    background-color: #333;
}

.left-sidebar td {
    background-color: #222;
}

/* Pulsante hamburger per aprire il menu */
.hamburger.hidden {
    display: none;
}

.hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    z-index: 1200;
}

/* Pulsante per chiudere il menu */
.closebtn {
    font-size: 30px;
    color: white;
    cursor: pointer;
    display: block;
    text-align: right;
    margin-bottom: 10px;
}

.noselect {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

br{
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
}

/* Rounded border */
hr {
    border-top: 2px solid #ffffff;
    border-radius: 5px;
}