/* ADS BEGIN */

#ad-container {
    position: fixed;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.75);
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    visibility: visible;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.25s ease-out, transform 0.25s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    user-select: none;
    /* display: none; */
}

#ad-container.show {
    top: 46%;
    left: 50%;
    background-color: white;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#ad-container.showAsBackground {
    top: 50%;
    left: 50%;
    background-color: rgba(0, 0, 0, 0.565);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
}

.google-ad-content {
    /* height: 100%; */
    overflow-y: auto;
    overflow-x: hidden;
    user-select: none;
}

#ad-container.hide {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.75);
}

#ad-close {
    position: absolute;
    bottom: -50px;
    right: 0px;
    left: 0px;
    background-color: red;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 1001;
    border-radius: 10px;
    font-weight: bold;
    user-select: none;
}
#ad-close:disabled {
    background-color: rgb(114, 114, 114);
    pointer-events: none;
}

#banner-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px !important;
    text-align: center;
    z-index: 1;
    user-select: none;
}

#banner-container.hidden {
    transform: translateY(100%);
    /* opacity: 0; */
}

#banner-container iframe {
    margin: 0 auto;
}

/* ADS END */

/* SOCIAL CONNECT BEGIN */

#connect-instagram-button {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2;
    background-color: #4267B2;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    user-select: none;
}

#connect-instagram-button:hover {
    background-color: #365899;
}

#username-display {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 2;
    font-size: 16px;
    color: #4267B2;
    user-select: none;
}

#disconnect-instagram-button {
    position: fixed;
    background: none;
    border: none;
    color: red;
    font-size: 16px;
    cursor: pointer;
    margin-left: 10px;
    z-index: 2;
    top: 20px;
    right: 10px;
}

#disconnect-instagram-button:hover {
    color: darkred;
}

/* SOCIAL CONNECT END */

/* SCOREBOARD BEGIN */

#score-button {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    /* Yuvarlak şekil */
    padding: 8px;
    /* İkonun etrafında biraz boşluk bırakır */
    display: flex;
    /* İkonu merkeze yerleştirmek için flexbox */
    justify-content: center;
    /* Yatayda ortalama */
    align-items: center;
    /* Dikeyde ortalama */
    visibility: hidden;
    user-select: none;
    width: 24px;
    height: 24px;
}

#score-button i {
    color: white;
    /* İkonun rengi beyaz */
    font-size: 20px;
    /* İkonun boyutu */
}

#scoreboard {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    z-index: 10;
    user-select: none;
    touch-action: none;
    font-family: Arial, sans-serif;
}

#scoreboard ul {
    list-style-type: none;
    padding: 0;
    user-select: none;
}

#scoreboard ul li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
    user-select: none;
}

/* SCOREBOARD END */

/* OTHER BEGIN */

#mute-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    /* Yuvarlak şekil */
    padding: 8px;
    /* İkonun etrafında biraz boşluk bırakır */
    display: flex;
    /* İkonu merkeze yerleştirmek için flexbox */
    justify-content: center;
    /* Yatayda ortalama */
    align-items: center;
    /* Dikeyde ortalama */
    visibility: hidden;
    user-select: none;
    width: 24px;
    height: 24px;
}

#mute-icon i {
    color: white;
    /* İkonun rengi beyaz */
    font-size: 20px;
    /* İkonun boyutu */
}

/* OTHER END */

/* Google IMA */
#p-video-element {
    /* forces the contents to fill the container */
    position: absolute;
    /* top: 0;
    left: 0;
    width: 100%;
    height: 100%; */
    pointer-events: none;
}

#p-video-ad-container {
    position: absolute;
    /* top: 0;
    left: 0;
    width: 100%; */
}

/* Cookie Banner */
#cookie-law {
    font-size: clamp(6px, 2.4vw, 18px);
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 5%;
    background-color: #0a0a0a;
    color: white;
    z-index: 999;
    max-height: 30vh; /* Ekranın %30'unu geçmez */
    overflow-y: auto; /* Yüksek içerik olursa scroll yapılabilir */
}
#cookie-law > div {
}
#cookie-law > div:first-child {
    padding-right: 15px;
}
#cookie-law > div:first-child > a {
    color: inherit;
}
#cookie-law > div:last-child {
    vertical-align: middle;
}
#cookie-law > div:last-child > a {
    padding: 8px 15px;
    background-color: rgb(226, 231, 144);
    border-radius: 5px;
    color: black;
    text-decoration: none;
    font-size: clamp(14px, 1.2rem, 18px);
}
