body {
    background-color: #1a1814;
    background-image: linear-gradient(rgba(26, 24, 20, 0.85), rgba(26, 24, 20, 0.95)), url('../rajzok/rajz.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #fffbf4;
    font-family: 'Courier New', Courier, monospace;
    font-style: italic;
    padding: 30px 15px;
    margin: 0;
    min-height: 100vh;
    box-sizing: border-box;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
    body {
        padding: 50px;
    }
}

.nav-welcome {
    font-size: 0.85em;
    opacity: 0.8;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.nav-welcome a {
    color: #fffbf4;
    text-decoration: none;
    border-bottom: 1px dashed rgba(255, 251, 244, 0.4);
    transition: all 0.25s ease;
}

.nav-welcome a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
    text-shadow: 0 0 10px #ffffff;
}

h1 {
    font-size: 1.6em;
    font-weight: normal;
    border-bottom: 1px solid rgba(255, 251, 244, 0.25);
    display: inline-block;
    padding-bottom: 12px;
    letter-spacing: 3px;
    margin-top: 0;
    margin-bottom: 40px;
}

.intro-text {
    max-width: 800px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.9;
    font-size: 1.05em;
}

.section-title {
    font-size: 1.3em;
    letter-spacing: 2px;
    border-bottom: 1.5px dotted rgba(255, 251, 244, 0.3);
    padding-bottom: 6px;
    margin-top: 40px;
    margin-bottom: 25px;
    color: #ffffff;
}

.grid-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 1100px;
}

@media (min-width: 768px) {
    .grid-layout {
        grid-template-columns: repeat(2, 1fr);
    }
}

.link-card {
    background: rgba(255, 251, 244, 0.03);
    border: 1px dashed rgba(255, 251, 244, 0.2);
    border-radius: 6px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    min-height: 150px;
}

.link-card:hover {
    border-color: rgba(255, 251, 244, 0.75);
    box-shadow: 0 0 15px rgba(255, 251, 244, 0.05);
    transform: translateY(-2px);
}

.link-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.link-name {
    font-size: 1.15em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.5);
}

.link-badge {
    font-size: 0.75em;
    padding: 2px 6px;
    border: 1px solid rgba(255, 251, 244, 0.35);
    border-radius: 4px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.link-desc {
    font-size: 0.95em;
    line-height: 1.5;
    opacity: 0.8;
    margin-bottom: 15px;
}

.link-url-text {
    font-size: 0.8em;
    opacity: 0.5;
    word-break: break-all;
}

.back-btn-container {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 251, 244, 0.25);
    max-width: 1100px;
}

.back-link {
    color: #fffbf4;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.back-link:hover {
    text-shadow: 0 0 15px #ffffff, 0 0 5px #ffffff;
    padding-left: 10px;
}

.labjegyzet {
    margin-top: 80px;
    font-size: 0.8em;
    opacity: 0.6;
}
