/* Font */
@font-face {
    font-family: 'CourierPrime';
    src: url('CourierPrime/CourierPrime-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat/Montserrat-Regular.ttf') format('truetype');
    font-weight: regular;
}

@font-face {
    font-family: 'Montserrat';
    src: url('Montserrat/Montserrat-Bold.ttf') format('truetype');
    font-weight: bold;
}

html {
    scroll-behavior: smooth;
}

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

/* Main styles */
body {
    font-family: 'Montserrat', sans-serif;
    color: white;
    background-color: #212121;
}

header {
    background-color: #f2d678;
    color: #000;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Tiliote.-logo */
h1 {
    font-family: 'CourierPrime', sans-serif;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 12px;
}

nav a {
    text-decoration: none;
    color: inherit;
}

nav a:hover {
    text-decoration: none;
    color: inherit;
}

nav {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #f2d678;
    transition: top 0.3s ease;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
}

.nav-links {
    list-style-type: none;
    display: flex;
}

nav ul {
    display: flex;
    list-style-type: none;
    background-color: #f2d678;
    height: 70px;
    margin: 0;
    align-items: stretch;
}

nav ul li {
    flex: 1;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 12px;
}

nav ul li a:hover {
    background-color: #e4b644;
}

/* Section settings */
h3 {
    margin: 0 0 10px 0;
}

img {
    width: 100%;
    height: 100%;
    margin: 0 0 30px 0;
}

/* Logo within paragraph as link or without */
.tiliote-logo {
    font-family: 'CourierPrime', sans-serif;
    font-size: 15px;
}

.tiliote-logo-linkki {
    font-family: 'CourierPrime', sans-serif;
    font-size: 15px;
    color: #f2d678;
    text-decoration: none;
  }
  
.tiliote-logo-linkki:hover {
    color: #e4b644;
    text-decoration: underline;
  }

/* Paragraph */  
p  {
    font-size: 15px;
    margin-bottom: 20px;
}

i  {
    display:inline-block;
    font-size: 15px;
    margin-bottom: 20px;
}

.etusivu,
.meista,
.julkaisut,
.yhteistyo,
.otayhteytta,
.kauppa {
    margin: auto; /* Auto margins horizontally center the element */
    text-align: center;
    line-height: 1.5; /* Adding line height */
    width: 50%; /* Adjust the max-width as needed */
    padding: 3% 0; /* Adjust padding as needed */
}

.meista,
.yhteistyo,
.kauppa {
    background-color: #333333;
    padding: 3% 25% 3% 25%;
    width: 100%;
}

/* Behold-widget */
.instagram-profiili {
    margin: 0 0 5% 0;
    width: 100%;
}

.spotify-upotus {
    margin: 3% 0 0 0;
    width: 100%;
}

.yhteistyo-tekstit {
    line-height: 1.8; /* Rivivälin asetus */
}

.yhteistyo-taulukko {
    border-collapse: collapse; /* Yhdistää solujen reunaviivat */
    background-color: #212121; /* Musta taustaväri ensimmäiselle solulle */
    width: 100%; /* Taulukon leveys */
    margin-top: 40px; /* Marginaali yläpuolelle */
    margin-bottom: 40px; /* Marginaali alapuolelle */
}
.yhteistyo-taulukko td, .yhteistyo-taulukko th {
    border: 1px solid rgba(255, 255, 255, 0.5); /* 1px ohut valkoinen 50% läpinäkyvä viiva */
    padding: 8px; /* Sisäinen marginaali soluissa */
}

.yhteistyo-taulukko td:first-child {
    color: white; /* Valkoinen teksti mustalla taustalla */
    text-align: center; /* Tekstin keskitys */
    vertical-align: middle; /* Tekstin keskitys pystysuunnassa */
}
.keltainen-korostus-teksti {
    color: #f2d678; /* Keltainen teksti korostukseen */
    font-weight: bold; /* Lihavoi teksti */
}

/* Footer */
footer {
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #194c8a;
    color: #fff;
    padding: 10px 0;
    text-align: center;
    margin: auto; /* Auto margins horizontally center the element */
    text-align: center;
}

/* Remove margin from footer text */
.footer {
    margin: 0;
}


/* Media query for smaller screens */
@media only screen and (max-width: 768px) {
    header {
        display: flex;
        justify-content: space-between;
        align-items: center; /* Vertically center content */
    }

    /* Hamburger menu styles */
    .hamburger-menu {
        display: inline-block;
        cursor: pointer;
        padding: 20px;
    }

    .bar {
        width: 25px;
        height: 3px;
        background-color: #000;
        margin: 5px 0;
        transition: transform 0.3s ease-in-out;
    }

    h1 {
        display: inline-block;
        font-size: 30px;
        padding: 20px 10px 10px 10px;
    }

    nav {
        width: 100%;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        margin: 0;
    }

    nav ul li a{
        padding: 15px;
    }

    nav ul li a:hover {
        padding: 15px;
    }

    nav ul li:last-child {
        margin-bottom: 0;
    }

    .hamburger-menu {
        display: inline-block;
        cursor: pointer;
        transition: top 0.3s ease;
    }

    .nav-links {
        list-style-type: none;
        background-color: #e4b644;
        height: auto;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        padding: 0;
    }

    .nav-links.open {
        max-height: 1000px;
        padding: 30px;
    }

    .nav-links li {
        display: block;
    }

    /* Close button styles */
    .close-btn {
        display: none;
        position: fixed;
        top: 20px;
        right: 20px;
        cursor: pointer;
        z-index: 1000;
    }
    
    .nav-links.open .close-btn {
        display: block;
    }    

    .etusivu,
    .meista,
    .julkaisut,
    .yhteistyo,
    .otayhteytta,
    .kauppa {
        width: 100%;
        padding: 10% 3%;
    }
}
