/*
Theme Name: VNovels
Author: Aort12
Version: 1.0
*/
@font-face {
    font-family: 'Russo One';
    src: url(./fonts/RussoOne-Regular.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: black;
    gap: clamp(1.25rem, 0.795rem + 2.273vw, 2.5rem);
    min-height: 95vh;
    box-sizing: border-box;
}
main {
    width: 100%;
    flex: 1;
    flex-grow: 1;
}
a {
    display: flex;
    text-decoration: none;    
    color: inherit;
}

/* Header/Хедер */
.pannel {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    backdrop-filter: blur(10px); 
    background: rgba(0, 0, 0, 0.25); 
    box-shadow: 0px 0px 12px 11px rgba(202, 7, 219, 0.37);
    -webkit-backdrop-filter: blur( 10px );
    border-radius: 20px;
    box-sizing: border-box;
    
}

.pannelpart {
    display: flex;
    padding: 0 0.5rem;
    align-items: center;
    
}
.img {
    padding: 2.4em 2.4em;
    background-image: url(./images/logo.png);
    background-size: cover;
    border: none;
    background-color: transparent;
    transition: transform 0.3s ease;
}

.img:hover {
    transform: scale(1.1);
}

.panbut {
    font-family: 'Russo One';
    text-align: center;
    font-size: clamp(0.625rem, 0.284rem + 1.705vw, 1.563rem);
    padding: 0 0.833vw ;
    color: rgb(197, 50, 173);
    border: none;
    background-color: transparent;
    transition: transform 0.3s ease;
    text-shadow:
    0 0 4px rgba(206, 19, 175, 0.6),
    0 0 8px rgba(204, 25, 174, 0.5),
    0 0 15px rgba(204, 21, 173, 0.5),
    0 0 30px rgba(204, 21, 173, 0.4),
    0 0 50px rgba(204, 21, 173, 0.3),
    0 0 80px rgba(204, 21, 173, 0.2);
}
.panbut:hover {
    transform: scale(1.1);
}
.gorizline {
    color: black;
    width: 90%;
    border: 2px solid rgba(0, 0, 0, 0.25);
    box-shadow: 0px 0px 12px 11px rgba(202, 7, 219, 0.37);
    
}

.cont {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.625rem, 0.284rem + 1.705vw, 1.563rem);
    
}

.cardnov {
    font-family:'Russo One';
    font-size: clamp(0.938rem, 0.71rem + 1.136vw, 1.563rem);
    display: flex;
    flex: 0 1 300px;
    min-width: 300px;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 450px;
    justify-content: space-between;
    padding: 1.852rem 0;
    gap: clamp(0.313rem, 0.085rem + 1.136vw, 0.938rem);
    box-shadow: 0px 0px 12px 11px rgba(202, 7, 219, 0.37);
    color: rgb(197, 50, 173);
    
}

.imgcon {
    width: 90%;
    height: 350px;
    object-fit:cover;
    object-position: center;
    box-shadow: 0px 0px 12px 11px rgba(202, 7, 219, 0.37);
    
}

.readbtn {
    font-family:'Russo One';
    font-size: clamp(0.625rem, 0.398rem + 1.136vw, 1.25rem);
    border: none;
    border-radius: 20px;
    background-color: transparent;
    box-shadow: 0px 0px 12px 11px rgba(202, 7, 219, 0.37);
    color: rgb(197, 50, 173);
    transition: transform 0.3s ease;
    
}
.readbtn:hover {
    transform: scale(1.1);
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0; 
    width: 250px;
    height: 100vh;
    background-color: rgb(0, 0, 0); 
    box-shadow: 0px 0px 12px 11px rgba(202, 7, 219, 0.37);
    transition: 0.4s;
    z-index: 1000; 
    transform: translateX(-100%); 
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
}
.sidebar2 {
    transform: translateX(0);
}

#burger {
    display: none;
    font-size: 20px;
    grid-column: 1;
    justify-self: start;
    margin-left: 20px;
    line-height: 1;
    
}
#sideb {
    display: none;
    
}
.sidepart {
    display: flex;
    justify-content: space-around;
}
.mobileheader {
    display: none;
    grid-template-columns: 1fr auto 1fr;
    width: 100%;
    align-items: center;
    
}
.img2 {
    display: none;
    width: 54px;
    object-fit: cover;
    transform: scale(1.7);
    border: none;
    transition: transform 0.3s ease;
    grid-column: 2;
    justify-self: center;
    overflow: hidden
    
}

.downmenu {
    text-align: center;
    margin-bottom: 10px;
}
.downside {
    display: flex;
    
}

footer {
    padding-bottom: 2.5rem;
}
.panbut2 {
    font-size: clamp(0.625rem, 0.511rem + 0.568vw, 0.938rem);
}
@media (max-width: 768px) {
    .pannel {
        display: none;
        
    }
    #burger {
        display: block;
    }
    #sideb {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        
    }
    .pannelpart {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding-top: 1rem;
    }
    .panbut {
        font-size: clamp(1.25rem, 1.023rem + 1.136vw, 1.875rem);
    }
    .panbut2 {
        font-size: clamp(0.625rem, 0.511rem + 0.568vw, 0.938rem);
    }
    a {
        justify-content: center;
    }
    .img2 {
        display: block;
    }
    .mobileheader {
        display: grid;
        
    }
    .downside {
        flex-direction: column;
        gap: clamp(0.313rem, 0.199rem + 0.568vw, 0.625rem);
    }
    .cardnov {
        min-height: 250px;
        flex: 0 1 250px;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
}