@import "css/global.css";

#header {
    background: url("../images/background.png") no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
    width: 100%;
    height: 95vh;
    padding-top: 160px;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media screen and (max-width: 768px) {
    #header {
        background-size: cover;
        background-position: center center;
        height: 90vh;
    }
}

#header .content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 150px;
    width: 100%;
    height: 620px;
    position: relative;
    background: transparent !important;
}

#header .content .left .ip-copied {
    color: var(--green-color);
    background: var(--ip-copied-background);
    padding: 10px 20px;
    width: fit-content;
    border-radius: 5px;
    font-size: 17px;
}

#header .content .left .ip-copied.active {
    display: flex;
}

#header .content .left .ip-copied.error {
    background: var(--warning-background);
    color: var(--red-color);
}

#header .content .left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#header .content .left .server-name {
    display: flex;
    flex-direction: column;
    font-family: "Mont", sans-serif;
}

#header .content .left .server-name p {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 900;
}

#header .content .left .server-name h1 {
    color: var(--main-color);
    text-shadow: 8px 5px 0px #000000;
    text-transform: uppercase;
    font-size: 65px;
    font-weight: 900;
}

#header .content .left .server-name h3 {
    color: #a3a3a3ab;
    font-size: 15px;
    font-weight: 900;
    font-style: italic;
}

#header .content .left .server-description {
    color: var(--description-color);
    font-size: 18px;
    font-weight: 400;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    line-height: 1.6;
}

#header .content .left .buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#header .content .left .buttons .copy-ip {
    font-family: "Nunito", sans-serif;
    background: var(--copy-ip-button-background);
    border: 2px solid var(--main-color);
    border-radius: 3px;
    padding: 10px 30px;
    color: var(--white-color);
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
}

#header .content .left .buttons .copy-ip:hover {
    font-family: "Nunito", sans-serif;
    opacity: 0.8;
}

#header .content .left .buttons .how-to-join {
    font-family: "Nunito", sans-serif;
    background: var(--how-to-join-button-background);
    border: 2px solid var(--description-color);
    border-radius: 3px;
    padding: 10px 30px;
    color: var(--description-color);
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}

#header .content .left .buttons .how-to-join:hover {
    font-family: "Nunito", sans-serif;
    opacity: 0.8;
}

#header .content .left .buttons .how-to-join2 {
    font-family: "Nunito", sans-serif;
    background: #35cf326c;
    border: 2px solid #35cf32;
    border-radius: 3px;
    padding: 10px 30px;
    color: var(--description-color);
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}

#header .content .left .buttons .how-to-join2:hover {
    font-family: "Nunito", sans-serif;
    opacity: 0.8;
}

#header .content .center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

#header .content .center .logo-img {
    max-width: 280px;
    transform: translatey(0px);
    animation: float 4s ease-in-out infinite;
}

#header .content .right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

#header .content .right .logo-img {
    max-width: 280px;
    transform: translatey(0px);
    animation: float 4s ease-in-out infinite;
}

#header .content .center .scritta-logo-img {
    max-width: 200px;
    justify-content: center;
    align-items: center;
    transform: translatey(0px);
    animation: float 4s ease-in-out infinite;
}

#header .content .right .stats {
    display: flex;
    flex-direction: row;
    gap: 50px;
    background: var(--stats-background);
    padding: 20px;
    border-radius: 5px;
}

#header .content .right .stats .stat {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

#header .content .right .stats .stat .icon {
    border-radius: 5px;
    background: var(--stat-icon-background-2);
    padding: 10px;
    transition: 0.2s ease-in-out;
}

#header .content .right .stats .stat .icon i {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    position: relative;
    background: var(--main-color);
    color: var(--white-color);
    border-radius: 5px;
}

#header .content .right .stats .stat:hover .icon {
    transform: scale(1.1);
}

#header .content .right .stats .stat .texts {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#header .content .right .stats .stat .texts h5 {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 17px;
    font-weight: 700;
}

