:root {
    /* Base Variables */
    --window-width: 1px;
    --window-height: 1px;
    --logo-width: 1px;
    --logo-height: 1px;
    --menu-width: 1px;
    --menu-height: 1px;
    --menuitem-width: 1px;
    --menuitem-height: 1px;
    --linkitem-width: 1px;
    --linkitem-height: 1px;
    --video-width: 1px;
    --video-height: 1px;

    /* Color Variables #972221;*/
    --bgcolor-usermenu: #c13c2d;
    --bgcolor-anamenu: #c13c2d;
    --bgcolor-altmenu: #c13c2d;
    --bgcolor-linkmenu: #eee;
    --bgcolor-tvmenu: #eee;  
    --color-dark: #111;
    --color-light: #eee;

    /* Common Values */
    --border-radius-sm: 3px; /*8px;*/
    --border-radius-lg: 1%; /*10%*/
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Base Layouts */
html,
body{
    position: relative;
    overflow: hidden;
    width: var(--window-width);
    height: var(--window-height);
    font-family: 'PT Serif', sans-serif;
}

body {
    background-image: url('../img/kktvsingle.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 200px 250px;
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    background-color: var(--bgcolor-usermenu);
}
button, img{
   cursor: pointer;
}
/* Logo Styles */
#kktclogo {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--logo-width);
    height: var(--logo-height);
    background-color: transparent;
    z-index: 99999;
    overflow: hidden; 
}

/* KKTV Layout */
.kktvyatay,
.kktvdikey {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    pointer-events: none;
}
.kktvyatay {
    display: none;
    width: 100%;
    height: auto;
}

.kktvdikey {
    display: block;
    width: auto;
    height: 100%;
}
#btnfullscreen{
    width: 100%;
    height: 16vh; 
    float: left;
    background-color: transparent;
}
#btnanamenu{
    width: 100%;
    height: 67vh; 
    float: left;
    background-color: transparent;
}
#btnimws{
    width: 100%;
    height: 16vh; 
    float: left;
    background-color: transparent;
}

/* Content Container */
#divcontent {
    display: none;
    position: absolute;
    width: var(--menu-width);
    height: var(--menu-height);
    top: 0;
    left: var(--logo-width);
    background-color: var(--bgcolor-anamenu);
    transform-origin: top left;
}

/* Background Styles */
.kktcbg {
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    background-color: var(--bgcolor-anamenu);
}
.usertype{
    width: 30vw;
    height: auto;
    float: left;
}
/* Menu Layouts */
.usermenu,
.anamenu,
.altmenu,
.linkmenu,
.tvmenu,
.urlframe {
    position: absolute;
    height: var(--menu-height);
    width: var(--menu-width);
    transform-origin: top left;
}


.usermenu {
    display: flex;
    flex-direction: column; /* Dikey dizilim */
    align-items: center; /* Yatay eksende ortala */
    justify-content: center; /* Dikey eksende ortala */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Tam ortala */
    background-color: var(--bgcolor-usermenu);
    z-index: 99;
    flex-direction: row;
}

.usertype {
    width: 25vw; /* veya istediğiniz genişlik */
    height: auto; /* En-boy oranını koru */
    margin: 2vw; /* Resimler arası boşluk */
    cursor: pointer; /* İsteğe bağlı: hover efekti için */
    transition: transform 0.3s ease; /* İsteğe bağlı: hover animasyonu */
    user-select: none;
}

/* İsteğe bağlı: hover efekti */
.usertype:hover {
    transform: scale(1.1);
}

.anamenu {
    background-color: var(--bgcolor-anamenu);
    z-index: 98;
}

.altmenu {
    background-color: var(--bgcolor-altmenu);
    z-index: 97;
}

.linkmenu {
    background-color: var(--bgcolor-linkmenu);
    z-index: 96;
}

.urlframe {
    background-color: var(--bgcolor-tvmenu);
    z-index: 95;
}
.tvmenu {
    background-color: var(--bgcolor-tvmenu);
    z-index: 94;
}
.frameurl {
    height: var(--menu-height);
    width: var(--menu-width);
}
/* Menu Containers */
.divmenu,
.divaltmenu,
.divlinkmenu,
.divtvmenu{
    position: relative;
    height: 100%;
    width: 100%;
    float: left;
    overflow-y: auto;
    overflow-x: hidden;
}
/* iFrame styles */

.divtvs{
    width: 100%;
    float: left;
    overflow-x: hidden;
    overflow-y: auto;
}

.divtvframe{
    position: relative;
    width: var(--menu-width);
    height: var(--video-height);
    overflow: hidden;
    margin-bottom: 3px;
}

/* News HTML styles */
.divnews{
    position: relative;
    width: 100%;
    float: left;
    overflow-x: hidden;
    overflow-y: auto;
}
.news-info-yatay, .news-info-dikey{
    display: block;
    width: 100%;
    font-size: calc(var(--body-fontsize) * 1px);
    line-height: calc(var(--body-fontsize)*1.25px);
}
.news-info-dikey{
    display: none;
}

