@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@500&display=swap');

* {
    box-sizing: border-box;
    font-family: 'Ubuntu', sans-serif;
    margin: 0;
    padding: 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
::-webkit-scrollbar {
    display: none;
  }

body {
    background-color: var(--app-bg);
    transition: background-color 0.3s ease;
}



/* css barra */
.app-content-header {
    background-color: var(--header-bg);
    color: var(--header-text-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    position: fixed;
    top: 0;
    width: 100%;
    max-width: 2000px;
    transition: background-color 0.3s ease;
}

.app-content-headerText {
    font-size: 24px;
    margin-right: auto;
    transition: color 0.3s ease;
}

.app-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    
}

/* css contenuto */
.app-content {
    padding-top: 60px;
    width: 100%;

    max-height: 100%;
    max-width: 2000px;
}

.app-container {
    border-radius: 4px;
    width: 100%;

    max-height: 100%;
    max-width: 2000px;
    display: flex;
    overflow: scroll;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
    margin: 0 auto;
}

.card-container {
    padding: 20px;
    background-color: var(--content-bg);
    color: var(--content-text-color);
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    transition: background-color 0.3s ease, color 0.3s ease;

}


/* css dei dati live */
.livedata {
    width: calc(33% - 10px);

}

.datapool {
    display: flex;
    justify-content: space-between;
}

.datablock {
    display: flex;
    justify-content: space-between;
}


/* css del cambio tema */
.light-theme {
    --app-bg: #f9f7f7;
    --header-bg: #dbe2ef;
    --header-text-color: #1f1c2e;
    --header-button-bg: #4dabf7;
    --header-button-text-color: #1f1c2e;
    --content-bg: #fff;
    --content-text-color: #1f1c2e;
}

.dark-theme {
    --app-bg: #101827;
    --header-bg: #1a2131;
    --header-text-color: #fff;
    --header-button-bg: #2869ff;
    --header-button-text-color: #fff;
    --content-bg: #1d283c;
    --content-text-color: #fff;
}

.theme-switch {
    position: relative;

    width: 60px !important;
    height: 34px;

}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #20314e;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked+.slider {
    background-color: #b8b8b8;
}

input:focus+.slider {
    box-shadow: 0 0 0 #ffffff;
}

input:checked+.slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}


.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.button-explore {
    text-decoration: none;

}


.icon {
    position: absolute;
    color: #FFF;
    font-size: 18px;
    line-height: 35px;
    transition: opacity 0.4s;
}

.icon.sun {
    left: 5px;
    opacity: 0;
    font-size: 25px !important;

}

.icon.moon {
    right: 5px;

}

.slider:before {
    display: flex;
    align-items: center;
    justify-content: center;

}

input:checked+.slider:before {
    transform: translateX(26px);
}

input:checked+.slider .icon.sun {
    opacity: 1;
}

input:checked+.slider .icon.moon {
    opacity: 0;
}

input:not(:checked)+.slider .icon.sun {
    opacity: 0;
}

input:not(:checked)+.slider .icon.moon {
    opacity: 1;
}
/* css contenuto pagina */
#intro {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    place-items: center;
    padding: 40px;
    min-height: 650px;
    overflow: hidden;
}

.info {
    display: flex;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 50px;
}

.info h1 {

    text-align: center;
    font-size: 3rem;
}

.alliancetit {
    font-size: 2.5rem;
}

.info p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.align-top {
    align-self: start;
    margin-top: 2%;
}
/* css per le card info*/

.Info {
    border: var(--app-bg) solid 2px;
    padding: 10px;
    width: 200px;
    max-width: 750px;
    border-radius: 8px;
    box-shadow: var(--app-bg) 0px 2px 8px 0px;
    width: calc(25% - 10px);
}
.titoloinfoa{
    text-decoration: none;
    color: grey;
}
.titoloinfo{
    text-decoration: none;
    color: var(--content-text-color);
    margin-bottom: 5px;
}

/* css per le card relay */
.relay {
    border: var(--app-bg) solid 2px;
    padding: 10px;
    width: 200px;
    max-width: 750px;
    border-radius: 8px;
    box-shadow: var(--app-bg) 0px 2px 8px 0px;
    width: calc(25% - 10px);
    margin-bottom: 15px;


}

.relay img {
    width: 60px;
    height: 40px;
    margin: 5%;

}

.relay p {
    margin: 15%;
}

/* nodi relay */
.nodi {
    flex-direction: row;
}


.divalliance {

    flex-direction: row;
    align-items: center;
    text-align: center;
}


.divalliance img {
    max-width: 45%;
    
    max-height: 200px;
    
    margin: 10px;
}


.button:after {
    background: #fff;
}

.explore,
.explore:before {
    background: rgba(255, 193, 7, 1);
    background: linear-gradient(45deg,
            rgba(255, 193, 7, 1) 0%,
            rgba(255, 87, 34, 1) 100%);
    background: -moz-linear-gradient(45deg,
            rgba(255, 193, 7, 1) 0%,
            rgba(255, 87, 34, 1) 100%);
    background: -webkit-linear-gradient(45deg,
            rgba(255, 193, 7, 1) 0%,
            rgba(255, 87, 34, 1) 100%);
}

.button {
    display: inline-block;
    position: relative;
    border-radius: 10px;
    text-decoration: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.5s ease;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.button:hover {
    text-shadow: 0px 0px 0px rgba(255, 255, 255, 0.8);
}

.button:hover::after {
    left: 100%;
    top: 100%;
    bottom: 100%;
    right: 100%;
}

.button::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: -1;
    border-radius: inherit;
    transition: all 0.5s;
}

.button::after {
    content: "";
    display: block;
    position: absolute;
    left: 2.5px;
    top: 2px;
    bottom: 2.5px;
    right: 2px;
    z-index: -1;
    border-radius: 8px;
    transition: all 0.5s;
}



a:link,
a:visited,
a:hover,
a:active {
    background-color: transparent;
}

.icon-link {
    text-decoration: none;
    margin-top: 5px;

}

a.icon-link:visited {
    color: inherit;
   
    text-decoration: none;
   
}

/* cex explorer */
iframe {
    margin-top: 50px;
}


/* cexplorer */
.img-fluid{
    width: 340px;
    height: 440px;
}

/* media per i 1024 ma anche gli 800px */


@media (max-width:1024px) {
    .relay {
        width: calc(50% - 10px);
    }
}

@media (max-width:768px) {
    .relay {
        width: calc(75% - 10px);
    }
}

@media (max-width: 800px) {
    #intro {
        padding: 30px;
    }

    .info {
        gap: 20px;
        padding: 30px 30px;
    }

    .info h1 {
        font-size: 2.5rem;
    }

    .info p {
        font-size: 1rem;
    }
    .divalliance img {
        max-width: 80%;
       
    }
}

@media (max-width: 550px) {
    #intro {
        grid-template-columns: repeat(1, 1fr);
        grid-template-areas:
            "divalliance"
            "info";
    }

    .info {
        grid-area: info;
    }

    divalliance {
        grid-area: divalliance;
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    #intro {
        grid-template-areas:
            "info"
            "divalliance";
    }

    .info {
        grid-area: info;
    }

    divalliance {
        grid-area: divalliance;
    }
}