#header .content .right .stats .stat .texts p {
    color: var(--description-color);
    font-size: 15px;
    font-weight: 400;
}

#header .content .right .stats .stat .texts p span {
    color: var(--green-color);
}

#about .content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

#about .content .left {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    gap: 40px;
}

#about .content .left .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
}

#about .content .left .section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: var(--description-color);
}

#about .content .left .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: var(--main-color);
}

#about .content .left .about-us {
    color: var(--description-color);
    font-size: 17px;
    max-width: 80%;
    line-height: 1.6;
}

#about .content .right {
    display: flex;
    justify-content: end;
    align-items: center;
    height: 100%;
    position: relative;
    width: 100%;
}

#about .content .right img {
    width: auto;
    max-height: 250px;
    position: right;
    z-index: 1;
    right: 100px;
}

#about .content .right .img-background {
    position: absolute;
    width: 210px;
    height: calc(100% - 40px);
    border-radius: 40px 3px;
    box-shadow: 5px 5px #504c13;
    background: #ffd900;
    z-index: 0;
    bottom: 5px;
}

#modalita .games-swiper {
    min-height: 330px;
    border-radius: 10px;
}

#modalita .games-swiper .game-card {
    position: relative;
    height: 320px;
    border-radius: 16px;
    transition: all 0.3s;
}

#modalita .games-swiper .game-card:is(.swiper-slide-active) {
    filter: drop-shadow(1px 2px 2px var(--main-color));
    border: 0.2px solid var(--main-color);
}

#modalita .games-swiper .game-card::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
}

#modalita .games-swiper .game-card:not(.swiper-slide-active) {
    transform: scale(0.8);
    opacity: 0.4;
    z-index: -1;
}

#modalita .games-swiper .game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

#modalita .games-swiper .game-card-details {
    position: absolute;
    left: 0;
    bottom: 0;
    margin-right: 40px;
    margin-left: 40px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

#modalita .games-swiper .game-card:not(.swiper-slide-active) .game-card-details {
    display: none;
}

#modalita .games-swiper .game-card-details h3 {
    position: relative;
    font-size: 18px;
    font-weight: 900;
    font-family: "Montserrat", serif;
    color: var(--main-color);
    filter: drop-shadow(2px 2px 2px #000000);
}

#modalita .games-swiper .game-card-details p {
    position: relative;
    margin: 0;
    color: antiquewhite;
    font-style: italic;
    filter: drop-shadow(2px 2px 2px #000000);
}

#modalita .games-swiper .game-card-details a {
    color: var(--main-color);
    font-style: italic;
    font-family: "Montserrat", serif;

    filter: drop-shadow(2px 2px 2px #000000);
}

@media screen and (max-width: 991px) {
    #modalita {
        padding-top: 60px;
    }
}

@media screen and (max-width: 768px) {
    #modalita {
        padding-top: 90px;
    }
}

#modalita .content .info .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
    font-family: "Montserrat", serif;
}

#modalita .content .info .section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: var(--description-color);
}

#modalita .content .info .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: var(--main-color);
}

#modalita .content .info .section-description {
    color: var(--description-color);
    font-size: 17px;
    max-width: 80%;
    padding-bottom: 2%;
    line-height: 3;
}

#discord {
    background: url("../images/background.png") no-repeat fixed center;
    min-width: 100%;
    height: 100%;
    background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    -webkit-background-size: cover;
    z-index: 0;
    display: flex;
    align-items: center;
}

#discord .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

#discord .content .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
    text-align: center;
}

#discord .content .section-title span {
    color: var(--main-color);
}

#discord .content .join-discord {
    font-family: "Nunito", sans-serif;
    background: var(--copy-ip-button-background);
    border: 2px solid var(--main-color);
    border-radius: 3px;
    padding: 10px 30px;
    color: var(--white-color);
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
}

#discord .content .join-discord:hover {
    opacity: 0.8;
    font-family: "Nunito", sans-serif;
}

