/*
Theme Name: Dense Science Press
Theme URI: https://densesciencepress.com
Author: Soponyai János
Author URI: https://soponyaijanos.hu
Description: Custom minimalist theme for Dense Science Press
Version: 1.0
*/


/* Alap tipográfia */
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #f8fafc;
    margin: 0;
    padding: 0;
}


/* Hero */
.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-top: 1rem;
    color: #475569;
}

.hero-author {
    margin-top: 2rem;
    font-weight: 600;
    font-size: 1rem;
    color: #0d9488;
}

/* Gombok */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background-color: #0d9488;
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #0f766e;
}

/* Floating szavak */
.floating-words {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-word {
    position: absolute;
    font-weight: bold;
    animation: floatWord 18s infinite linear;
    opacity: 0.25;
    transform: rotate(var(--rotate, 0deg));
}

@keyframes floatWord {
    0% {
        transform: translateY(100vh) rotate(var(--rotate, 0deg));
        opacity: 0;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(-10vh) rotate(var(--rotate, 0deg));
        opacity: 0;
    }
}

/* Szolgáltatások listája */
.services-list {
    list-style: none;
    padding-left: 0;
    margin: 2rem 0;
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.services-list li {
    background-color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-weight: 600;
    transition: transform 0.2s;
}

.services-list li:hover {
    transform: scale(1.05);
}

/* Szövegszakasz */
.section-paragraph {
    margin-bottom: 1rem;
    color: #334155;
}

/* Rácsos elrendezés */
.section-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 4rem;
}

.section-content.reverse {
    flex-direction: row-reverse;
}

.section-text, .section-image {
    flex: 1 1 45%;
}

/* Kép stílusok */
.responsive-img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.icon-placeholder {
    font-size: 4rem;
    text-align: center;
}

/* Kapcsolat */
.contact-section {
    padding: 4rem 1rem;
    background-color: #f1f5f9;
    text-align: center;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-info {
    font-size: 1rem;
    margin: 0.25rem 0;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* Responsiveness */
@media (max-width: 768px) {
    .section-content {
        flex-direction: column;
    }

    .hero-title {
        font-size: 2rem;
    }

    .floating-word {
        font-size: 1rem;
    }
}

/* Navigation styles */
.main-nav {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title {
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

.mobile-menu {
    position: absolute;
    top: 60px;
    right: 1rem;
    background-color: #1e293b;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.mobile-menu li {
    margin: 0.5rem 0;
}

.mobile-menu a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: block;
}

.hidden {
    display: none;
}

#konyv p {
  text-align: justify;
}

/* Globális sorkizárás minden bekezdésre */
body:not(.koszono-oldal) main p,
body:not(.koszono-oldal) section p,
body:not(.koszono-oldal) .content p {
  text-align: justify;
}

}


.footer-legal a {
    color: #ccc;
    text-decoration: none;
}
.footer-legal a:hover {
    text-decoration: underline;
    color: #fff;
}
body.koszono-oldal .koszono-tartalom p {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}






