
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

main {
    flex-grow: 1; /* Allows main to take up remaining space */
}

body {
    margin: 0;
    font-family: sans-serif;
    min-height: 100vh;
    display: flex; /* Required for flex-grow to work */
    flex-direction: column; /* Required for flex-grow to work */
}

header {
    background-color: #f0f0f0;
    padding: 10px;
}

.burger-menu {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center them */
    position: relative;
}
.logo {
    background-image: url('img/logofin2.jpg'); /* Adjust path */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    width: 250px;
    height: 250px;
    margin-bottom: 10px;
}

header .burger-menu a {
  text-decoration: none; 
  color: inherit; 
  display: block; 
}

.burger-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-top: 10px;
}


.menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%); /* Center under button */
    width: fit-content;
    background-color: #eee;
    display: none;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.menu.show {
    display: block; /* Show the menu */
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li a {
    text-decoration: none;
    color: #333;
    display: block;
    white-space: nowrap;
}

.menu li a:hover {
    background-color: #ddd;
}
section {
    padding: 20px; /* Voit muuttaa arvoa tarpeen mukaan */
}
.logo-text {
    font-family: "Raleway", sans-serif; /* Vaihda haluamaasi fonttiin */
    font-size: 28px; /* Voit säätää fontin kokoa */
    text-align: center; /* Keskitä teksti logon alle */
}
/* Rest of your CSS (carousel, content, responsive) */

/* Add basic styling for profile list */
.profile-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.profile-list li {
    text-align: center;
}

.profile-image-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #e0e0e0; /* Optional background color */
    margin: 0 auto 10px;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-list p {
    font-size: 14px;
    max-width: 150px;
    margin: 0 auto;
}

#pikkuotsikot1 {
    font-family: 'Raleway', sans-serif;
    font-size: 23px;
    color: #000000;
}

.scrolling-container {
    width: 100%; /* Adjust as needed */
    overflow: hidden; /* Hide the overflowing text */
    white-space: nowrap; /* Prevent text from wrapping */
  }

#pikkuotsikot2 {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    color: #ff0000;
    display: inline-block; /* Allows for horizontal scrolling */
   animation: scrollText 7.5s linear infinite; /* Adjust speed and duration */
   padding-left: 100%; /* Start the text offscreen */
}
@keyframes scrollText {
    0% {
      transform: translateX(0%); /* Start position */
    }
    100% {
      transform: translateX(-100%); /* End position */
    }
  
}
#pikkuotsikot3 {
    font-family: 'Raleway', sans-serif;
    font-size: 23px;
    color: #000000;
    text-align: center;
}

.pikkuotsikko {
    font-family: 'Raleway', sans-serif;
    font-size: 23px;
    color: #000000; /* Voit muuttaa väriä */
}
.profile-text-container {
    width: 200px; /* Adjust as needed */
    margin: 10px auto; /* Add margin and center */
    padding: 10px; /* Add padding for spacing */
    text-align: center; /* Center text within container */
}
footer {
    position: sticky;
    bottom: 0;
    background-color: #f0f0f0; /* Tai haluamasi taustaväri */
    text-align: center;
    padding: 10px 0; /* Tarvittaessa lisää täytettä */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.footer-content li {
    margin:  10px;
}

.footer-content a {
    color: #333;
    text-decoration: none;
}

.footer-content a:hover {
    color: #555; /* Vaaleampi beige */
}
@media (max-width: 768px) {
    .footer-content {
        display: block; /* Stack all the links as block elements */
    }
    
    .footer-content ul {
        list-style: none; /* Remove bullet points */
        padding: 0; /* Remove default padding */
        margin: 0; /* Ensure no margin */
    }
    
    .footer-content li {
        margin: 0; /* Remove margin between list items */
        display: block; /* Ensure each list item is a block-level element */
      
    }

    /* Optional: If you want links to look like buttons and be centered */
    .footer-content a {
        display: block; /* Make links block elements */
        padding: 10px; /* Add padding for better spacing */
        text-align: center; /* Center the text */
        width: 100%; /* Make the link take up full width */
    }
}



.large-boxes {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    flex-wrap: wrap; /* Allow boxes to wrap on smaller screens */
    gap: 20px; /* Adds spacing between the boxes */
}

.large-box {
    flex-grow: 1;
    border: 1px solid #ccc;
    padding: 20px;
    text-align: center;
    max-width: 300px;
    box-sizing: border-box;
}

.large-box img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
}

.large-box button {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}

/* Remove @media, if everything works fine across screen sizes */