/* Use Custom Font */
@font-face {
    font-family: 'HindVadodara';
    src: url('/Fonts/HindVadodara-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'NotoSans';
    src: url('/Fonts/NotoSansGujarati-Bold.ttf') format('truetype');
}

#search-box {
    margin-left: 0px;
    margin-bottom: 20px;
    padding: 10px;
    width: calc(100% - 40px);
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Grid layout for magazine names */
#magazine-list {
    list-style-type: none;
    padding: 0;
    margin-left: 70px;
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* Five columns */
    gap: 20px; /* Space between items */
    margin-right: 90px;
}

#magazine-list li {
    padding: 10px;
    background-color: rgb(252, 211, 158);
    border: 2px solid #eeb422;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    font-family: 'NotoSans';
    font-weight: bolder;
}

#magazine-list li:hover {
    background-color: #e9e9e9;
}

/* Pagination styles */
#pagination {
    display: flex;
    justify-content: center;
    margin: 20px;
}

.pagination-button {
    padding: 10px 20px;
    margin: 0 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #4d2200;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: bolder;
}

.pagination-button:hover {
    background-color: #6d3001;
}

#page-info {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    background-color: whitesmoke;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 1000;
    max-height: 80%;
    /* Set max-height for scrolling */
    overflow-y: auto;
    /* Enable vertical scrolling */
    width: 80%;
    /* Adjust width for better visibility */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.back-button {
    display: inline-block;
    margin-bottom: 10px;
    padding: 10px 20px;
    background-color: #4d2200;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #6d3001;
}

h2 {
    margin-top: 0;
}

.popup div {
    padding: 10px;
    margin: 5px 0;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.popup div:hover {
    background-color: #e9e9e9;
}

#year-content {
    background-color: rgb(252, 211, 158);
    font-family: 'NotoSans';
}

#month-content {
    background-color: rgb(252, 211, 158);
    font-family: 'NotoSans';
}

/* Responsive Design for smaller screens */
@media (max-width: 1200px) {
    #magazine-list {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on medium screens */
    }
}

@media (max-width: 900px) {
    #magazine-list {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on smaller screens */
        margin-left: 15px;
    }

    #search-box {
        margin-left: 10px;
    }
}
