@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

body,
input,
select,
textarea,
button {
    font-family: "Outfit", sans-serif;
    font-style: normal;
    color: #224d51;
    font-weight: 100;
    /*font-size: 1.2em;*/
	background-color: white;
}

.sivu {
    max-width: 980px;
    display:  flex;
    position: center;
    margin: auto;
	
    /*border: 0px solid #D4D4D6;*/
}


.kehys .sisaltokehys {
    /* sivun muuttuva alue */
    /* border: 0px solid #D4D4D6;*/
    padding: 2px;
}

.kehys {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    min-height: 95vh;
    position: center;
}

.sisaltokehys {
    flex: 1;
	margin-top: 0px;
	position: relative;
	width: 100%;
}
.kehys {
/*    border: 2px solid #980437;
	box-shadow: 5px 0px 20px #980437;*/
    max-width: 900px;
    min-width: 100px;
    position: center;
    margin-left: 2px;
    padding: 20px;
    background-color: white;
}

.menurivi {
    max-width: 800px;
    text-align: right;
	margin-left: 15px;
}

div#ylareuna{
    /*background-color: rgba(236, 224, 212, 0.5);*/
    background-color: transparent;
    border-radius: 20px;
}

/* Front page presentaion text */
span[id$="_ContentPlaceHolder1_lblYleista"]{
    width:100%;
    margin: 1em;
    padding-top: 25%;
    background-image: url("Kuvat/As/elegant-turku-hammaslaakari-1920.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    /*background-attachment: fixed;*/
    background-position: top center;
    border-radius: 20px;
    min-height: 350px;
}
/*Front page text content styles (at contents of lblYlesistaResource1.text localization text)*/
div.content {
    width: 75%;
    background-color: #224d51;
    color: white;
    border-radius: 20px;
    margin-left: 15px;
    margin-bottom: 15px;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    padding-right: 2.5rem;
    padding-left: 2.5rem;
}

.otsikko {
    font-weight: inherit;
}

.otsikkovahva {
    font-weight: bold;
    font-size: larger;
    border-style: none;
}
.vahvistusaika{
    background-color: #224d51 !important;
    color: white;
    border-style: none;
    border-radius: 20px;;
    
}


.syotto {
    color: Black;
    background-color: white;
    margin-left: 10px;
    border-width: 1px;
    border-radius: 6px;
    border-color: #224d51;
}

.syotto:focus, .syotto:active{
    border-color: #4c7171 !important;
}


.keski {
    margin: 10px
}

.pudotusvalikko {
    width: 200px;
    font-weight: normal;
    background-color: white;
    color: black;
    margin-left: 10px;
}

.labelIlmoitus {
    /*color: black;
    max-width: 100%;
    min-width: 100px;
    background-color: #BBE4FA;*/
    font-weight: bolder;
    
    /*font-size: smaller;
    padding: 0px;*/
    
}

#aika {
	margin-top: 20px;
}

.ilmobox {
	margin-top: 0px;
	margin-bottom: 15px;
    background-color: #224d51 !important;
    border-style: solid;
    border-width: 2px;
    border-radius: 20px;
    border-color: #4c7171;
	padding-left: 20px;
}

.labelHuomautus {
    color: #505050;
    font-weight: normal;
    padding: 8px;
    
}

.labelHuomautusKesk {
    color: #505050;
    /*font-weight: normal;*/
    text-align: center;
    min-width: inherit;
    padding: 4px;
}
/* pbNappula-tyylit perityv�t t�st� luokasta */
[class*="pbNappula"], .btnPrimary{
    margin: 6px;
    min-width: 240px;
    background-color: #224d51;
    color: #FFFFFF;
    border-style: solid;
    border-color: #224d51;
    border-radius: 5px;
    /*border-bottom-right-radius: 6px; */
    padding: 5px;
    padding-bottom: 2px;
    font-weight: 500;
    align-self: flex-end;
}

[class*="pbNappula"]:hover, .btnPrimary:hover {
    background-color: white ;
    color:#224d51;
}

