@font-face {
    font-family: AnticSlab;
    src:url(fonts/Antic_Slab/AnticSlab-Regular.ttf)
    }
  @font-face {
    font-family: Comfortaa;
    src:url(fonts/Comfortaa/Comfortaa-Regular.ttf)
    }   
/* Generella regler */  
html{
    font-size: 105%;
  }  

.upper  {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    background-color: #ebf3bf;
    padding: 2rem;
    border: 1px solid #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%; 
    max-width: 1200px; 
    margin: 0 auto;
}

.navigation {
    width: 90%;
    text-align: center;
    background-color: #8b4513;
    color: white;
    padding: 0.5rem;
    box-sizing: border-box;
}

.leftPart {
    width: 30%;
    background-color: #f4f4f4;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
}

.navigation a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
}

.navigation a:hover {
    text-decoration: underline;
}

.leftPart img, .leftPart-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}
.Allimages, .imageBox {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allows wrapping of items */
    width: 100%;
    background-color: #f4f4f4;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
}

.Allimages picture {
    width: 48%; /* Adjust width to fit your layout */
    margin-bottom: 1rem; /* Space between rows when stacked */
}

.imageBox picture {
    width: 30%; /* Adjust width to fit your layout */
    margin-bottom: 1rem; /* Space between rows when stacked */
}

.Allimages img, imageBox img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Media query for smaller screens */
@media (max-width: 600px) {
    .Allimages, .imageBox {
        flex-direction: column; /* Stack items vertically */
    }

    .Allimages picture, .imageBox picture {
        width: 100%; /* Full width for stacked items */
    }
}

  table {
    width: 100%;
    font-size: 14px;    
    width: 100%;
    height: 10vh;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #ddd;
    padding: 2px;
    vertical-align: top;    
}

th {
    background-color: #f2f2f2;
}  
  #songs-menu {
    list-style-type: none;
    padding: 0;
  }
  #songs-menu li {
    margin-bottom: 10px;
  }
  #songs-menu a {
    text-decoration: none;
    color: blue;
  }
  .menu-column {
    width: 200px; /* Fixed width for the first column */
  }
  @media (max-width: 768px) {
    .menu-column {
      width: 150px; /* Adjusted width for tablets */
    }
  }
  
  @media (max-width: 480px) {
    .menu-column {
      width: 100px; /* Adjusted width for mobile devices */
    }
  }
        /* Popup container */
        .popup {
            display: none;
            position: fixed;
            z-index: 1;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            background-color: rgb(0,0,0);
            background-color: rgba(0,0,0,0.4);
            padding-top: 10px;
            font-size: 16px;
        }

        /* Popup content */
        .popup-content {
            background-color: #fefefe;
            margin: 5% auto;
            padding: 20px;
            border: 1px solid #888;
            width: 20%;
        }

        /* Close button */
        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
        }

        .close:hover,
        .close:focus {
            color: black;
            text-decoration: none;
            cursor: pointer;
        }

        
.rightPart2, .rightPart3 {
    width: 90%;
    text-align: left;
    margin-top: 2rem;
    box-sizing: border-box;
}

.rightPart1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

main, .upper, footer, aside {
    margin: 0 auto;  
    max-width: 74rem;
    padding: 20px;    
}

#news, #story {
    margin-bottom: 20px;
}

body {
    font: 250 1.3rem/1.375 "AnticSlab-Regular", Georgia, serif;
    color: #333;
    background-color: #fff;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    font-family: "Comfortaa-Regular", Helvetica, sans-serif;
    color: #333;
    text-align: center;  
    font-weight: bold;      
}

h1 {
    font-size: 1.17em;
    color: #104203;       
}
h2 {
    font-size: 1.5em;
    margin-bottom: 20px;            
}
h3 {
    font-size: 1.17em;
    margin-bottom: 20px;      
}
footer h4 {
    margin-bottom: 0px;   
    font-size: 0.8em;    
}
h4 {
    font-size: 1.05em;
    margin-bottom: 20px;    
    font-weight: bold;          
}
aside, .imageBox {
    text-align: center;
}

header, footer {
    background-color: #f4a460;
    color: #104203;
    text-align: center;
    padding: 10px 0;
}

.homePage {
    padding: 20px;
    background-color: #fdf5e6;
    border: 1px solid #e7e7e7;
    margin-bottom: 20px;
}

#recipes {
    padding: 20px;
    border-radius: 8px;
    margin: 0 auto;
}

#recipes img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 30%;
    height: auto;     
}

#recipes h2 {
    color: #8B4513; 
    text-align: center;
    margin-bottom: 20px;
   
}

#list-of-recipes {
    margin-top: 20px;
}

.expandedH {
    cursor: pointer;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f1f1f1;
    margin-bottom: 5px;
    position: relative;
}

.expandedH::after {
    content: '\002B'; 
    font-size: 20px;
    color: #777;
    float: right;
    margin-left: 5px;
}

.expandedH.active::after {
    content: "\2212"; 
}

.expandedH-content {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #f9f9f9;
    display: none;
    margin-bottom: 10px;
}
p {
    margin: 10px 0; 
}
.expanded {
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f2f2f2;
}

