/*Ez a cikkek aloldal. Még nincs kész.*/


@font-face {
    font-family: roboto;
    src: url(/fonts/Roboto/Roboto-Regular.ttf);
}

@font-face {
    font-family: roboto-b;
    src: url(/fonts/Roboto/Roboto-Bold.ttf);
}

*, *::before, *::after {
    box-sizing: border-box;
}

.oldal h3 {
    text-align: center;
    text-shadow: 1px 1px 4px #000000;
    padding: 10px 0 10px;
}

.my-articles {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    width: 100%;
}

.my-articles-img {
    width: 38.5%;
    border: 2px solid #777;
    border-radius: 5px;
    overflow: hidden; /* hogy a keret ne törjön át a kép alatt */
}

.my-articles-img img {
    width: 100%; /* a kép maximális szélessége a tartalomhoz igazítva */
    display: block;
    margin: 0; /* a kép margin értékének nullázása */
    padding: 0; /* a kép padding értékének nullázása */
}


.my-articles-text {
    width: 58.5%;
}

.my-articles-text h3, p {
    padding: 5px 0 5px;
    text-shadow: 1px 1px 4px #000000;
}

.paragraph-left a {
    font-size: 1.3rem;
    line-height: 1.6rem;
    font-family:  roboto, georgia;
    color: #001a4d;
    text-shadow: none;
    text-align: left;
    text-transform: none;
    text-decoration: underline;
    color: blue;
}

.paragraph-left { 
    font-size: 1.2rem;
    text-align: left;
    color: #001a4d;
    font-family: roboto-b, georgia;
    text-shadow: none;
    line-height: 1.6rem;
    
}

.paragraph-center { 
    text-align: center;
    color: #f1f1f1;
    font-family: roboto-b, georgia;
    text-shadow: none;
    font-size: 1.6rem;
    line-height: 1.6rem;
    margin-bottom: 0.2rem;
    
}

.paragraph-left-k { 
    text-align: left;
    font-size: 1.7rem;
    color: #0044cc;
    font-family: roboto-b, georgia;
    text-shadow: none;
    line-height: 2rem;
    margin-bottom: 0.2rem;
    
}