[class*="pbNappula"]:active {
    background-color: #4c7171 !important;
    color:white !important;
    border-color: #224d51 !important;
}

/* vap.ajat taulukon nappula */
.pbNappula {
    margin: 5px;
    min-width: 120px;
}
.pbNappulaIso {
    font-size: x-large;
    margin: 5px;
	max-width: 420px;
    border-style: solid;
    border-color: #224d51;
    border-radius: 5px;
}

.pbNappulaMenu {
    margin: 1px;
    min-width: 30px;
   
}
.pbNappulaMenuLippu {
    background-color: transparent;
    margin-right: 15px;
    margin-bottom: 10px;
    padding: 0px;
    border-radius: 2px;
}


.pbNappulaMiksi {
 
}
.pbNappulaMiksiValittu {
    background-color: #4c7171;
 
}

.pbNappulaMiksiKamp {
     color: gold;
    font-style: italic;
    font-weight: bold;
    border-style: solid;
 }

.tpteksti {
    min-width: 300px;
    font-size: larger !important;
    font-weight: 600;
    margin: 1px;
    background-color: white;
    border-style: none;
    align-self: center;
}


.pbNappulaVid {
 
}
.pbNappulaVidValittu {
    background-color: #4c7171;
}

.pbNappulaAnonyymi {
    /* suoraan vaipaiden aikojen katseluun */
    vertical-align: middle;
    font-weight: bold;
    min-width: 100px;
    max-width: 100%;
    margin: auto;
    padding: 4px;
}

.pbNappulaAnonyymi:hover {
    /* suoraan vaipaiden aikojen katseluun */
    border-color: #224d51 !important ;
}

.pbNappulaAnonyymi:active {
    /* suoraan vaipaiden aikojen katseluun */
    border-color: #224d51 !important ;
    color: white !important ;
    box-shadow: 0 2px #ebdfd4 !important;
}
.pbNappulaAnonyymi:focus {
    /* suoraan vaipaiden aikojen katseluun */
    border-color: #224d51 !important ;
    color: white !important ;
    background-color: #4c7171 !important;
}

/* toimipistevalintanappulat */
.pbEiValittu {
    margin: 5px;
    min-width: 120px;
    background-color: #FFFFFF;
    color: #009ee3;
    border-radius: 0px;
    border: 1px thin #D4D4D6;
    padding: 3px;
}
.pbValittuX {
    margin: 5px;
    min-width: 120px;
    background-color: #009ee3;
    color: #FFFFFF;
    border-radius: 0px;
    border: 1px thin #D4D4D6;
    padding: 3px;
}

.txtotsikko {
    font-weight: bold;
    font-size: x-large;
    text-transform: uppercase;
    color: buttontext;
    background-color: #505050;
    border-top-style: none;
    border-right-style: none;
    border-left-style: none;
    border-bottom-style: none;
}

.yritys {
    font-weight: bold;
    font-size: 20px;
    font-family: 'Comic Sans MS', Sans-Serif;
}

.varaaja {
    font-size: x-small;
    font-Weight: bold;
    text-align: right;
    /*width: 590px;*/
}

.labelError {
    color: white;
    background-color: red;
}

.nappularivi {
    vertical-align: middle;
    position: absolute;
    right: 5px;
}

.alareuna {
    margin-top: 20px;
    vertical-align: middle;
    text-align: center;
    font-size: smaller;
    margin: 0px;
    padding: 5px;
    border-radius: 20px;
    border-color: #224d51;
    border-width: 1px !important;
    border-style: solid;
    width: 100%;
    padding-bottom: 1.0rem;

    /*background-color: rgba(236, 224, 212, 0.5);*/
}

a {
  color: #224d51;
}

a:hover {
    color: #4c7171;
  }
  
  .alareuna a {
    font-weight: 400;
}

span[id$="_lblSuojaus"] {
    font-weight: 300;
}

.av_otsikko {
    font-size: larger;
    color: gray;
    font-family: Verdana, Sans-Serif;
}

.pbInfo {
    font-size: small
}