.expanded::after {
    content: '\25BC'; 
    font-size: 18px;
    margin-left: 10px;
}

.active::after {
    content: '\25B2';
}

.content {
    padding: 0 18px;
    display: none;
    overflow: hidden;
    background-color: #f9f9f9;   
}

.fixed-width {
    width: 30%;
}

form {
    display: flex;
    flex-direction: column;
       
}
input[type="text"],
input[type="email"],
input[type="tel"],
select {

    border: 1px solid #ccc;
    border-radius: 5px;
    width: 93%;
    padding: 1em;
    margin-bottom: 1em;     
}
input[type="radio"] {
    margin-right: 0.5em;
    padding: 1em;    
    margin-bottom: 2em;    
}
input[type="submit"] {
    background-color: #c5e9a4;
    color: black;
    padding: 1em;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    max-width: 37rem;   
    justify-content: center;     
}
input[type="submit"]:hover {
    background-color: #c5e9a4;
}

.buttonCourse {
    display: flex;
    justify-content: center;
}

fieldset {
    border: 1px solid #ccc;
    margin-bottom: 1em;
    padding: 1em;
    border-radius: 5px;
}

legend, .dates {
    font-weight: bold;
    color: #333;
    margin-bottom: 1em; 
    padding: 0.5em;    
}
label {
    display: block;
    margin-bottom: 0.5em;
}
.tree-container {
    width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
}
.tree {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}
.tree ul {
    padding-top: 20px; 
    position: relative;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
}
.tree li {
    list-style-type: none;
    margin: 0 auto;
    position: relative;
    padding: 20px 5px 0 5px;
    transition: all 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.tree li::before, .tree li::after {
    content: '';
    position: absolute; 
    top: 0; 
    right: 50%;
    border-top: 2px solid #ccc;
    width: 50%; 
    height: 20px;
}
.tree li::after {
    right: auto; 
    left: 50%;
    border-left: 2px solid #ccc;
}
.tree li:only-child::after, .tree li:only-child::before {
    display: none;
}
.tree li:only-child { padding-top: 0; }
.tree li:first-child::before, .tree li:last-child::after {
    border: 0 none;
}
.tree li:last-child::before {
    border-right: 2px solid #ccc;
    border-radius: 0 5px 0 0;
}
.tree li:first-child::after {
    border-radius: 5px 0 0 0;
}
.tree ul ul::before {
    content: '';
    position: absolute; 
    top: 0; 
    left: 50%;
    border-left: 2px solid #ccc;
    width: 0; 
    height: 20px;
}
.tree li a {
    border: 2px solid #ccc;
    padding: 5px 10px;
    text-decoration: none;
    color: #666;
    font-family: arial, verdana, tahoma;
    font-size: 11px;
    display: inline-block;
    border-radius: 5px;
    transition: all 0.5s;
}
.tree li a:hover, .tree li a:hover + ul li a {
    background: #c8e4f8; 
    color: #000; 
    border: 2px solid #94a0b4;
}
.parent-connector {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.parent-connector::before, .parent-connector::after {
    content: '';
    position: absolute;
    top: -20px;
    width: 0;
    height: 20px;
    border-left: 2px solid #ccc;
}
.parent-connector::before {
    left: 25%;
}
.parent-connector::after {
    right: 25%;
}
#menu {
    margin-bottom: 20px;
}

#songs-menu {
    margin-bottom: 20px;
}
#lyrics {
    white-space: pre-wrap;
}

.treeC {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto;
    border-radius: 50%;
    border: 1px solid #ccc;
}
.node {
    position: absolute;
    transform: translate(-50%, -50%);
}
/* Responsive Design */

@media (max-width: 1024px) {
    .upper {
        flex-direction: column;
        align-items: center;
        padding: 1rem;
    }
    .leftPart, .rightPart2, .rightPart3, .Allimages {
        width: 100%;
    }
    .navigation {
        width: 100%;
    }
    img {
        max-width: 100%;
        height: auto;
    }    
     
}

@media (max-width: 768px) {
    .upper {
        padding: 1rem;
    }
    .leftPart, .rightPart2, .rightPart3, .Allimages {
        width: 100%;
    }
    .navigation {
        width: 100%;
        padding: 0.5rem;
    }
    .homePage {
        padding: 10px;
    }
    img {
        max-width: 100%;
        height: auto;
    }
    #recipes img {
        max-width: 50%;
        height: auto;     
    }   
   
}

@media (max-width: 480px) {
    .upper {
        padding: 0.5rem;
    }
    .leftPart, .rightPart2, .rightPart3, .Allimages {
        width: 100%;
    }
    .navigation {
        width: 100%;
        padding: 0.5rem;
    }
    .homePage {
        padding: 10px;
    }
    img {
        max-width: 100%;
        height: auto;
    }
    h1, h2, h3 {
        font-size: 1em;
    }
    p {
        font-size: 0.9em;
    }
    #recipes img {
        max-width: 80%;
        height: auto;     
    }   
        
}
