/* =========================
   RESET & STYLES GLOBAUX
   ========================= */
* {
    font-size: 11pt;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
    background-color: #2c2c2c;
    color: #ffffff;
    display: flex;
    background-image: url('/img/BGpattern.jpg');
    background-attachment: fixed;
}

h4 {
    font-size: 1.3rem;
}

h3 {
    font-size: 1.6rem;
}

h2 {
    font-size: 2.2rem;
}

h1 {
    font-size: 4rem;
}

p {
    font-size: 1.1rem;
}

input {
    -webkit-appearance: none;
    appearance: none;
    border-radius:20px;
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    border: none; 
    outline: none;
    width:100%;
    padding:12px 14px;
    font-size:1rem;
    margin-bottom:8px;
}
  
input:hover {
    background: rgb(255, 125, 0, 0.3);
    box-shadow: 0 0px 12px rgba(255, 125, 0, 0.3);
}
  
input:focus {
    background: rgb(255, 125, 0);
    color:white;
    box-shadow:0 0px 18px rgba(255, 106, 0, 0.8);
}

select {
    border-radius:20px;
    background: rgba(0, 0, 0, 0.95);
    color: #fff;
    border: none; 
    outline: none;
    width:100%;
    padding:12px 14px;
    font-size:1rem;
    margin-bottom:8px;
}

select:hover {
    background: rgb(255, 125, 0, 0.3);
    box-shadow: 0 0px 12px rgba(255, 125, 0, 0.3);
}
  
select:focus {
    background: rgb(255, 125, 0);
    color:white;
    box-shadow:0 0px 18px rgba(255, 106, 0, 0.8);
}

/* =========================
   STRUCTURE PRINCIPALE
   ========================= */
.hidden{display: none !important;}

.footer {
    min-height: 25px;
}

.fullsize {
    display: flex;
    height: 100%;
    width: 100%;
    padding: 100px 100px 0px 100px;
    flex-direction: column;
    z-index: 1;
    gap: 20px 20px;
}

.box{
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    width: 100%;
    margin:0 auto;
    background: rgba(0, 0, 0, 0.9);
    padding:25px;
    border-radius:50px;
    box-shadow: 0 0px 20px rgba(20,20,40,.06);
    align-content: center;
}

.itemrow{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px 20px;
}
  
.item{
    display: flex;
    flex-direction: column;
    margin:0 auto;
    flex: 1 1 500px;
    gap: 20px 20px;
}

.boxcontent{
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
    width: 100%;
}

.textgroup {
    margin-bottom: 15px;
}

.green {
    border-width: 2px;
    border-color: #28a745;
}

.red {
    border-width: 2px;
    border-color: #dc3545;
}

/* =========================
   BOUTONS
   ========================= */
.button{
    padding:10px 16px;
    border-radius:20px;
    min-height: 40px;
    color: #fff;
    background: rgb(255, 125, 0, 0.5);
    font-weight:700;
    cursor:pointer;
    border: none; 
    outline: none;
    text-decoration: none;
    font-weight: bold;
}
.button:hover{
    background: rgb(255, 125, 0, 0.3);
    box-shadow: 0 0px 12px rgba(255, 125, 0, 0.3);
    font-weight:700;
    cursor:pointer;
    border: none; 
    outline: none;
}
.button[disabled]{
    color: #808080;
    background: rgba(255, 255, 255, 0.2);
    cursor:not-allowed
}

.emby-button {
    position: relative;
    min-height: 400px;
    height: 800px;
    border-radius: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.3);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-120%) scale(1.0);
    opacity: 0;
    animation: index-button-slide-down 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.emby-button:hover {
    box-shadow: 0 8px 64px 0 rgba(0,0,0,0.6);
}

.emby-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/img/emby.jpg');
    background-repeat: repeat-x;
    background-size: 1440px auto;
    z-index: 0;
    animation: defilement-bg 30s linear infinite;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1);
}

.emby-button:hover::before {
    transform: scale(1.2);
}

.emby-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    transition: background 0.5s ease;
    z-index: 1;
}

.emby-button:hover::after {
    background: rgba(0,0,0,0.5);
}

.buttoncontent{
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    opacity: 0;
    animation: button-content-fade-in 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 1.1s;
    text-shadow: 0 6px 32px rgba(0,0,0,0.95), 0 2px 8px rgba(0,0,0,0.7), 0 1px 0 #000;
}

.internal-button {
    position: relative;
    text-align: center;
    margin: 0 auto;
    bottom: 100px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 1rem;
    z-index: 1000;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    transform: translateY(120%);
    opacity: 0;
    animation: internal-button-slide-up 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 1.6s;
}

.internal-button:hover {
    color: #000;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 1);
}

.index-button {
    position: relative;
    padding: 10px 25px;
    flex-grow: 1;
    height: 100px;
    border-radius: 100px;
    display: flex;
    justify-content: left;
    align-items: center;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 32px 0 rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    animation: index-button-slide-down 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
}

.index-button:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 8px 64px 0 rgba(0,0,0,0.6);
}

.index-button img {
    position: absolute;
    right: 20px;
    height: 80px;
    transition: transform 0.3s ease;
}

.index-button .buttoncontent {
    display: inline-block;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.3s ease, margin-left 0.3s ease;
    text-shadow: none;
}

.index-button:hover img {
    transform: scale(1.5);
}

.index-button:hover .buttoncontent {
    transform: scale(1.1);
    margin-left: 10px;
    color: #000;
}

.discord {
    height: 120px !important;
    right: 0px !important;
}
/* =========================
   ANIMATIONS
   ========================= */

@keyframes index-button-slide-down {
    to {
        transform: translateY(0) scale(1.0);
        opacity: 1;
    }
}

@keyframes internal-button-slide-up {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes button-content-fade-in {
    to {
        opacity: 1;
    }
}

@keyframes defilement-bg {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -1440px 0;
    }
}

/* =========================
   MEDIA QUERIES
   ========================= */
@media (max-width: 768px) {
    .fullsize {
        padding: 100px 10px 10px 10px;
        gap: 10px 10px;
    }

}
