header {
    width: 100%;
}
/* 'miksei tää päivitä' debugaus*/

body {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

img {
    width: 100%;
}

a {
    text-decoration: none;
    color: #000;
}

#linkki2 {
    text-decoration: underline;
}

#otsikko {
    display: flex;
    justify-content: center;
    /*text-align: left;*/
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    padding-bottom: 2rem;
    font-family: Trispace;
}

.headeri {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-right: 10rem;
    padding-left: 10rem;
}

.headerjalause {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pallot {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgb(53,181,145);
    background: linear-gradient(180deg, rgba(53,181,145,1) 0%, rgba(255,255,255,1) 100%); /* Gradient background */
}

.henkilöboksi {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.henkilöinfo {
    text-align: left;
    display: flex;
    flex-direction: column;
    padding-right: 10rem;
}

.kuvaboksi {
    display: flex;
    flex-direction: column;
}

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

.infoteksti {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: left;
    padding-right: 3rem;
    padding-left: 3rem;
    max-width: 50rem;
    width: 100%;
}

.seuraavat_retket {
    background-color: #00a6e2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-bottom: 2rem;
    padding-top: 2rem;
}

.accordion-container {
    display: flex;
    flex-direction: column;
    width: 50%;
    gap: 1rem;
    margin: 1rem 0;
}

.accordion-item {
    background-color: whitesmoke;
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    width: 70%;
}

.accordion-item:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.accordion-item.active {
    border-color: #00a6e2;
    box-shadow: 0 8px 16px rgba(0, 166, 226, 0.2);
}

.accordion-item.active .accordion-header {
    background-color: #f0f9ff;
    border-bottom: 1px solid rgba(0, 166, 226, 0.2);
}

.accordion-header {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: whitesmoke;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Trispace;
    font-size: 1.2rem;
    font-weight: 300;
    color: #000000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.accordion-header:hover {
    background-color: #b3b8bb;
}

.accordion-header.active {
    background-color: #f0f9ff;
    color: #00a6e2;
}

.accordion-header.active:hover {
    background-color: #e0f2fe;
}

.accordion-header h3 {
    margin: 0;
    text-align: left;
    flex: 1;
    transition: color 0.3s ease;
}

.accordion-header.active h3 {
    color: #00a6e2;
    font-weight: 400;
}

.accordion-icon {
    font-size: 1.5rem;
    font-weight: bold;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #666;
}

.accordion-header:hover .accordion-icon {
    color: #00a6e2;
}

.accordion-header.active .accordion-icon {
    transform: rotate(45deg);
    color: #00a6e2;
}

.accordion-content {
    height: 0;
    overflow: hidden;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #f8f9fa;
    padding: 0 1.5rem;
    opacity: 0;
    transform: translateY(-10px);
}

.accordion-content.active {
    height: auto;
    padding: 1rem 1.5rem;
    opacity: 1;
    transform: translateY(0);
}

.accordion-content p {
    margin: 0;
    font-size: 1rem;
    color: #000000;
    line-height: 1.5;
}

.accordion-content a {
    display: inline-block;
    color: #00a6e2;
    text-decoration: none;
    font-family: Trispace;
    font-size: 1rem;
    font-weight: 400;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    background-color: rgba(0, 166, 226, 0.1);
    border: 2px solid #00a6e2;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.accordion-content a:hover {
    background-color: #00a6e2;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 166, 226, 0.3);
}

.accordion-content a:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 166, 226, 0.3);
}

.accordion-content a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 166, 226, 0.3);
}

#hinnasto {
    font-family: Trispace;
}

.email-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 15rem; /* Adjust the size of the button */
    height: 15rem; /* Adjust the size of the button */
    background-color: whitesmoke; /* Button background color */
    border-radius: 50%; /* Makes the button round */
    color: #fff; /* Icon or text color */
    text-decoration: none; /* Removes underline */
    font-size: 24px; /* Adjust the size of the icon or text */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adds a subtle shadow */
    transition: background-color 0.3s ease, transform 0.2s ease; /* Smooth hover effect */
    margin: 1rem; /* Add gap between buttons */
}

.email-button:hover {
    background-color: #b3b8bb; /* Darker color on hover */
    color: #fff; /* Light text on hover */
    transform: scale(1.1); /* Slightly enlarges the button on hover */
}

.email-button:active {
    transform: scale(0.95); /* Slightly shrinks the button when clicked */
}

.email-icon {
    line-height: 1; /* Ensures the icon is centered vertically */
}

.retket {
    padding: 1rem;
    display: flex;
    justify-content: space-evenly;
}

.välilyönti {
    padding: 2rem;
}

.tekstivasemmalla {
    text-align: left;
    padding-right: 2rem;
    width: 100%;
    max-width: 50rem;
}

.ala {
    display: flex;
}

.julisteet {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

#linkki {
    color: rgb(216, 216, 216);
}

#linkki:link, #linkki:visited {
    background-color: #00a6e2; 
    color: white;
    padding: 14px 25px;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
  }
  
#linkki:hover, #linkki:active {
    background-color: #0076a0; /* Darker color on hover */
  }

#logo {
    width: 175px;
    height: 168px;
    flex-shrink: 0;
}

h1 {
    color: #1E1E1E;
    font-family: "Yeseva One";
    font-size: 5rem;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

h2 {
    color: #354B54;
    font-family: Trispace;
    font-size: 3rem;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

h3 {
    color: #000000;
    font-family: Trispace;
    font-size: 2rem;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
}

p {
    color: #000;
    font-family: "Playfair Display";
    font-size: 1.5rem;
    font-style: normal;
    font-weight: 400;
    margin-top: 10px;
    margin-bottom: 10px;
}

@media (max-width: 750px) {
    #otsikko {
        text-align: center;
    }

    .retket {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .headeri {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
        padding-right: 1rem;
        padding-left: 1rem;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
        justify-content: center;
    }

    .henkilöboksi {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .henkilöinfo {
        justify-content: center;
        padding-right: 0;
        padding-bottom: 2rem;
        text-align: center;
    }

    .tekstivasemmalla {
        padding-right: 0;
        text-align: center;
        width: 90%;
    }

    .infoteksti {
        padding-right: 1rem;
        padding-left: 1rem;
        text-align: left;
        width: 90%;
    }

    .accordion-container {
        width: 90%;
    }

    .accordion-header {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }

    .accordion-content.active {
        padding: 0.8rem 1.2rem;
    }

    .accordion-content a {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
        margin: 0.3rem 0;
    }

    .julisteet {
        flex-direction: column;
        gap: 1rem;
    }

    .email-button {
        width: 85vw; /* 85% of viewport width */
        height: 85vw; /* Keep it square */
        max-width: 12rem; /* Maximum size */
        max-height: 12rem; /* Maximum size */
        margin: 1rem 0; /* Vertical gap between buttons */
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .headeri {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

    .infoteksti {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
        width: 95%;
    }

    .email-button {
        width: 85vw; /* 85% of viewport width */
        height: 85vw; /* Keep it square */
        max-width: 10rem; /* Maximum size */
        max-height: 10rem; /* Maximum size */
        margin: 1rem 0; /* Vertical gap between buttons */
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 1rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }

    .tekstivasemmalla {
        width: 95%;
    }
}