html {
    overflow-y: scroll;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #6C89C6 #FFD8A8;
}

body {
    overflow: visible;
    overflow-x: hidden;
    min-height: 100%;
}

/* Chrome, Edge, Safari */
html::-webkit-scrollbar {
    width: 6px;
}

html::-webkit-scrollbar-track {
    background: #FFD8A8;
}

html::-webkit-scrollbar-thumb {
    background: #6C89C6;
    border-radius: 10px;
    border: 1px solid #FFD8A8;
}

html::-webkit-scrollbar-thumb:hover {
    background: #5279cf;
}


@font-face {
    font-family: 'gloghyfornt_lettera';
    src: url('../font/gloghyfornt_lettera.ttf') format('truetype');
}

/* Header */
.app-header_1 {
    position: fixed;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    background-color: white;
    padding: 10px 10px;
    border-bottom: 0px solid #ccc;
}

.logo_0 {
    transform: translateX(-10px);
    margin-top: 4px;
}

.logo_1 {
    display: flex;
    font-size: 40px;
    color: #6C89C6;
    font-family: 'gloghyfornt_lettera';
    line-height: 0.0;
    text-decoration: none;
    margin-top: -5px;
    
}

.logo_1:hover {
    
    color: #5076c6;
}

.logo_2 {
    display: flex;
    font-size: 40px;
    color: orange;
    font-family: 'gloghyfornt_lettera';
    line-height: 0.0;
    margin-left: 1px;
    text-decoration: none;
    margin-top: 5px;
}

.logo_2:hover {
    
    color: rgb(255, 140, 0);
}

.menu_header_1 {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: -40px;
    position: relative;
}

.menu-item {
    text-decoration: none;
    background-color: #6C89C6;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 12px;
    text-decoration: none;
}



.menu-item:hover {
    text-decoration: none;
    background-color: #5279cf;
   
}

.menu-add {
    text-decoration: none;
    background-color: orange;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 12px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.menu-add:hover {
    text-decoration: none;
    background-color: rgb(255, 136, 0);
 
}

@media (max-width: 768px) {
    .menu-item {
        text-decoration: none;
        background-color: #6C89C6;
        color: white;
        border: none;
        border-radius: 5px;
        padding: 6px 12px;
        cursor: pointer;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: bold;
        font-size: 10px
    }
}

@media (max-width: 768px) {
    .menu-add {
        text-decoration: none;
        background-color: orange;
        color: white;
        border: none;
        border-radius: 5px;
        padding: 5px;
        font-size: 12px;
        cursor: pointer;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: bold;
    }
}

.menu-accedi-div {
    transform: translateX(30px);
    background-color: #6C89C6;
    border-radius: 5px;
    margin-left: -20px;
}

.menu-accedi-div:hover {
    transform: translateX(30px);
    background-color: #5279cf;
    border-radius: 5px;
    margin-left: -20px;
}

.menu-accedi {
    background: none;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

@media (max-width: 768px){

    .menu-accedi-div {
        background-color: #6C89C6;
        border-radius: 5px;
        margin-left: -18px;
        
    }
    
}

@media (max-width: 768px){

    .menu-accedi {
        background: none;
        color: white;
        border: none;
        font-size: 18px;
        cursor: pointer;
    }
    
}

.card {
    width: 90%;
    max-width: 400px;
    height: 150px;
    background-color: #ccc;
    border-radius: 10px;
}

/* Footer */
.app-footer {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    justify-content: space-around;
    padding: 10px;
    background-color: white;
    border-top: 2px solid #ccc;
    
}

.footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    gap: 5px;
    background-color: #6C89C6;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 15px;
    font-size: 12px;
    cursor: pointer;
}

@media (max-width: 768px){
    .footer-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 5px;
        background-color: #6C89C6;
        color: white;
        border: none;
        border-radius: 5px;
        padding: 2px 5px;
        font-size: 10px;
        cursor: pointer;
    }
}

