@font-face {
    font-family: 'Garet';
    src: url(/theme/font/Garet.otf);
    padding-top: 20px;
}

body {
    font-family: 'Garet';
    background-color: #f4f4f9;
    color: #333;
    padding: 20px;
    margin: 0;
}

h2 {
    color: #444;
    border-bottom: 2px solid #e8412b;
    padding-bottom: 10px;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    margin-top: 5px;
    display: inline-block;
}

input,
select {
    height: 40px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 40% 10% / 10% 40%;
}

a {
    text-decoration: none;
    color: #e8412b;
}

a:visited {
    color: #e8412b;
}

a:hover {
    color: #f76c16;
}

button {
    font-family: 'Garet';
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #e8412b, #f76c16);
    color: white;
    border: none;
    border-radius: 40% 10% / 10% 40%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin: 5px;
}

button:hover {
    background: linear-gradient(45deg, #f76c16, #e8412b);
    transform: translateY(-3px);
}

button:disabled {
    background-color: #838383;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 40% 10% / 10% 40%;
    transition: background-color 0.3s;
}

.radio-container {
    display: flex;
    align-items: self-end;
}

.radio-container input {
    margin: 0 10px 0 0;
}

.hidden {
    display: none;
}

fieldset {
    border: 1px solid #ccc;
    width: 250px;
    border-radius: 40% 10% / 10% 40%;
}

@font-face {
    font-family: 'Garet';
    src: url(/theme/font/Garet.otf);
    padding-top: 20px;
}

body {
    font-family: 'Garet';
    margin: 0;
    padding-top: 60px;
    background-color: #f4f4f4;
}

.navbar {
    display: flex;
    align-items: center;
    background-color: #f76c16;
    padding: 10px 20px;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    justify-content: space-evenly;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
}

.navbar a:hover {
    background-color: #f15c0087;
    border-radius: 40% 10% / 10% 40%;
}

.navbar img {
    height: 40px;
}

.navbar .menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    left: 0;
    background-color: white;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #333;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    background-color: #ddd;
}

.sidebar .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 500;
    display: none;
}

.content {
    margin: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff, #f1f1f1);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgb(247 108 22 / 19%);
    border-left: 5px solid #f76c16;
}

.content h1 {
    color: #e8412b;
}


.content p {
    margin: 0 0 20px;
    line-height: 1.6;
}

.main-content {
    display: flex;
}

.articles-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-top: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.article {
    margin-bottom: 20px;
    padding: 20px;
    padding-top: 50px;
    padding-bottom: 50px;
    cursor: pointer;
    flex: 0 0 45%;
    box-sizing: border-box;
    display: flex;
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f1f1f1);
    border-radius: 40% 10% / 10% 40%;
    box-shadow: 0 8px 16px rgb(247 108 22 / 19%);
    border-left: 5px solid #f76c16;
}

.article img {
    width: 200px;
    height: 200px;
    margin-right: 20px;
    border-radius: 40% 10% / 10% 40%;
}

.article_v {
    margin-bottom: 20px;
    padding: 20px;
    padding-top: 50px;
    padding-bottom: 50px;
    cursor: pointer;
    flex: 0 0 45%;
    box-sizing: border-box;
    display: flex;
    position: relative;
    background: linear-gradient(135deg, #ffffff, #f1f1f1);
    border-radius: 40% 10% / 10% 40%;
    box-shadow: 0 8px 16px rgb(247 108 22 / 19%);
    border-left: 5px solid #f76c16;
}

div {
    -webkit-tap-highlight-color: transparent;
    background-color: inherit;
}

select, input, textarea {
    outline: none;
}

.article .info {
    flex-grow: 1;
    padding-top: 10px;
}

.article_v .info {
    flex-grow: 1;
    padding-top: 10px;
}

.article h2 {
    margin-top: 0;
    color: #e8412b;
}

.article_v h2 {
    margin-top: 0;
    color: #e8412b;
}

.article p {
    margin: 0;
}

.article_v p {
    margin: 0;
}

.comments-button {
    font-family: 'Garet';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.comments-button img {
    width: 24px;
    height: 24px;
}

.comments-button span {
    margin-left: 5px;
    font-size: 14px;
    color: #333;
}

.filter-buttons {
    display: flex;
    flex-direction: column;
    width: 230px;
    margin-right: 20px;
    padding: 30px 0px 0px 40px;
}

.filter-buttons button {
    font-family: 'Garet';
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #e8412b, #f76c16);
    color: white;
    border: none;
    border-radius: 40% 10% / 10% 40%;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin: 5px;
}

.filter-buttons button:hover {
    background: linear-gradient(45deg, #f76c16, #e8412b);
    transform: translateY(-3px);
}

.filter-buttons .active {
    background: linear-gradient(45deg, #f76c16, #e8412b);
}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
    overflow: auto;
}

.modal-content {
    margin: 80px auto 20px auto;
    width: 50%;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: linear-gradient(135deg, #ffffff, #f1f1f1);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgb(247 108 22 / 19%);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    margin-right: 10px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.comments-container {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.comment {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.comment:last-child {
    border-bottom: none;
}

.comment p {
    margin: 0;
}

h1 {
    color: #e8412b;
}

.footer {
    background: linear-gradient(to bottom, #fff 0%, #fff 50%, #f4f4f4 100%);
    color: #333;
    text-align: center;
    position: absolute;
    width: 100%;
    left: 0;
    box-shadow: 0 -4px 4px rgba(0,0,0,0.1);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.spinner {
    border-top: 5px solid #f76c16;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    background: unset;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}


@media (max-width: 768px) {
    body {
        padding-left: 12px;
        padding-right: 12px;
    }
    .main-content {
        flex-direction: column;
        margin-left: 0;
    }
    .modal-content {
        width: 90%;
    }
    .filter-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin: 0;
        padding: 0px 0px 0px 0px;
    }
    .filter-buttons button {
        margin: 5px;
        flex: 1 1 calc(50% - 10px);
        padding: 10px 3px;
    }
    .navbar a {
        display: none;
    }
    .navbar .menu-icon {
        display: block;
    }
    .navbar {
        justify-content: center;
        flex-direction: row-reverse;
    }
    .navbar img {
        margin-left: auto;
        margin-right: auto;
    }
    .articles-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .article {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        padding: 10px;
        border-radius: 10px;
        margin: 0;
        border-left: 3px solid #f76c16;
        box-shadow: 0 3px 3px rgb(247 108 22 / 19%);
    }
    .article img {
        margin-right: 0;
        width: 150px;
        height: auto;
        border-radius: 10px;
        max-height: 188px;
    }
    .article_v {
        padding: 10px;
        border-radius: 10px;
        margin-bottom: 10px;
        border-left: 5px solid #f76c16;
        box-shadow: 0 3px 3px rgb(247 108 22 / 19%);
    }
    .article_v h2 {
        margin-top: 0;
        color: #e8412b;
        border-bottom: 2px solid #e8412b;
    }
    h2 {
        border-bottom: none;
        font-size: 13px;
    }
    .comments-button img {
        width: 16px;
        height: 16px;
    }
}