
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&display=swap');

:root {
    --themeC: #F0E3BD;
    --bgGrey: #E1AE4E;
    --fullDarkGrey: #191A1D;
    --DarkGrey: #25262A;
    --greyLight: #999999;
    --wt: #E1AE4E;
    --customBlue: #E1AE4E;
}

/* custom scrollbar */
/* width */
::-webkit-scrollbar {
    width: 4px;
}

/* Track */
::-webkit-scrollbar-track {
    background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--greyLight);
    transition: all 0.2s ease-in-out;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--themeC);
}

/*  */
* {
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

.flexc {
    display: flex;
    justify-content: center;
    align-items: center;
}

body,
html {
    background: url('./assets/bgpic_optimized.webp'), var(--bgGrey) no-repeat;
    background-size: cover;
    background-position: center;
    color: var(--wt);
    margin: 0;
    padding: 0;
}

* {
    font-family: "Nunito", sans-serif !important;
}

a {
    text-decoration: none;
}

.contentCreater {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bgGrey);
    padding: 8px 20px;
    color: #2B383D;
    border-radius: 30px;
    font-size: 14px;
    z-index: 1000;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.creater,
.creater strong {
    font-family: 'Rajdhani', sans-serif !important;
    letter-spacing: 0.5px;
    word-spacing: -3px;
    animation: changeColor 8s infinite alternate;
}

.creater {
    margin: 0 5px;
}

@keyframes changeColor {
    0% { color: #990000; }
    50% { color: #000000; }
    100% { color: #1781e0; }
}

h1 {
    flex-direction: column-reverse;
    position: relative;
    padding: 20px 0 25px;
    font-family: "Great Vibes", cursive !important;
    font-weight: 100;
    font-style: normal;
    font-size: 2.5em;
    text-align: center;
    color: #000000;
    text-shadow: 0px 0px rgba(0, 0, 0, 0.5);
}

h1>img {
    width: 260px;
}

.wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
}

section {
    margin: 0 20px;
}

#content {
    background: var(--fullDarkGrey);
    display: flex;
    box-shadow: 0 0 1em rgba(0, 0, 0, 0.5);
}

#languages {
    background: var(--DarkGrey);
    color: var(--wt);
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px;
    width: 100px;
    text-align: center;
    margin: 0.83em auto;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
}

.tableNavbar {
    background: #000000;
    justify-content: space-between;
    margin: 10px 0 35px;
    height: 50px;
    box-shadow: 0 0 0.6em rgba(0, 0, 0, 0.5);
}

#servers,
#alliance_toggle {
    background-color: transparent;
    width: fit-content;
    height: 100%;
    font-size: 1.2em;
    color: var(--greyLight);
    cursor: pointer;
    border: 0;
}

#servers {
    background-color: var(--DarkGrey);
    color: var(--wt);
    padding: 0.5em 1em;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    width: fit-content;
    height: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#events {
    background-color: var(--DarkGrey);
    color: var(--wt);
    padding: 0.5em 1em;
    font-size: 1.2em;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    border: none;
    width: fit-content;
    height: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#events:hover,
#events:focus {
    background-color: red;
    color: white;
    outline: none;
}

select option {
    background: var(--fullDarkGrey);
    color: var(--wt);
    border-radius: 0;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    cursor: pointer;
}

#alliance_toggle {
    width: fit-content;
    height: 100%;
    border-radius: 50px;
}

#alliance_toggle button {
    background-color: var(--DarkGrey);
    font-size: 0.8em;
    padding: 0.5em 1em;
    width: fit-content;
    height: 100%;
    cursor: pointer;
    border: none;
    color: var(--greyLight);
    font-weight: bold;
}

#alliance_toggle button.active {
    background-color: var(--themeC);
    color: var(--DarkGrey);
}

