
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

body {
    font-family: "League Spartan", sans-serif;
    font-optical-sizing: auto;
     font-style: normal;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f2f2f2; /* Light grey background for overall body for contrast */
}

header {
    color: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.header-desktop{
    display: flex;
    padding-right: 4em;
    padding-left: 4em;
    white-space: nowrap;
}

.header-desktop select{
    display: inline-flex;
    align-items: center;
    border: none;
    color: #143140;
    text-decoration: none;
    padding: 0.5em 0em 0.5em 2em;
    font-weight: 800;
    font-size: large;
    font-family: "League Spartan", sans-serif;
}

.header-mobile{
    display: none;
}

.section2{
    display: flex;
    margin-left: 2rem;
    margin-right: 2rem;
    border-radius: 12px;
    border: 1px solid #0075F2;
    background-color: white;
    height: 200px;
    align-items: center;
    justify-content: space-between;
    font-weight: bolder;
    font-size: 25px;
}

.section2 h1{
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
    font-weight: bold;
    font-size: 25px;
}

.section2 h2{
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    unicode-bidi: isolate;
    font-weight: bold;
    font-size: 25px;
}

.consuption{
    display: flex;
    flex-wrap: wrap;
    font-weight: 600;
    justify-content: flex-start;
    margin-top: 5%;
    margin-bottom: 5%;
    align-items: baseline;
    padding-left: 20px;
    height: max-content;
}

.input-section {
    flex-basis: 30%; /* Adjusted to be smaller */
    margin: 1em;
    padding: 1em;
    background-color: #ffffff; /* White background for content boxes */
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

.input-otsikko{
    display: flex;
    font-weight: bold;
    box-shadow: 3px 7px 4px -9px #1E2019;
    margin-right: 50%;
    margin-bottom: 10px;
    padding-left: 15px;
}

.consuption input{
    border: none;
    box-shadow: 0px 0px 3px -1px #1E2019;
    border-radius: 5px;
    height: 27px;
    width: 50%;
    font-size: 15px;
    font-weight: 550;
    text-align: center;
    text-justify:center;
}

.consuption label{
    margin-right: 7px;
}

.inputs-container-body{
    display: grid;
    grid-template-columns: auto auto;
    justify-items: stretch;
    align-items: stretch;
    column-gap: 5%;
    row-gap: 10px;
    justify-content: start;
}

.inputs-container-body input{
    display: none;
}

.inputs-container-body label{
    background-color: #0075F2;
    color: white;
    width: 115px;
    text-align: center;
    padding: 10px 0px 10px 0px;
    border-radius: 7px;
    border: 1px solid #0075F2;
}

.inputs-container-body input:checked + label{
    background-color: white;
    color: #0075F2;
    width: 115px;
    text-align: center;
    padding: 10px 0px 10px 0px;
    border-radius: 7px;
}

.inner-inputs-container{
    margin-left: 15px;
}

.content {
    display: flex;
    flex-wrap: nowrap;
    padding: 1em;
    justify-content: space-between;
}

.contracts {
    display: flex;
    flex-basis: 65%;
    margin: 1em;
    padding: 1em;
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 6px -6px #1E2019;
    justify-content: space-around;
    flex-wrap: wrap;
    flex-direction: row;
}

.contract {
    border: none;
    width: 100%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: grid;
    grid-template-columns: 25% 50% 25%;
    grid-template-rows: 90% 10%;
    overflow: hidden;
    margin-bottom: 20px;
    height: 530px;
  }

legend.suosituin-legend {
        background-color: #cef200;
        color: white;
        font-size: 130%;
        padding: 6px;
        border-radius: 5px;
}

legend.kampanja-legend {
    background-color: #0075F2;
    color: white;
    font-size: 130%;
    padding: 6px;
    border-radius: 5px;
}

  .contract-main {
    padding-left: 20px;
    width: 150px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: space-around;
  }

  .contract-main img {
    max-width: 100%;
    height: auto;
  }

  .contract-info {
    padding: 30px 30px 0px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 5%;
  }

  .contract-title {
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
  }

  .contract-details {
    display: flex;
    font-size: 15px;
    color: #1E2019;
    line-height: 0.9;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .contract-details-row {
    display: grid;
    align-items: center;
    align-content: start;
    justify-content: space-between;
    justify-items: stretch;
    grid-template-columns: auto 50%;
    margin-right: 5%;
    padding-right: 5%;
    margin-bottom: 10px;
    box-shadow: 3px 7px 4px -9px #1E2019;
    padding-left: 10px;
}

    .contract-details-row-value {
    text-align: end;
}

  .contract-sum{
    display: flex; 
    flex-wrap: wrap;
    justify-content: space-evenly;
  }

  .contract-prices{
    display: flex; 
    justify-content: space-between;
    margin-right: 40%;
    flex-wrap: wrap;
  }

  .contract-right {
    display: flex;
    align-content: center;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0px 20px 0px 0px;
}

.contract-more {
    grid-column-start: 1;
    position: relative;
    display: flex;
    grid-column-end: 4;
    justify-content: flex-start;
    padding: 5px;
    font-size: 85%;
}
.contract-more img {
    padding-right: 0.5em;
    height: 60%;
}
.inner-contract-more {
    display: flex;
    align-items: center;
    padding-left: 10%;
}


.contract.kampanja {
    border: 2px solid #0075F2;
    background-color: #f9f9f9;
}

.contract .kampanja-info {
    font-weight: bold;
    color: #0075F2;
    text-align: start;
    margin-top: 10px;
}
.contract-details-alkupera{
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-right: 40%;
    flex-wrap: wrap;
}
.contract-details-maaraaika{
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    margin-right: 40%;
}

.content-section{
    padding-top: 1500px;
}

@media screen and (max-width: 1000px){
    .contracts {
        margin: 0em;
        padding: 0em;
    }
    .consuption label{
        margin-right: 0px;
    }
    .consuption input{
        margin-left: 15px;
    }
    .header-desktop{
        display: none;
    }
    .section2{
        display: none;
    }
    .header-mobile{
        display:flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: space-around;
        align-items: center;
        -webkit-box-shadow: 0 4px 6px -6px #1E2019;
        -moz-box-shadow: 0 4px 6px -6px #1E2019;
        box-shadow: 0 4px 6px -6px #1E2019;
    }

    .header-mobile-content select{
        display: inline-flex;
        align-items: center;
        border: none;
        background-color: #1E2019;
        text-decoration: none;
        padding: 0.5em 0em 0.5em 2em;
        font-weight: 800;
        font-size: large;
        font-family: "League Spartan", sans-serif;
        color: white;
    }

    .check-hamburger-btn{
        font-size: 1.5rem;
        color: #1E2019;
        cursor: pointer;
    }

    .header-mobile-content{
        display: none;
        flex-wrap: wrap;
        right: 0;
        background: #1E2019;
        z-index: 1;
        width: 100%;
        justify-content: center;
    }
    .header-mobile input{
        display: none;
    }

    .header-mobile-content a{
        color: #fff;
        padding: 1rem 1.5rem;
        display: block;
    }

    .content {
        flex-direction: column;
        padding: 1em;
    }

    .input-section{
	margin: 0;
    }
    .contract{
        display: grid;
        grid-template-columns: 100%;
        grid-template-rows: 20% 50% 10% 20%;
        justify-items: center;
        height: 850px;

    }

    .contract-main{
        justify-content: flex-start;
        height: 100%;
        grid-row-start: 1;
        grid-row-end: 1;
        padding: 5% 0% 0% 0%
    }
    .contract-right{
        height: 100%;
        grid-row-start: 4;
        grid-row-end: 4;
    }
    .contract-more{
        height: 100%;
        grid-row-start: 3;
        grid-row-end: 3;
        flex-wrap: nowrap;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
    .inner-contract-more{
	height: 40%;
    }
    .contract-sum{
        margin-top: 15%;
    }
    .contract-info{
        height: 100%;
        align-items: center;
        grid-row-start: 2;
        grid-row-end: 2;
        justify-content: flex-start;
    }
    .contract-details{
        display: grid;
        line-height: 1.8;
    }

    .contract-details p {
        margin: 0;
    }
    .contract-prices{
        display: grid;
        grid-template-columns: auto auto;
        justify-items: stretch;
        align-items: stretch;
        column-gap: 5px;
        row-gap: 10px;
        margin: 0;
    }
    .contract-prices span{
        width: 115px;
        text-align: center;
        padding: 10px 0px 10px 0px;
    }

    .input-section, .contracts {
        flex-basis: auto; /* Full width on mobile */
        margin: 1em 0;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
    }
    #annualConsumption{
        width: 75px;
    }
    .contract .kampanja-info {
        text-align: center;
    }
}

.contract a{

    background-color: #0075F2;
    color: white;
    width: 115px;
    text-align: center;
    padding: 15px 10px 15px 10px;
    border-radius: 7px;
    border: 1px solid #0075F2;
    text-decoration: none;
    margin-top: 15px;
}

header img {
    width: 150px;
    transition: opacity 0.3s ease;
}

header a {
    color: #143140;
    text-decoration: none;
    padding: 0.5em 2em;
    font-weight:800;
    font-size: large;
    transition: 0.3s;
}

header a:hover, header a:focus {
    text-decoration: underline;
    text-underline-offset: 10px;
    text-decoration-thickness: 2px;
}

.header-linkit, .header-logo{
    padding-bottom: 0px;
}

.section2-part1{
    display: flex;
    padding-left: 2%;
    width: 15%;
}
.section2-part2{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 25%;
}
.section2-part2 button{
    background-color: #0075F2;
    color: white;
    border-radius: 10px;
    width: 95%;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    height: 40px;
    font-weight: 800;
}






input[type="checkbox"]{
    accent-color: #0075F2; 
}