#discord .content .join-discord a {
    font-family: "Nunito", sans-serif;
    text-decoration: none;
    color: var(--white-color);
}

#faq {
    background: var(--stats-background);
}

#faq .content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#faq .content .info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

#faq .content .info .section-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--white-color);
    position: relative;
}

#faq .content .info .section-title::before {
    content: "";
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 150px;
    height: 1px;
    border-radius: 5px;
    background: var(--description-color);
}

#faq .content .info .section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    border-radius: 5px;
    background: var(--main-color);
}

#faq .content .info .section-title span {
    color: var(--main-color);
}

#faq .content .info .section-description {
    color: var(--description-color);
    font-size: 17px;
    line-height: 1.6;
    max-width: 70%;
}

#faq .content .accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#faq .content .accordion .accordion-item {
    background: var(--stats-background);
    border-radius: 5px;
}

#faq .content .accordion .accordion-item .accordion-item-header {
    padding: 20px 50px 20px 20px;
    line-height: 1.6;
    font-weight: 900;
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
    color: var(--white-color);
    font-size: 17px;
}

#faq .content .accordion .accordion-item .accordion-item-header::after {
    content: "\002B";
    font-size: 20px;
    position: absolute;
    right: 20px;
}

#faq .content .accordion .accordion-item .accordion-item-header.active::after {
    content: "\2212";
}

#faq .content .accordion .accordion-item .accordion-item-body {
    max-height: 0;
    overflow: hidden;
    transition: 0.2s ease-in-out;
}

#faq .content .accordion .accordion-item .accordion-item-body .accordion-item-body-content {
    padding: 20px;
    line-height: 1.6;
    border-top: 1px solid var(--stats-background);
    color: var(--description-color);
}

@keyframes float {
    0% {
        transform: translatey(0px);
    }

    50% {
        transform: translatey(-20px);
    }

    100% {
        transform: translatey(0px);
    }
}

@media screen and (max-width: 1625px) {
    #header .content {
        padding: 150px 90px;
        align-items: start;
        justify-content: center;
    }
}

@media screen and (max-width: 1361px) {
    #header .content {
        flex-direction: column;
        padding: 120px 90px;
        height: 100%;
        gap: 60px;
    }

    #header .content .left {
        gap: 30px;
        justify-content: left;
    }

    #header .content .right .stats {
        gap: 10px;
        width: fit-content;
    }

    #header .content .right .logo-img {
        display: none;
    }

    @media screen and (min-height: 745px) {
        #header .content {
            justify-content: center;
        }

        #header .content .left {
            height: fit-content;
            justify-content: center;
            gap: 30px;
        }

        #header .content .right {
            height: fit-content;
            justify-content: center;
            gap: 30px;
        }
    }
}

@media screen and (max-width: 819px) {
    #header .content {
        padding: 150px 30px;
    }

    #header .content .left .server-name p {
        font-size: 15px;
        font-family: "Mont", sans-serif;
    }

    #header .content .left .server-name h1 {
        font-size: 40px;
        font-family: "Mont", sans-serif;
    }

    #header .content .left .server-description {
        font-size: 16px;
        margin-top: -30px;
    }

    #header .content .right {
        width: 100%;
    }

    #header .content .right .stats {
        width: 100%;
        justify-content: space-between;
    }
}

@media screen and (max-width: 621px) {
    #header .content .right .stats {
        width: 100%;
        flex-direction: column;
        justify-content: space-between;
        align-items: start;
    }

    #header .content .right .stats .stat:hover .icon {
        transform: scale(1);
    }
}

@media screen and (max-width: 447px) {
    #header .content .left .server-name h1 {
        font-size: 30px;
        font-family: "Mont", sans-serif;
    }
}

@media screen and (max-width: 383px) {
    #header .content .left .buttons {
        flex-direction: column;
    }
}

@media screen and (max-width: 1551px) {
    #about .content .left .about-us {
        max-width: 90%;
    }
}