.cikkdiv {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    background: linear-gradient(#b3d1ff, #d0eafb);
    border: 1px solid #66a3ff;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.cikkimage-div {
    flex: 0 0 150px; /* Fix szélesség: 150px */
    margin-right: 10px; /* Távolság a szövegtől */
}

.cikkimage {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.cikkcontent-div {
    flex: 1; /* A szöveg kitölti a maradék helyet */
}

.cikkcim {
    text-align: left;
    color: #001a4d;
    font-family: roboto-b, georgia;
    text-shadow: none;
    font-size: 1.8rem;
    line-height: 1.5rem;
    margin-bottom: 0.5rem;
}

.cikksummary {
    text-align: left;
    color: #001a4d;
    font-family: roboto-b, georgia;
    font-size: 1.1rem;
    line-height: 1.3rem;
    margin-bottom: 0.5rem;
    text-shadow: none;
}

.cikkcontent-div a {
    float: left;
    color: #0044cc;
    font-family: roboto-b, georgia;
    text-shadow: none;
    padding: 3px 6px;
    border: 1px solid #0044cc;
    border-radius: 5px;
    background: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cikkcontent-div a:hover {
    color: #fff;
    background: #0044cc;
    border-color: #0044cc;
}

/*Innentől a tényleges cikk sablon formázás*/
.cikkdoboz {
    background-color: #f1f1f1;
    width: 80%;
    margin: auto;
    border-radius: 10px;
    padding: 40px;
    margin-top: 20px;
    clear: both; /* Biztosítja, hogy a tartalom ne folyjon túl a képen */
}

.cikkcim1 {
    text-align: left;
    color: #001a4d;
    font-family: roboto-b, georgia;
    text-shadow: none;
    font-size: 2.5rem;
    line-height: 1.5rem;
    margin-bottom: 0.5rem;
}

.cikkinfok {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px; /* Távolság a tartalomtól */
    text-align: left; /* Balra igazítás */
    border-bottom: 1px solid #ddd; /* Vékony vonal a dátumok alatt */
    padding-bottom: 10px;
}

.cikkinfok p {
    margin: -5px 0;
    text-shadow: none;
    margin-left: 5px;
}

.tartalom p {
    text-shadow: none;
    font-size: 1.2rem;
    font-family: roboto, georgia;
    line-height: 1.5rem;
    margin-bottom: -15px;
    text-indent: 2%;
}

.brkephez {
    display: block;
}

.cikkimage {
    float: left; /* A kép balra úszik */
    margin-right: 20px; /* Kép melletti távolság */
    margin-bottom: 10px; /* Kép alatti távolság */
    margin-top: 10px;
    max-width: 300px; /* A kép maximális szélessége */
    max-height: 300px; /* A kép maximális magassága */
}

.cikkimage img {
    width: 100%; /* A kép kitöltse a divet */
    height: auto; /* Arányos magasság */
    object-fit: cover; /* A kép arányos kitöltése */
}

.tartalom b {
    font-family: roboto-b, georgia;
}

.tartalom .short-gap {
    margin-bottom: -25px;
}

.behuzas {
    margin-left: 2%;
}

.behuzas1 {
    margin-left: 4%;
}

/* Tisztítás, hogy a következő tartalom ne csússzon a kép alá */
.clear {
    clear: both;
}

.cikk-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
    border-top: 1px solid #ddd;
    font-family: Arial, sans-serif;
}

.cikk-footer .reaction,
.cikk-footer .comments,
.cikk-footer .share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cikk-footer button {
    display: flex;
    align-items: center;
    background-color: transparent;
    color: #333;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 10px;
    gap: 5px;
}

.cikk-footer button:hover {
    color: #007bff;
    text-decoration: underline;
}

.cikk-footer .like-btn:hover {
    color: #007bff;
}

.cikk-footer .dislike-btn:hover {
    color: #ff0000;
}

/* Ikonok mérete a gombokon */
.cikk-footer button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.cikk-footer .reaction button,
.cikk-footer .comments button,
.cikk-footer .share button {
    display: flex; /* Az ikonok és a szövegek megjelenítése egyszerre */
    align-items: center;
}

/* Ha a felhasználó rákattintott a "Tetszik" gombra */
.cikk-footer .like-btn.liked {
    color: #007bff; /* Kék szín */
}

/* Ha a felhasználó rákattintott a "Nem tetszik" gombra */
.cikk-footer .dislike-btn.disliked {
    color: #ff0000; /* Piros szín */
}


.cikk-footer .comments a, .share a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 1.2rem;
    gap: 5px;
}


.cikk-footer .comments a:hover, .share a:hover {
    color: #007bff;
    text-decoration: underline;
}

.cikk-footer .comments img, .share img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* Komment formázás */
.comment-box {
    display: none; /* Alapértelmezett rejtett */
    margin-top: 20px;
    text-align: center;
}

.comment-box textarea {
    width: 80%;
    height: 100px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.comment-box button {
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.comment-box button:hover {
    background-color: #0056b3;
}

.register-prompt {
    width: 80%;
    margin: auto;
    text-align: center;
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 2px solid #ccc;
    margin-top: 20px;
    border-radius: 10px;
}

.register-prompt p {
    font-size: 18px;
    color: #333;
    text-shadow: none;
}

.register-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    font-family: roboto-b, georgia;
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
}

.register-link:hover {
    background-color: #0056b3;
    color: #fff;
}

.register-link:after {
    content: " ↗"; /* Egy kis ikon az új ablak jelzésére */
    font-size: 0.9em;
    color: #fff;
}

.egyeb {
    display: none;
}

/* Kommentek kiíratása */
.comments-section {
    margin-top: 20px;
    padding: 10px;
    width: 80%;
    margin: auto;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.comments-section h3 {
    text-align: center;
    font-family: roboto, georgia;
    font-size: 1.4rem;
    color: #737373;
}

.comment-card {
    display: flex;
    align-items: center;  /* Kép és szöveg középre igazítása függőlegesen */
    margin: 0;
    padding: 0 15px 10px; /* Felső padding csökkentése: 10px-ről 5px-re */
    margin-bottom: 15px;
    background-color: #f8faff;
    border: 1px solid #ccddff;
    border-radius: 5px;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.2);
}

.comment-avatar {
    margin-right: 15px;
    width: 55px;
}

.avatar-img {
    width: 40px;  /* Méret állítása */
    height: 40px;
    border-radius: 50%;  /* Kör alak */
    object-fit: cover;   /* Ha a kép nem négyzetes, akkor a tartalom kitöltse */
}

.comment-body {
    flex-grow: 1; /* A comment-body elfoglalja a maradék helyet */
    display: flex;
    flex-direction: column; /* A szöveg és dátum függőlegesen elrendezve */
}

/* Ha a komment 'pending' státuszú */
.comment-card.pending {
    background-color: #fffbe5;
    border-color: #ffd700;
}

/* Komment szöveg stílusa */
.comment-text {
    text-shadow: none;
    margin-bottom: 5px; /* Kisebb távolság a szöveg és a meta adatok között */
    flex: 1; /* A szöveg kitölti a rendelkezésre álló helyet */
}

/* Komment metaadatok (dátum, státusz) */
.comment-meta {
    text-shadow: none;
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
    margin-bottom: 5px; /* Egyenletes alsó margó */
    display: flex; /* Flexbox a jobb elrendezés érdekében */
    justify-content: flex-end; /* Dátum a jobb oldalra igazítva */
    align-items: flex-end; /* Dátum a szöveg alá kerül */
    width: 100%;
}

/* Pending státusz címke */
.pending-label {
    color: #ff9800;
    font-weight: bold;
    margin-right: 10px; /* Kis távolság a dátumhoz képest */
}

/* Komment dátum */
.comment-date {
    text-shadow: none;
    margin-left: auto;
}

.related-articles {
    margin-top: 20px;
    text-align: center;
    margin: 0 auto;
    
}

.related-articles h3 {
    font-family: roboto-b, georgia;
    font-size: 1.8rem;
    color: #333;
    width: 80%;
    margin: auto;
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 15px;
}

/*.articles-grid, .article-card {
    all: unset;
    display: block;
}*/

.articles-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    align-items: flex-start;
    
}

.article-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: calc(25% - 20px);
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    box-sizing: border-box;
}

