/* Kartoffelkanon - Modern Style */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
}

/* Main Container */
#main {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 60px rgba(0,0,0,0.3);
}

/* Header & Navigation */
#header {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    padding: 0;
}

#menubar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    height: auto;
}

.lavaLampWithImage {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    padding: 1rem 0;
    margin: 0;
    flex-wrap: wrap;
}

.lavaLampWithImage li {
    margin: 0;
}

.lavaLampWithImage li a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lavaLampWithImage li a:hover,
.lavaLampWithImage li.current a {
    background: #e94560;
    color: #fff;
}

#contact {
    padding: 1rem 0;
}

#contact a {
    color: #f39c12;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 2px solid #f39c12;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#contact a:hover {
    background: #f39c12;
    color: #1a252f;
}

/* Banner */
.container_header {
    display: none;
}

#banner {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    padding: 0;
}

#banner_content,
#banner_content2,
#banner_content3,
#banner_content4 {
    width: 100%;
    max-width: 1100px;
    height: 350px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#banner_content {
    background-image: url(../images/banner.png);
}

#banner_content2 {
    background-image: url(../images/banner2.png);
    height: 299px;
}

#banner_content3 {
    background-image: url(../images/banner3.png);
    height: 304px;
}

#banner_content4 {
    background-image: url(../images/banner4.png);
    height: 350px;
}

/* Site Content */
#site_content {
    padding: 2rem;
    background: #fff;
}

#content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.content_item {
    flex: 1;
    min-width: 300px;
    max-width: 65%;
}

.content_item2 {
    width: 100%;
    max-width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #1a252f;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; border-bottom: 3px solid #f39c12; padding-bottom: 0.5rem; display: inline-block; }
h3 { font-size: 1.35rem; color: #e94560; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    color: #444;
}

a {
    color: #e94560;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #f39c12;
    text-decoration: underline;
}

ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

ul li {
    margin-bottom: 0.5rem;
    color: #444;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Sidebar */
.sidebar_container {
    flex: 0 0 280px;
    min-width: 250px;
}

.sidebar {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.sidebar_item {
    width: 100%;
}

.sidebar h2 {
    color: #f39c12;
    font-size: 1.2rem;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar h4 {
    color: #e94560;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.sidebar p {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.6;
}

.sidebar a {
    color: #f39c12;
}

.sidebar ul {
    margin: 0;
    padding: 0;
}

.sidebar ul li {
    list-style: none;
    margin: 0.75rem 0;
}

/* Buttons */
.button_small {
    margin-top: 1rem;
}

.button_small a {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #e94560;
    color: #fff !important;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.button_small a:hover {
    background: #f39c12;
    transform: translateY(-2px);
}

/* Footer */
.container_footer {
    display: none;
}

#footer {
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    padding: 0;
}

#footer_content {
    padding: 2rem;
    text-align: center;
    color: #aaa;
    font-size: 0.9rem;
}

#footer a {
    color: #f39c12;
}

#footer a:hover {
    color: #e94560;
}

/* Fysik section - for math content */
div.fysik {
    max-width: 100%;
}

div.fysik p {
    font-size: 1rem;
    line-height: 1.8;
}

/* Notits box */
div.notits {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border: 2px solid #f39c12;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 500px;
}

/* Responsive */
@media (max-width: 900px) {
    #menubar {
        flex-direction: column;
        padding: 1rem;
    }
    
    .lavaLampWithImage {
        justify-content: center;
    }
    
    #contact {
        margin-top: 0.5rem;
    }
    
    .content_item {
        max-width: 100%;
    }
    
    .sidebar_container {
        flex: 1 1 100%;
    }
}

@media (max-width: 600px) {
    body {
        font-size: 15px;
    }
    
    #site_content {
        padding: 1rem;
    }
    
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.35rem; }
    h3 { font-size: 1.15rem; }
    
    .lavaLampWithImage li a {
        padding: 0.6rem 0.9rem;
        font-size: 0.85rem;
    }
    
    #banner_content,
    #banner_content2,
    #banner_content3,
    #banner_content4 {
        height: 200px;
    }
}

/* Fix for float clearing */
br[style*="clear"] {
    display: block;
    clear: both;
}

/* Image containers */
div[style*="float:left"] img,
div[style*="float: left"] img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