.underline {
    text-decoration: underline;
    text-decoration-color: red;     /* çizgi rengi */
    text-decoration-thickness: 2px;  /* çizgi kalınlığı */
    text-decoration-style: solid;    /* çizgi stili (solid, dashed, dotted, wavy) */
}

.newshtml{
    background-color: #eee;
    color: #111;
    width: var(--menu-width);
    padding: 1%;
    float: left;
    z-index: 10;
    font-size: calc(var(--body-fontsize) * 1px);
    line-height: calc(var(--body-fontsize)*1.25px);
}
.newshtml h3{
    font-size: calc(var(--body-fontsize)*1.2px);
    line-height: calc(var(--body-fontsize)*1.4px);
    padding-top: 1vh;
    padding-bottom: 1vh;
}
.newshtml h2{
    font-size: calc(var(--body-fontsize)*1.4px);
    line-height: calc(var(--body-fontsize)*1.6px);
    padding-top: 1vh;
    padding-bottom: 1vh;
}
.newshtml h1{
    font-size: calc(var(--body-fontsize)*1.6px);
    line-height: calc(var(--body-fontsize)*1.8px);
    padding-top: 1vh;
    padding-bottom: 1vh;
}
.newshtml img{
    margin: 1vw;
    width: 48%;
    height: auto;
}

.m3u8frame, .youtubeframe{
    background-color: transparent;
    width: var(--video-width);
    height: var(--video-height);
    margin-bottom: 2vh;
    float: left;
    z-index: 10
}

.adsdikey{
    display:block;
    position: absolute;
    top:0px;
    right:0px;
    height: var(--video-height);
    width: auto;
    background-color: transparent;
    overflow: hidden;
    z-index: 100;
}

.adsclick{
    height: auto;
    width: 94vw;
    margin: 1vw 0;
    background-color: transparent;
    overflow: hidden;
    float: left;
} 
.adsiwms{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 9999;
}

.iwmsyatay, .iwmsdikey{
    display: block;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    border:1px black solid;
}
.iwmsdikey{
    display: none;
}
.iwmsreklam{
    width: 100%;
    cursor: pointer;
}
.iwmsreklamdikey{
    display:none;
}
.iwmsreklamyatay{
    display:block;
}
.adsreklam{
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 9999;
}

.anareklamyatay, .anareklamdikey{
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    border:1px black solid;
}
.anareklamdikey{
    display: none;
}
.divtvmenulink, .divnewsmenulink{

}
/* Menu Items */
.menuitem {
    position: relative;
    float: left;
    overflow: hidden;
    height: var(--menuitem-height);
    width: var(--menuitem-width);
    background-color: transparent;
}

.menuitem img {
    border-radius: var(--border-radius-sm);
    pointer-events: none;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.menuitem div {
    position: absolute;
    overflow: hidden;
    background-color: transparent;
    text-align: center;
    font-family: "Sofia", sans-serif;
    text-shadow:
        0 1px 1px var(--color-light),
        0 -1px 1px var(--color-dark);
    color: #ddd;
}

/* Link Items */
.linkitem {
    position: relative;
    float: left;
    overflow: hidden;
    height: calc(var(--linkitem-width) * 34/48);
    width: var(--linkitem-width);
    background-color: transparent;
}

.linkitem img {
    border-radius: var(--border-radius-lg);
    pointer-events: none;
    margin: 1.5%;
    height: auto;
    width: 96%;
    object-fit: cover;
}

/* Frame Styles */
#altframe {
    width: 100%;
    height: 100%;
}

.tester{
    position: absolute;
    top: 3%;
    right: 3%;
    width: 16%!important;
    height: 16%!important;
    z-index: 100;
}
/* Notification */
#note {
    display: none;
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 33%;
    height: 33%;
    background-color: var(--color-light);
    color: var(--color-dark);
    font-size: 24px;
    opacity: 0.7;
    z-index: 9999;
}

/* Utility Classes */
.hide-scrollbar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.diviwms {
    position: relative;
    float: left;
    width: 100vw;
    height: 8vh;
    pointer-events: none;
}

.imgsocial, .imgtext{
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.imgsocial img{
    width: 12vw;
    height: auto;
    margin: 1vw 0.9vw 0 0;
    display: block;
    pointer-events: none;
}

.imgtext img{
    width: 6vw;
    height: auto;
    margin: 1vw 0.9vw 0 0;
    display: block;
    pointer-events: none;
}
.text-controls {
    display: flex;
    position: absolute;
    top: 1vw;
    right: 1vw;
    background: white;
    padding: 1vh;
    border-radius: 1vh;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    gap: 8px;
    z-index: 10;
}

.text-control-btn {
    display: flex;
    width: 5vw;
    height: 5vw;
    border: 3px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: calc(var(--body-fontsize)*2px);
    transition: all 0.2s;
}

.text-control-btn:hover {
    background: #f5f5f5;
}

.text-control-btn:active {
    background: #e5e5e5;
}

.font-size-indicator {
    width: 2vw;
    text-align: center;
    line-height: 5vw;
    font-size: 3vw;
}