#table {
    flex-grow: 1;
    table-layout: fixed;
    width: 100%;
    margin: auto;
    background-color: var(--fullDarkGrey);
    color: var(--greyLight);
    border-collapse: collapse;
    text-align: center;
}

#table thead {
    background: #000000;
    border-radius: 1em;
}

#table tr {
    border-bottom: 1px solid black;
}

#table th,
#table td {
    word-break: break-word;
}

#table th {
    padding: 1em 0.2em;
}

#table col {
    width: 150%;
}

#table col.small_column {
    width: 100%;
}

#table tbody tr:nth-child(1) {
    background: #F8D05D;
    color: #000000;
}

#table tbody tr:nth-child(2) {
    background: #C4C4C4;
    color: #000000;
}

#table tbody tr:nth-child(3) {
    background: #A38B65;
    color: #000000;
}

#table tfoot tr {
    border-bottom: none;
}

#table tbody td {
    height: 1.8em;
}

#table td {
    padding: 0.2em 0.1em;
}

.title img {
    vertical-align: middle;
    height: 1.5em;
}

.medal div {
    display: inline-block;
    margin: 0 0.2em;
}

.medal div:first-child {
    margin-left: 0;
}

.medal div:last-child {
    margin-right: 0;
}

.medal p,
.medal img {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

#category div,
#search div {
    display: flex;
    align-items: center;
    justify-content: center;
}

#category p {
    margin: 10px 0.8em;
    max-width: 250px;
}

#search input {
    margin: 0 1em;
    width: 17em;
    text-align: center;
}

#navigate_buttons {
    background: #000000;
    padding: 5px 0;
    min-width: 2.5em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#navigate_buttons button {
    background: var(--wt);
    margin: 0.2em 0;
    border: 2px var(--DarkGrey) solid !important;
}

#navigate_buttons button:nth-child(3) {
    margin-top: auto;
}

#navigate_buttons button,
#table button {
    background: var(--wt);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50px;
    border: 0;
    cursor: pointer;
}

#category button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bgGrey);
    width: 30px;
    height: 30px;
    border-radius: 50px;
    border: 2px var(--DarkGrey) solid !important;
    cursor: pointer;
}

td img,
button img {
    height: 1em;
    margin: auto;
}

.leftArrow {
    transform: rotate(-90deg);
}

.rightArrow {
    transform: rotate(90deg);
}

.gradientBar {
    position: absolute;
    bottom: 0px;
    background: linear-gradient(to left, #FFD966, #838383, #FFFFFF);
    background-size: 400% 400%;
    width: 100%;
    height: 3px;
    animation: AnimationName 30s ease infinite;
}

@keyframes AnimationName {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@media all and (orientation: portrait) {
    #table {
        font-size: 0.8em;
    }
    #table tbody td {
        height: 2.25em;
    }
}

@media only screen and (max-width:481px), screen and (max-width: 600px) {
    .tableNavbar {
        flex-direction: column;
        height: fit-content;
    }
    #servers,
    #alliance_toggle,
    #events {
        width: 100%;
        height: 100%;
        padding: 10px 8px;
    }
    #alliance_toggle {
        width: 100%;
        padding: 0;
    }
    #alliance_toggle button {
        width: 50%;
    }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 0;
  pointer-events: none;
}

body,
#app {
  position: relative;
  z-index: 1;
}
#languages:hover,
#servers:hover,
#alliance_toggle button:hover,
#category button:hover {
    background-color: var(--bgGrey);
    color: var(--DarkGrey) !important;
    box-shadow: 0 0 8px rgba(227, 178, 28, 0.5);
    transition: all 0.3s ease-in-out;
}



.tableNotice {
  margin: 20px auto;
  padding: 12px 20px;
  max-width: 590px;
  background-color: #222;
  color: gold;
  border: 1px solid #CECECE;
  border-radius: 12px;
  text-align: justify; /* توزيع أفضل للنص */
  font-size: 14px;
  line-height: 1.5;
  direction: rtl;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}