.roundedPanel {
    width: 300px;
    background-color: red;
    color: white;
    font-weight: bold;
}

.lisatietoikkuna {
    background-color: White;
    color: Black;
}

/*  kalenterin tyylit */

.kalenteri {
    background-color: white;
    width: 250px;
    color: black;
    border-radius: 10px !important;
}

.kalenteri a {
    text-decoration: none;
}

.kalenteri .kalenteriTitle {
    font-weight: bold;
    background-color: rgb(236, 224, 212);
    border-radius: 6px;
}

.kalenteri .kalenteriNextPrev {
    text-align: center;
}

    .kalenteri td.kalenteriSelector {
          background-color: #67B7C3;
    }

.kalenteri .kalenteriDay a,
.kalenteri .kalenteriSelector a,
.kalenteri .kalenteriNextPrev a {
    display: block;
    line-height: 18px;
}

td.kalenteriTanaan {
    background-color: rgba(236, 224, 212, .5) !important;
    font-weight: 300;
    border-radius: 3px;
}

.kalenteri tr > td[style*="background-color:LightGreen"]{
    background-color: rgb(236, 224, 212) !important;
}

.kalenteri tr > td > a[style*="color:#CCFF99"]{
    color: #224d51 !important;
    border-radius: 3px;
}

/* --- gridin tyyli */

.mGrid {
    max-width: 1000px;
    background-color: #fff;
    border: solid 1px #525252;
    border-radius:  10px !important;
}

.mGrid td {
    padding: 2px;
    border: solid 1px #c1c1c1;
    color: Black;
}


/* otsikko */

.mGrid th {
    padding: 4px 2px;
    color: #fff;
    background: #4c7171;
    padding-left: 5px;
    border-left: solid 1px #525252;
}

.mGrid .alt {
    background: rgba(236, 224, 212, .5);
}

.mGrid .pgr {
    background: #f5f5f5;
}

.mGrid .pgr table {
    margin: 5px 0;
}

.mGrid .pgr td {
    border-width: 0;
    padding: 0 6px;
    border-left: solid 1px #666;
    font-weight: bold;
    color: #fff;
    line-height: 12px;
}

.mGrid .pgr a {
    color: #666;
    text-decoration: none;
}

.mGrid .pgr a:hover {
    color: aqua;
    text-decoration: none;
}

.mGrid tr > td:nth-last-child(1), .mGrid tr > td:nth-last-child(2){
    background-color: #f5f5f5 !important;
}

.mGrid tr:hover{
    background-color: #f5f5f5 !important;
}

.mGrid td {
    font-weight: 300;
    padding-left: 5px ;
}

.Pikahaku {
    border-width: initial;
    border: solid;
    font-weight: normal;
    color: cornflowerblue;
    display: flex;
    align-items: center;
    justify-content: center;
 }

.piilo {
    width: 1px;
    font-size: xx-small;
    padding: 0px;
    border:none;
    color: white;
}

#Pikahaku {
	margin-top: 20px;
}

/* varauksen tiedot taulukko*/
.varaustxt {
    font-weight: normal;
    font-size: inherit;
}

.vahvistusaikaArvo {
    font-weight: bold;
    font-size: larger;
    padding: 1.5em;
}