@media screen and (max-width: 1183px) {
    #about .content {
        flex-direction: column;
        gap: 40px;
    }

    #about .content .left .about-us {
        max-width: 100%;
    }

    #about .content .right img {
        margin: auto;
        right: 0;
    }

    #about .content .right .img-background {
        width: 100%;
    }
}

@media screen and (max-width: 6729px) {
    #faq .content .info .section-description {
        max-width: 100%;
    }
}

#faq .content .faqds {
    border-radius: 3px;
    text-decoration: none !important;
    color: var(--main-color);
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.2s;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #100f10;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    animation: bounce 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards,
        fadeOut 1s 2s forwards;
}

@keyframes bounce {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(3);
    }

    100% {
        transform: scale(6);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.loaderr {
    border: 4px solid #191819;
    border-top: 4px solid #fe3e3e;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #fe3e3e;
    word-spacing: 20;
    font-size: 15px;
    font-weight: 400;
    justify-content: normal;
    align-items: normal;
    max-width: 500px;
    line-height: 11.2;
    margin-left: -5pc;
    height: 100px;
}

.video-container {
    position: relative;
    width: 730px;
    height: 400px;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 40px 3px;
    animation: pulse-shadow 2s infinite;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border-radius: 40px 3px;
}

@media (max-width: 767px) {
    .video-container {
        width: 100%;
        height: auto;
        padding-bottom: 56.25%;
        margin-top: 20px;
        animation: pulse-shadow 2s infinite;
    }

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    body {
        display: flex;
        flex-direction: column;
    }
}

@keyframes pulse-shadow {
    0% {
        box-shadow: 0 4px 20px rgba(246, 133, 39, 0.3);
    }

    50% {
        box-shadow: 0 4px 30px rgba(246, 133, 39);
    }

    100% {
        box-shadow: 0 4px 20px rgba(246, 133, 39, 0.3);
    }
}

#header .content .left .server-namee {
    display: flex;
    flex-direction: column;
    font-family: "Mont", sans-serif;
}

#header .content .left .server-namee p {
    color: var(--white-color);
    text-transform: uppercase;
    font-size: 18px;
    font-weight: 900;
}

#header .content .left .server-namee h1 {
    color: var(--main-color);
    text-shadow: 8px 5px 0px #000000;
    text-transform: uppercase;
    font-size: 65px;
    font-weight: 900;
}

#header .content .left .server-namee h3 {
    color: #a3a3a3ab;
    font-size: 15px;
    font-weight: 900;
    font-style: italic;
}

@media screen and (max-width: 819px) {
    #header .content .left .server-namee {
        padding-top: 100px;
        margin-bottom: 20px;
        text-align: left;
        padding-left: 5px;
        margin-left: -10px;
        margin-bottom: -10px;
    }

    #header .content .left .server-namee h1 {
        font-size: 40px;
        font-family: "Mont", sans-serif;
        line-height: 1.2;
    }
}

@media screen and (max-width: 447px) {
    #header .content .left .server-namee {
        padding-top: 180px;
        margin-bottom: 30px;
        padding-left: 0px;
        margin-left: -18px;
    }

    #header .content .left .server-namee h1 {
        font-size: 30px;
    }
}




@media screen and (max-width: 819px) {
    /* 1. Ridurre il margine del bottone "Come Entrare" nella versione mobile */
    #header .content .left .buttons .how-to-join2 {
        margin-top: 60px; /* Aggiunto margine superiore */
        margin-bottom: 120px; /* Ridotto rispetto ai 120px attuali */
    }

    /* 2. Abbassare il titolo "OLYMPUSMC IL SERVER DEFINITIVO" di 10px */
    #header .content .left .server-namee {
        margin-top: -60px; /* Aggiunti 10px in più rispetto ai 80px attuali */
    }

    /* 3. Nascondere il counter dei giocatori online su Minecraft e Discord */
    #header .content .right .stats {
        display: none;
    }
    #header .content .left .copy-ip {
        margin-bottom: -60px !important;
    }
}
