.pf {
    position: relative;
}

.page-number {
    position: absolute;
    bottom: 5px;
    right: 10px;
    font-size: 12px;
    font-family: Helvetica;
    color: white;
    background-color: rgba(178, 34, 34, 0.8);
    padding: 5px;
    border-radius: 10px;
    z-index: 99999;
}

#sidebar .simulate-key{
    color:#333;
    background-color:#f7f7f7;
    border:none;
    cursor:pointer;
    border: 1px solid #ccc;
    padding:15px 30px;
    border-radius: 4px;
    margin:5px;
    display:block;
    font-size: 14px;
    font-weight: bold;
    font-family: monospace; /* Daktilo yazı tipi tuşlar için idealdir */
    margin-right: 6px; /* Tuş ile metin arasına boşluk */
    box-shadow: 1px 1px 1px rgba(0,0,0,0.1);
    padding:15px 20px;
    margin:10px;
}

#page-container .simulate-key{
    color:#333;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color:#f7f7f7;
    border:none;
    cursor:pointer;
    padding:15px 20px;
    margin:0;
    font-size: 14px;
    font-weight: bold;
    font-family: monospace;
    margin-right: 6px;
    box-shadow: 1px 1px 1px rgba(0,0,0,0.1);
}
/* Ana kapsayıcı: Konumlandırmayı bu eleman yapacak */
.action-container {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1030;
    display: flex;
    flex-direction: column; /* Öğeleri dikeyde (alt alta) sırala */
    align-items: center;   /* Öğeleri yatayda ortala */
    gap: 10px;             /* Butonlar ve ok arasına boşluk koy */
}

/* Sizin mevcut buton kapsayıcınız (biraz değiştirildi) */
.side-button-container {
    display: flex;
    flex-direction: row;
    gap: 8px;
    
    /* Başlangıçta gizli olacaklar */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Aşağıdan yukarıya hafif bir animasyon için */
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

/* JavaScript ile bu sınıf eklendiğinde butonlar görünür olacak */
.side-button-container.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Bu kısım sizin orijinal kodunuz, hiç değiştirilmedi */
.side-button-container .simulate-key {
    font-size: 24px;
    color: white;
    background-color: cadetblue;
    border: 1px solid black;
    border-radius: 10px;
    cursor: pointer;
    width: 72px;
    height: 72px;
    line-height: 72px;
    text-align: center;
    transition: opacity 0.3s ease;
}

.side-button-container .simulate-key:hover {
    opacity: 1;
}

.toggle-button {
    width: 100px;
    height: 100px;
    color: white;
    border: 0px solid #1a2531;
    box-sizing: border-box;
    border-radius: 50%;    
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(44, 62, 80, 0.6);
    background-color: rgb(211, 211, 211, 0.6);
    box-shadow: -4px -4px 10px rgba(255, 255, 255, 0.2), 4px 4px 10px rgba(255, 255, 255, 0.3);    
    background-color: rgb(44, 62, 80, 0.5);
}

.toggle-button:hover {
    background-color: #27ae60;
    box-shadow: -6px -6px 15px rgba(255, 255, 255, 0.2), 6px 6px 15px rgba(255, 255, 255, 0.3);
    opacity: 1;
    transform: translateY(-4px);
}

.toggle-button:active{
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.3);
    transform: translateY(2px);
}


.w0.h0 {
            border-radius: 15px;
            box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.5);
}
/* İlgili Dergiler Modülü Stilleri */
#related-magazines-container {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--divider-color);
}
#related-magazines-container h3 {
    color: var(--sidebar-text);
    font-family: 'Merriweather', serif;
    font-size: 1em;
    margin-bottom: 15px;
}
#related-magazines-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 1.2em;
    color:white
}
.related-item {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--sidebar-text);
    transition: background-color 0.2s;
    border-radius: 4px;
    padding: 5px;
}
.related-item:hover {
    background-color: var(--sidebar-tag-hover-bg);
}
.related-item img {
    width: 50px;
    height: 65px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}
.related-item span {
    font-size: 0.8em;
    font-family: sans-serif;
}