.article-card:hover {
    transform: scale(1.05);
}

.article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.article-image img {
    width: 100%;
    height: auto;
    border-radius: 8px 8px 0 0;
}

.article-title {
    font-family: roboto-b, georgia;
    font-size: 1.8rem;
    margin: 10px 0;
    color: #333;
}

.article-summary {
    font-size: 0.9rem;
    color: #555;
    text-shadow: none;
}

.content-transition {
    display: inline-block; /* Fontos, hogy a szöveg inline legyen */
    background: linear-gradient(to bottom, rgba(0, 26, 77, 1), rgba(0, 26, 77, 0));
    -webkit-background-clip: text; /* Csak a szövegre alkalmazza a hátteret */
    -webkit-text-fill-color: transparent; /* A szöveg átlátszóvá tétele */
    color: transparent; /* Biztosítja, hogy a szöveg alapértelmezésben átlátszó legyen */
}













/* Mobil verzio */
@media only screen and (max-width: 768px) {
    
    .my-articles {
        flex-direction: column;
    }
    
    .my-articles-img {
        margin-bottom: 20px;
    }
    
    .my-articles-img, .my-articles-text {
        width: 100%;
    }
    
    .paragraph-left, .paragraph-left-k {
        text-align: center;
    }
    
    .paragraph-left a {
        text-align: left;
        margin: 0;
        padding: 0;
    }
    
    .cikkdiv {
        flex-direction: column; /* Kép felül, szöveg alul */
        align-items: center; /* Kép és szöveg középre igazítása */
        text-align: center;
        padding: 10px 10px; /* Extra tér a szöveg és a tartalom körül */
    }

    .cikkimage-div {
        display: flex;
        justify-content: center; /* Kép vízszintesen középre igazítása */
        align-items: center; /* Függőleges középre helyezés (ha szükséges lenne) */
        width: 100%; /* A div a teljes szélességet kihasználja */
        margin-bottom: 10px; /* Távolság a szövegtől */
        padding: 10px 0;
        margin-right: 0;
    }

    .cikkimage {
        display: block; /* Biztosítja, hogy a kép önálló blokk legyen */
        margin: 0 auto; /* Vízszintesen középre helyezi a képet */
        max-width: 300px; /* Maximum szélesség mobilon */
        width: 100%; /* A kép kitölti a rendelkezésre álló helyet */
        height: auto; /* Arányok megtartása */
        border-radius: 5px; /* Kicsit kerekített sarkok */
    }

    .cikkcontent-div {
        text-align: center; /* Szövegek középre igazítása */
        margin-top: 10px; /* Távolság a kép és a szöveg között */
    }
    
    .cikkcim, .cikksummary {
        text-align: center;
    }
    
    .cikkcontent-div a {
        float: none;
        display: inline-block; /* Ahhoz, hogy margin és padding is jól működjön */
        text-align: center; /* Tartalom középre igazítása a gombon belül */
        margin: 10px auto; 
    }
    
    .cikkdoboz {
        width: 96%;
        padding: 20px;
        margin-top: 4%;
    }
    
    .cikkcim1 {
        line-height: 3rem;
    }
    
    .cikkimage {
        float: none;
    }

    .tartalom p, .tartalom b {
        text-align: center;
        margin-left: 0;
    }
    
    .brkephez {
        display: none;
    }
    
     .cikk-footer button {
        justify-content: center; /* Középre igazítjuk az ikonokat */
        font-size: 0; /* Elrejti a szöveget, nem lesz látható */
    }
    
    /* A gombok szövegeit elrejtjük */
    .cikk-footer button img {
        margin-right: 0; /* Ne legyen eltérés az ikonok között */
    }
    
    /* Elrejtjük a szöveget a gombokban */
    .cikk-footer .reaction button,
    .cikk-footer .comments button,
    .cikk-footer .share button {
        gap: 0; /* Csökkentjük a távolságot az ikonok között, ha szükséges */
    }

    .cikk-footer .comments a, .cikk-footer .share a{
        font-size: 0; /* Eltünteti a szöveget */
        padding: 5px; /* Igazítja a gombokat, ha a szöveg el van távolítva */
    }
    
    .cikk-footer button img, .comments img, .share img {
        width: 30px;
        height: 30px;
        object-fit: contain;
    }
    
    .comment-box textarea {
        width: 100%;
    }
    
    .article-card {
        width: calc(50% - 20px); /* Két oszlop mobilon */
    }
    
    
    
    
    
    
    
}

@media (max-width: 480px) {
    .article-card {
        width: 100%; /* Egy oszlop kis képernyőkön */
    }
}





















