/*
 Theme Name:   Clearwater Wiki Theme
 Theme URI:    https://generatepress.com
 Description:  Built with love by Website Psychiatrist
 Author:       Website Psychiatrist
 Author URI:   https://websitepsychiatrist.com/
 Template:     generatepress
 Version:      1.0.0
*/
.custom-category-loop {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.category-item {
    position: relative;
    width: 32%;
    padding-top: 32%; /* Maintain square aspect ratio */
    margin-bottom: 1.5%;
    background-size: cover;
    background-position: center;
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color from parent */
    transition: all 0.3s ease-in-out;

}
.category-item {
    border: 1px solid #ccc;
    z-index: 1;
  }
  
  .category-item:hover {
    box-shadow: 7px 7px var(--accent-2);
  }

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5); /* 50% opacity white overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-title {
    font-size: 30px;
    color: #000;
    font-weight: bold;
          font-family: "Permanent Marker", cursive;
}

@media (max-width: 768px) {
    .category-item {
        width: 100%;
        padding-top: 100%; /* Maintain square aspect ratio */
        margin-bottom: 10px;
    }
}

/*Typing Placeholder in search form*/
@keyframes blink-caret {
    50% {
        border-color: transparent;
    }
}
.wp-block-search__input-1 {
    border: none;
    font-size: 16px;
    padding: 8px;
}
.wp-block-search__input-1:focus {
    outline: none;
}
.wp-block-search__input-1::placeholder {
    font-style: italic;
    color: #999;
    animation: blink-caret 0.75s step-end infinite;
}
.wp-block-search__button {
        background-color: var(--accent-2);
         border-top-left-radius: 5px;
   border-bottom-right-radius: 5px;
    transition: background-color 0.3s ease;
 font-family: "Permanent Marker", cursive;

    }
    .wp-block-search__button:hover {
             background-color: var(--accent);
     }

     /* Mobile Menu Button Styles */
#mobile-menu-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Mobile Menu Button Styles */
#mobile-menu-button {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none; /* Initially hide the button */
}

#mobile-menu-button img {
    width: 30px;
    height: 30px;
}

/* Hide the sidebar initially on small screens */
@media (max-width: 750px) {
  #left-sidebar {
        position: fixed;
        top: 0;
        left: -250px; /* Hidden off-screen */
        width: 250px;
        height: 100%;
        background-color: #f4f4f4;
        transition: left 0.3s ease;
        z-index: 999;
    }

    /* Show the sidebar when active on small screens */
    #left-sidebar.active {
        left: 0;
    }

    /* Show the button only on mobile */
    #mobile-menu-button {
        display: flex;
    }
}

/* Hide the element with the 'menu-toggle' class on mobile devices */
@media (max-width: 750px) {
    .menu-toggle {
        display: none !important;
    }
}

.inside-left-sidebar {
        border-radius: 10px;
margin-left: 20px;
}

.widget-title {
        font-family: "Permanent Marker", cursive;
font-size: 20px;
}

.site-main {
        border-radius: 10px;
margin-right: 20px;
}

.revision-dropdown {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 10px;
    margin-top: 5px;
    max-width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: absolute;
    z-index: 1000;
    color: #595959;

}

.revision-history {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.revision-history li {
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.revision-history li:last-child {
    border-bottom: none;
}

.dropdown-arrow {
    cursor: pointer;
    font-size: 14px;
    margin-right: 5px;
}

.entry-meta{
        visibility: hidden;
}


#backtoblog{
    visibility: hidden !important;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.share-button,
.edit-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.share-button {
    background-color: var(--accent-2);
}
.share-button:hover {
    background-color: var(--accent);
}
.edit-button {
    background-color: var(--accent);
}
.edit-button:hover {
    background-color: var(--accent-2);
    color: white;
}
.button-icon {
    vertical-align: middle;
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.share-button img,
.edit-button img {
    width: 16px;
    height: 16px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.edit-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--base-3);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: #28a745;
}

.button-icon {
    vertical-align: middle;
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.edit-button img {
    width: 16px;
    height: 16px;
}

.price-preview {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
}

span.dashicons.dashicons-menu {
    cursor: move;
}

.seasons-wrapper {
    width: 100%;
    margin: 3em 0;
    gap: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cheat-sheets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3%;
}

.cheat-sheet {
    aspect-ratio: 1/1;
    border: 1px solid black;
    border-radius: 5px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seasons {
    max-width: 1400px;
    width: 100%;
}

span.season {
    position: absolute;
    top: 5px;
    left: 5px;
    padding: 0.25em 0.5em;
    background: var(--accent-2);
    color: white;
    border-radius: 20px;
}