
@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-mobile{
    display: none;
}

.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;
}

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

.input-group{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    font-weight: 600;
    justify-content: space-between;
    margin-top: 5%;
    margin-bottom: 5%;
    align-items: baseline;
    padding-left: 20px;
    height: max-content;
    margin-right: 20%;
}

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

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

.input-group label{
    margin-right: 7px;
}

.inputs-container{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}

@media screen and (max-width: 1160px){
    .header-desktop{
        display: none;
    }
    
    .header-mobile{
        display:flex;
        flex-direction: row;
        flex-wrap: wrap;
        align-content: flex-start;
        justify-content: space-around;
        align-items: center;
    }

    .check-hamburger-btn{
        font-size: 1.5rem;
        color: rgb(0, 0, 0);
        cursor: pointer;
    }

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

    .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;
    }

    .header-mobile-content a{
        color: #fff;
        padding: 1rem 1.5rem;
        display: block;
    }
    .input-otsikko{
	display: none;
    }
    .inputs-container{
	display: grid;
	grid-template-columns: 50% 50%;
    }
    .input-group{
	flex-direction: row;
	justify-content: center;
	margin: 0px;
	padding: 0px;
	font-weight: normal;	
    }
    .input-group label{
	margin: 0;
	width: 100%;
	display: flex;
	font-size: 15px;
	justify-content: center;	
    }
    .input-group select{
	border-radius: 0;
	height: 30px;
	width: 100%;
    }
    .input-group input{
        border-radius: 0;
        height: 30px;
        width: 100%;
	padding-bottom: 0;
    }
}

header img {
    width: 150px; /* Slightly larger logo */
    transition: opacity 0.3s ease;
}

header a {
    color: #143140;
    font-family: "Nunito";
    text-decoration: none;
    padding: 0.5em 1em;
    font-weight:800;
    font-size: large;
    transition: 0.3s;
    border-radius: 4px; /* Rounded corners for links */
    background-color: none; /* Light green background for links */
    margin-left: 10px; /* Space between links */
}

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

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

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

.input-section {
    flex-basis: 30%; /* Adjusted to be smaller */
    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 */
}

.contracts {
    flex-basis: 65%; /* Adjusted to be larger */
    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 */
}

@media (max-width: 1160px) {
    .content {
        flex-direction: column;
    }

    .contract{
        flex-direction: column;
    }

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

    header {
        flex-direction: column;
        align-items: flex-start;
    }

}

.contract {
    width: 90%;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    overflow: hidden;
    margin-bottom: 20px;
  }

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

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

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

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

  .contract-details {
    font-size: 16px;
    color: #666;
    line-height: 1.8;
  }

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

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

  .contract-kwh-price{
    display: flex; align-content: space-between;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .contract-pm-price{
    display: flex; align-content: space-between;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .highlight {
    color: #50b383; /* Vihreä, sopii uusiutuvalle energialle */
    font-weight: bold;
  }

  .button {
    background-color: #50b383; /* Voimakas sininen */
    color: white;
    text-align: center;
    padding: 12px 24px;
    text-decoration: none;
    display: inline-block;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 20px;
    width: auto;
  }