/* Front page free time card appearance. */
div.card {
    background-color: rgba(236, 224, 212, .5) !important;
    border: none !important;
    border-radius: 20px;    
    margin-bottom: 3px;
}
div.card img[id$="_Vkuva"]{
    border-radius: 18px;
    height: 232px;
    /*float: inline-end;*/
    width: auto;
    top: 50%;
    position: relative;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

div.card > div.row > div.col-sm:first-child{
    margin: 10px !important;
    color: #224d51 !important;
    font-weight: 500;
    height: 100% !important; /* Make sure the height is 100% to fill the parent container */
}

div.card > div.row > div.col-sm:first-child > input.pbNappulaMenu{
    font-weight: 500;
}

div.card > div.row > div.col-sm:last-child(){
    display: flex;
    align-items: end;
}

.card-footer {
    background-color: inherit;
    border: none;
}

input[id$="_imgLogo"]{
    max-width: 200px !important;
    margin-left: 15px;
    background-color: transparent;
}

table.menurivi {
    width: 100%;
    min-height: 350px;
    border-radius: 20px;
    background-image: url("Kuvat/As/elegant-turku-hammaslaakari-1920.jpg");
    background-size: cover;
    background-repeat: no-repeat;
}

table.menurivi tr td {
    text-align: left;
    vertical-align: bottom;
    padding: 1.5em;
}
div.container div.row table.col-sm {
    width: 100%;
    min-height: 300px;
    border-radius: 20px;
}

div.containerI div.row table.col-sm{
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Aligns the content to the bottom */
    position: relative;
    width: 100%;
    min-height: 350px;
    border-radius: 20px;
    background-image: url("Kuvat/As/elegant-turku-hammaslaakari-1920.jpg");
    background-size: cover;
    background-position: top center; /* Center the image within the element */
}

div.containerI div.row table.col-sm tbody::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 350px;
    border-radius: 20px;
    z-index: -1; /* Place the pseudo-element behind the content */
}

span.otsikko {
    font-weight: 500;
    font-size: larger;
}

span[id$="ContentPlaceHolder1_lblAika"]{
    font-weight: 300;
}

/* Confimation page adjustments*/
article.sisaltokehys > div:has(span#ctl00_ContentPlaceHolder1_lblVarausotsikko),
article.sisaltokehys:has(input#ctl00_ContentPlaceHolder1_HaeAjat)
{
    background-image: url("Kuvat/As/elegant-turku-hammaslaakari-1920.png");
    background-size: contain;
    border-radius: 20px;
    background-repeat: no-repeat;
    background-position: top center; /* Center the image within the element */
    background-clip: border-box; /* Ensure the background respects the padding box */
    padding: 10px;
    padding-top: 100px;
    min-width: 800px;
    min-height: 350px;
}

div.varaustxt

span#ctl00_ContentPlaceHolder1_lblVarausotsikko {
    font-size: x-large;
}

label[for="ctl00_ContentPlaceHolder1_cbMuistutus"],
 label[for="ctl00_ContentPlaceHolder1_cbVahvistus"]{
    margin-left: 10px;
    font-weight: 250;
}

span.labelOhje {
    font-size: larger;
    font-weight: bold;
}

span[id$="_lblEtunimi"],
span[id$="_lblHetu"],
span[id$="_lblKatuosoite"],
span[id$="_lblPostinro"],
span[id$="_lblPuhelin"],
span[id$="_lblEmail"],
span[id$="_lblViesti"]
{
    font-weight: 250;
}

/* Reservation page adjustments */
article.sisaltokehys:has(input#ctl00_ContentPlaceHolder1_HaeAjat) > div.container > div.row.align-content-start {
    display: flex;
    flex-direction: column;
    padding-top: 250px;
    justify-content: flex-end; /* Aligns the content to the bottom */
}

article.sisaltokehys:has(input#ctl00_ContentPlaceHolder1_HaeAjat) > div.container > div.row.align-content-start > table {
    width: 75%;
    max-height: 80px !important;
    min-height: 80px !important;
    margin-bottom: 25px;
    padding: 25px !important;
    background-color: #224d51;
    border-radius: 20px;
/*    border-collapse: collapse;
    justify-self: flex-end;*/
}

article.sisaltokehys:has(input#ctl00_ContentPlaceHolder1_HaeAjat) > div.container > div.row.align-content-start > table > tbody {
}

article.sisaltokehys:has(input#ctl00_ContentPlaceHolder1_HaeAjat) > div.container > div.row.align-content-start > table span[id^="ctl00_ContentPlaceHolder1_lbl"] {
    padding-left: 10px;
    padding-top: 1px;
    padding-bottom: 10px;
    color: white;
    font-size: larger;
    font-weight: 500;
}

td.pbNappula {
    background-color: inherit !important;
}