body {
    margin: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    background-color: rgb(0, 0, 0);
    overflow-x: hidden;
    min-height: 100vh;
}

@font-face {
  font-family: 'Harry P';
  src: url('fonts/harrypotter.ttf') format('truetype');
  /* 'fonts/' kısmı, dosyanın yoludur. Kendi sitenizin klasör yapısına göre bunu değiştirmeniz gerekebilir. */
}

#background-video {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 100vw; /* Ekranın tam genişliğini kullanır */
    height: 100vh; /* Ekranın tam yüksekliğini kullanır */
    z-index: -100;
    object-fit: cover; /* Bu satır videonun en boy oranını koruyarak ekranı tamamen doldurmasını sağlar */
    /* YENİ EKLENTİLER BURADA */
    opacity: 1; /* Başlangıçta görünür */
    transition: opacity 0.5s ease-in-out; /* Opacity geçişi 0.5 saniye sürsün */
}

/*main color background-color: rgba(207, 167, 108, 0.532);*/

.categoryDiv, .bookDetailDiv, .characterDetailDiv{
    display: flex;
    overflow: hidden; /* Taşmaları gizler, bu çok önemli! */
    width: 100%; /* Kapsayıcının tam genişliğini kullanmasını sağlar */
    max-width: 1096px; /* Belirlediğiniz maksimum genişlik */
    gap: 1.5rem;
    padding: 1.5rem;
    background: transparent;
    backdrop-filter: blur(8px);
    border: 3px solid rgba(207, 167, 108, 0.532);
}


/* Kayan içerik için yeni div */
.scrolling-wrapper {
    display: flex;
    flex-wrap: nowrap; /* Öğelerin alt satıra geçmesini engeller */
    animation: scroll 20s linear infinite; /* Animasyon hızı ve tekrarı */
    gap: 1.5rem;
    padding: 1rem 0rem;
}

.categoryCard {
    background-color: rgb(55, 44, 29);
    width: 200px;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly; /* Evenly spaces the image and text */
    font-size: 2rem;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    padding: 0rem 1rem;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.onlyIndex>.categoryCard:hover {
    animation: flicker 1s infinite;
}

.categoryCard:hover {
    opacity: 1;
}

.categoryCard img {
    max-width: 100%; /* Ensures the image doesn't exceed the button's width */
    min-height: 80%; /* Leaves space for the text below the image */
    object-fit: cover; /* Prevents stretching and maintains aspect ratio */
    border-radius: 5px; /* Optional: gives the image a slight roundness */
    box-shadow: 1.5px 1.5px 0.5px white;
}
.categoryCard>img { box-shadow: 0px 0px 0.5px 1.2px white;}
.iconPng {padding-right: 0.2rem; padding-bottom: 0.1rem;}

.categoryCard p, .bookContent p, .characterCard p, .characterContent p, .characterInfo p{
    font-size: 1.2rem; /* Adjusts the font size for the button text */
    color: white; /* Matches the color to the existing design */
    margin: 0; /* Removes default paragraph margin */
    text-align: center; /* Centers the text */
    /*font-family: "Cormorant Garamond", serif; /* Uses the magical font */
    font-family: "Montserrat", sans-serif;
}

.hoverOn {
    transform: scale(1.1);
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.topAndBottom {
    padding: 1rem 0rem;
    width: 100%;    
    z-index: 10;
    background: transparent;
    backdrop-filter: blur(8px);
    border: 3px solid rgba(207, 167, 108, 0.532);
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.bottomFooter{
    padding: 0.7rem 0rem;
}

#footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    overflow-x: hidden;
    overflow-y: hidden;
}

.topTitle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.potterTyping, .footerTyping, .potterTypingSmall {
    font-size: 4rem;
    text-shadow: 2px 2px 2px rgba(207, 167, 108, 0.532);
    color: white;
    font-family: 'Harry P', sans-serif;
    margin: 0px;
}

.potterTypingSmall {
    text-shadow: 1px 1px 1px rgba(207, 167, 108, 0.532);
    font-size: 2rem;
    position: relative;
    top: 1rem;
}

.footerTyping {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center; gap: 1rem;
    text-decoration: none;
    animation: flicker 3s infinite;
}

.footerTyping a {
    text-decoration: none;  
    color: rgb(255, 255, 121);
}

.horizantalLine {display: none;}

.socialMediaDiv {
    display: flex;
    justify-content: center;
    gap: 2rem;
    transition: transform 0.3s ease-in-out;
}

/* Varsayılan olarak geniş ekran elementini göster, mobildekini gizle */
.social-media-wide {display: flex; /* Varsayılan olarak görünür */}
.social-media-wide-searchBar {display: flex; /* Varsayılan olarak görünür */}

.social-media-mobile {display: none; /* Varsayılan olarak gizli */}
.social-media-mobile-searchBar {display: none; /* Varsayılan olarak gizli */}

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

#linkedInPic {border: 2px solid white; border-radius: 10%;}
#instagramPic {border: 2px solid white; border-radius: 20%;}
#githubPic{border-radius: 100px; border: 2px solid white;}

#linkedInPic:hover, #instagramPic:hover, #githubPic:hover{
    /* Önce büyütme */
    transform: scale(1.2);
    /* Sonra sallanma animasyonu */
    animation: pulse 1.5s infinite;
}

.socialMedias {
    width: 60px;
    height: 60px;
}

/*----------------------------------------------
----------------------------------------------
----------------------------------------------*/
@keyframes wiggle {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(-3deg); }
    20% { transform: rotate(3deg); }
    30% { transform: rotate(-3deg); }
    40% { transform: rotate(3deg); }
    50% { transform: rotate(-3deg); }
    60% { transform: rotate(3deg); }
    70% { transform: rotate(-3deg); }
    80% { transform: rotate(3deg); }
    90% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

@keyframes flicker {
    0%, 19.99% { opacity: 1; }
    20%, 21% { opacity: 0.5; }
    22%, 24% { opacity: 1; }
    25%, 26% { opacity: 0.3; }
    27%, 29% { opacity: 1; }
    30%, 31% { opacity: 0.8; }
    32%, 35% { opacity: 1; }
    36%, 37% { opacity: 0; }
    38%, 100% { opacity: 1; }
}

.footerSocial, .footerLinks, .footerAbout, .footerSocialSearchBar, .footerLinksSearchBar, .footerAboutSearchBar{
    display: flex;
    width: 45%;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footerSocial {display: none;}

.forBackButton {width: 100%;display: flex; align-items:center; gap: 0.5rem;}
.hrStyle, .hrStyle1, .hrStyle2 {width: 100%; height: 0.1px; box-shadow: 0px 0px 10px 1px white;}
.hrStyle {position: relative; }

.footerInnerDiv {display: flex; justify-content: space-between; width: 90%; }

.onlyIndexBody {gap: 4rem;}

.footerLinks a, .footerLinksSearchBar a{color: #ffff79;}