.footer-icon {
    font-size: 1.5em;
    color: white ;
    font-family: Arial, sans-serif;
}

.icon_clan {
    
    width: 40px;
}

.icon_amici {
    
    width: 30px;
   
}


/* menu a tendina */

.menu-accedi-div {
  position: relative;
  display: inline-block;
}

.menu-accedi {
  background-color: #6C89C6;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  margin-top: 10px;
  top: 100%;
  right: 0;
  background-color: #6C89C6;
  min-width: 160px;
  box-shadow: #6ca3c6;
  z-index: 1000;
  border-radius: 5px;
  overflow: hidden;
  animation: fadeIn 0.2s ease-in-out;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}

.user-loggato{

    margin-top: 10px;
    margin-left: 15px;
    color: orange;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    
}

.dropdown-content a {
  color: white;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  margin-top: 10px;
  transition: background 0.2s;
}

.dropdown-content a:hover {
  background-color: #6ca3c6;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(-5px);}
  to {opacity: 1; transform: translateY(0);}
}



.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.popup-box {
    background: #6C89C6;
    padding: 20px;
    color: white;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.popup-box button {
    text-transform: uppercase;
    margin-top: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 12px;
    padding: 8px 16px;
    border: none;
    background-color: orange;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

/* 🔸 Pallino di notifica */
.pallino-notifica {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: orange;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
}

/* 🔸 Posizione del pallino sul bottone ☰ */
.menu-accedi-wrapper {
    position: relative;
}

.menu-accedi-wrapper .pallino-notifica {
    position: absolute;
    top: 4px;
    right: 4px;
}

/* 🔸 Posizione del pallino accanto a MODIFICA CLAN */
.menu-notifica-wrapper {
    display: inline-block;
    position: relative;
}

.menu-notifica-wrapper .pallino-notifica {
    position: absolute;
    top: 2px;
    right: -10px;
}

/* LIVE attiva nel menu */
.gloghy-live-header-btn {
    width: 8px;
    min-width: 8px;
    height: 34px;
    border: 1px solid #FFFFFF;
    border-radius: 5px;
    background: #C0392B;
    color: #FFFFFF;
    cursor: pointer;
    box-sizing: border-box;
    animation: gloghyLivePulse 1.1s infinite alternate;
    margin: 0;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    position: absolute;
    z-index: 2;
}

.gloghy-live-header-btn-sinistra,
.gloghy-live-header-btn-destra {
    margin: 0;
}

.gloghy-live-header-btn[hidden] {
    display: none !important;
}

.gloghy-live-rec-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #FFFFFF;
    display: block;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.95);
}

@keyframes gloghyLivePulse {
    from {
        background: #C0392B;
    }

    to {
        background: #FF9900;
    }
}

.gloghy-live-popup-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
}

.gloghy-live-popup-overlay.gloghy-live-popup-visibile {
    display: flex;
}

.gloghy-live-popup-box {
    width: min(calc(100% - 36px), 320px);
    background: #FFFFFF;
    border: 2px solid #6C89C6;
    border-radius: 12px;
    padding: 14px;
    box-sizing: border-box;
    text-align: center;
}

.gloghy-live-popup-titolo {
    color: #2F477A;
    font-size: 15px;
    font-weight: 900;
    margin: 0 0 12px;
}

.gloghy-live-popup-btn {
    width: 100%;
    min-height: 38px;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    margin-bottom: 8px;
    box-sizing: border-box;
}

.gloghy-live-popup-btn-chiudi {
    background: #C0392B;
}

.gloghy-live-popup-btn-regia {
    background: #2F477A;
}

.gloghy-live-popup-btn-annulla {
    background: #6C89C6;
}

@media (max-width: 768px) {
    .gloghy-live-header-btn {
        margin: 0;
        padding: 0;
    }

    .gloghy-live-header-btn-sinistra,
    .gloghy-live-header-btn-destra {
        margin: 0;
    }

    .gloghy-live-rec-dot {
        width: 4px;
        height: 4px;
    }
}