@import 'menu.css';
@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');


/* CORE STYLES */
:root {
    --background: #fff;
    --text: #444; 
    --alternate: #8daa77;
    --darker: #444; 
    --grey: #666; 
    --white: #fff;
    --black: #000; 
    --transdarkgrey: rgba(0,0,0,0.8);
    --transwhite: rgba(255,255,255,0.7); 
    --transgrey: rgba(0,0,0,0.05); 
    --shadow: rgba(0,0,0,0.5); 
    --translightgreen: rgba(141, 170, 119, 0.6);
    --nicegrey: #525252; 
    --lightgreen: #c5efa5; 
  }

html {
    scroll-behavior: smooth;
}
body{
    position: relative;
    margin: 0;
    background-color: var(--background);
    color: var(--text);
    font-family: Open Sans, sans, Roboto, Arial, sans-serif;
}
img{
    border: 0; 
    max-width: 100%;
}
a{
    text-decoration:none; 
}
a[href^="mailto:"]
{
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-all;
  word-break: break-word;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}
main{
    padding: 2rem 0; 
    max-width: 900px;
    margin: auto; 
    line-height: 1.7;
    display: grid;
    /* gap: 2rem;  */
}
main.admin{
    max-width: none;
}
main h1{
    font-weight: 400;
    line-height: 1.1;
}
/* main div h1:first-of-type{
    color: var(--alternate); 
} */
main h6{
    font-weight: 400;
    line-height: 1.1;
    font-size: 1.1rem;
}
main a{
    color: var(--text); 
}
main p a,
main h3 a, 
main table a{
    border-bottom: 1px dashed var(--grey);
}
main p a:hover, 
main h3 a:hover, 
main table a:hover{
    border-bottom: 1px solid var(--alternate);
}
footer{
    background-color: var(--darker);
    color: var(--white); 
}
table{
    border-collapse: collapse;
    width: 100%; 
}
td{
    vertical-align: top;
}
input, textarea, select{
    font-size: 1rem;
}
main.cal{
    max-width: none;
}



.container{
    display: grid;
}
.oops {
	font-size: 250px;
	float: right;
	line-height: 250px;
	color:#000;
}
.contactform{
	margin: auto;
	transition: 0.5s;
}
.contactform div{
    padding: 0.5rem;
}
.contactform input[type=submit],
.contactform input[type=button],
.contactform input[type=text],
.contactform input[type=email],
.contactform input[type=date],
.contactform input[type=tel],
.contactform textarea
{
    font-size: 16px;
	border: 2px solid var(--alternate); 

}
.contactform input[type=submit]:focus-visible,
.contactform input[type=button]:focus-visible,
.contactform input[type=text]:focus-visible,
.contactform input[type=email]:focus-visible,
.contactform input[type=date]:focus-visible,
.contactform input[type=tel]:focus-visible,
.contactform textarea:focus-visible
{
    background-color: var(--translightgreen);
}
.contactform * + p{
    margin-top: 0; 
}
.contactform label {
    display:block;
    margin-bottom: 10px;
}
.contactform label > span{
    display: inline-block;
    width: 250px;
}
.contactform input[type=text],
.contactform input[type=email],
.contactform input[type=tel],
.contactform input[type=password],
.contactform input[type=date],
.contactform input[type=number],
.contactform input[type=time]
{
    background: transparent;
    width: 275px;
    outline: none;
    padding: 10px;
}
.contactform textarea{
    padding: 10px;
    background: transparent;
    outline: none;
    width: 275px;
    overflow: hidden;
    resize:none;
    min-height:100px;
}

.contactform textarea:focus,
.contactform input[type=text]:focus,
.contactform input[type=email]:focus,
.contactform input[type=email] :focus
{
    border: 2px solid var(--alternate);
}

.contactform input[type=submit],
.contactform input[type=button]{
    background: var(--alternate);
    border: none;
    padding: 8px 10px 8px 10px;
    color: #fff;
	width: 300px;
}
.contactform input[type=submit]:hover,
.contactform input[type=button]:hover{
background: #394D61;
}
.contactform input:not([type="submit"]),
.contactform textarea {
    border: 2px solid var(--alternate);

}
.contactform:has(input:not([type="submit"]):invalid) input[type="submit"] {
    background-color: transparent;
    pointer-events: none;
    position: relative;
}
.contactform:has(input:not([type="submit"]):invalid)::after{
    content: 'Please fill in all required inputs.';
    padding: 1rem;
}
.contactform:focus-within input:not([type="submit"]):invalid,
.contactform:focus-within textarea:invalid {
	border: 2px solid red !important;
}
.contactform:focus-within input:not([type="submit"]):valid,
.contactform:focus-within textarea:valid {
	border: 2px solid green !important;
}
.contactform:focus-within input[type="checkbox"]:invalid{
    outline: 2px solid red !important; 
    outline-offset: 2px; 
}
.contactform:focus-within input[type="checkbox"]:valid{
    outline: 2px solid green !important;  
    outline-offset: 2px; 
}
.contactform div:nth-of-type(4n+3), 
.contactform div:nth-of-type(4n+4){
    background-color: var(--transgrey);
}
.contactform > div{
    position: relative;
}
.contactform > div:has(input:required)::after{
    content: "\002A";
    color: #800; 
    font-size: 1.5rem;
    inset: 0 1rem auto auto; 
    position: absolute;
    display: block;
}
.picturegrid {
    /* display: grid;
    grid-template-columns: repeat(auto-fill,minmax(calc(150px + 10vw), 1fr)); */
    gap: 1rem;
    margin-block: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
.picturegrid > div {
    padding: 1rem;
}
.picturegrid img {
    width: 100%;
    margin: auto; 
} 
.iw{
    font-size: 0.8rem;
    padding: 0.5rem 2rem; 
    text-align: right;
}
.iw a{
    color: var(--white); 
}
.up{
    display: block;
    position: fixed;
    opacity: 0;
    bottom: 2rem;
    left: 2rem; 
    height: 3rem;
    width: 3rem; 
    transition: opacity 1s;
}
.upbutton.up{
    opacity: 0.8;
    transition: 0.3;
}
.upbutton.up:hover{
    filter: drop-shadow(2px 2px 3px var(--shadow));
    transform: translateY(-2px);
}
main div td{
    padding: 8px 4px;
}
main div tr:nth-of-type(2n) td {
	background-color: var(--transgrey);
}
.page{
    height: 300px; 
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
.page > div{
    display: none;
}
.page.contain{
    background-size: contain;
}
.pageinner{
    display: none;
}
.rook{
    text-align: center;
    padding: 20px; 
    display: none;
}
.rook img{
    width: 120px; 
}
footer > div:nth-of-type(2){
    padding: 3rem;
    max-width: calc(900px - 4rem);
    margin: auto;
    line-height: 1.7;
}
footer a{
    color: var(--white); 
}
main > div {
    padding-inline: 2rem;
}
main:not(.cal) > div:nth-of-type(2n){
    background-color: var(--transgrey);
}
.main .grid{
    display: grid;
}
.sidebar{
    background-color: var(--transgrey);
    padding: 2rem 1rem;
}
.sidebar a{
    color: var(--text); 
}
#calendar { 
	font-size: 13px;
	line-height: 13px;
	border-collapse:collapse;
	table-layout: fixed ;
	width: 100% ;

}

#schedule {
	position: relative; 
    margin-bottom: 2rem;
}
#schedule .russ{
	font-size: 30px; 
    font-family: Russo One;
	vertical-align: middle;
	padding : 0px 10px 3px 10px; 
	background-color: var(--alternate);
	border-radius: 30px;
	line-height: 30px; 
	transition: 0.4s;
}
#schedule .russ:first-of-type{
	margin-right: 20px; 
}
#schedule .russ:last-of-type{
	margin-left: 20px; 
}
#schedule .russ:hover{
	background-color: #333;
	color: #fff;
}
#schedule h3{
	font-weight: normal; 
}
#schedule > .nextprevious{
    display: flex;
    justify-content: center;
    gap: 0.25rem; 
    flex-wrap: wrap;
    margin-block: 1rem;
}
#schedule > .nextprevious > *{
    flex: 1 1 auto;

}
#schedule > .nextprevious .next, 
#schedule > .nextprevious .previous {
    background-color: var(--alternate);
    border-radius: 4px;
    padding: 0.5rem;
    display: grid;
    align-items: center;
    justify-content: center;
}
#schedule > .nextprevious .next img, 
#schedule > .nextprevious .previous img {
    height: 40px;
    width: 40px;
}
#schedule > .nextprevious .next img{
    transform: rotate(90deg);
}
#schedule > .nextprevious .previous img{
    transform: rotate(270deg);
}
#calendar a {
	color: #fff; 
	padding-bottom: 10px;
	display: block; 
}
#calendar a:hover {
	color: #ccc;
} 
#calendar td {
	padding: 3px;
	border: 1px solid var(--white);
}
main div #calendar tr:nth-of-type(2n) td{
    background-color: var(--nicegrey);
}
td {
	vertical-align: top;
} 
#calendar .topdays td{ 
	text-align: center; 
	background: var(--alternate);
	color: var(--white);
	padding: 20px; 
} 
#calendar a .time{
	color: var(--lightgreen);
}
#calendar .highlighteddayboxes a .time{
	color: var(--lightgreen);
}
#calendar td  a ~ div {
	display: none; 
}
.highlighteddayboxes {
	background: var(--alternate); 
	text-align: left;
}
.dayboxes { 
	background: var(--nicegrey); 
	text-align: left;
} 
.booked { 
	background: #414141; 
	text-align: left;
	color: #fff !important; 
}
.beforedayboxes, .afterdayboxes, .booked, .highlighteddayboxes, .dayboxes { 
	height: 90px;

} 
.beforedayboxes, .afterdayboxes{
    background-color: var(--transdarkgrey) !important;
}
.numbers { 
	font-size: 20px;
	float: right;
	line-height: 32px; 
	color: #fff;
	padding: 0px 0px 5px 5px;  
} 

.arrows {
	display: inline-block;
	font-family: FontAwesome;
	font-style: normal;
	font-weight: normal;
	line-height: 1;
	background-color: #555;
}
.arrows:hover{
	background-color: #333;	
}
.help-actions{
    display: grid;
    gap: 1rem;
    margin-block: 1rem;
}
.help-actions a{
    padding: 1rem;
    border: 1px solid var(--alternate); 
    text-align: center;
    transition: 0.4s;
}
.help-actions a:hover{
    background-color: var(--alternate);
    color: var(--white); 
}
.contentgrid .picture img{
    max-width: 200px;
}
.dayofweekforthissquare{
    display: none;
}
sup{
    font-size: 0.7rem;
}

/* 
accessability */
/* .color-picker{
    display: none;
} */


.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }
  .color-picker{
    color: #333;
    background-color: #fff;
    display: block;
  }
  .color-picker > fieldset {
    border: 0;
    display: flex;
    gap: 1rem;
    width: fit-content;
    background: #fff;
    padding: 1rem 3rem;
    margin-inline: auto;
    flex-wrap: wrap;
  }
  
  .color-picker input[type="radio"] {
    appearance: none;
    width: 1.5rem !important;
    height: 1.5rem !important;
    outline: 3px solid var(--radio-color, currentColor);
    outline-offset: 3px;
    border-radius: 50%;
    margin-right: 1rem; 
  }
  
  .color-picker input[type="radio"]:checked {
    background-color: var(--radio-color);
  }
  
  .color-picker input[type="radio"]#light {
    --radio-color: gray;
  }
  .color-picker input[type="radio"]#pink {
    --radio-color: pink;
  }
  .color-picker input[type="radio"]#blue {
    --radio-color: blue;
  }

  
  .pink,
  .pink p, 
  .pink table {
    font-size: 1.5rem
  }
  .pink h1  {
    font-size: 3rem;
  }
  .pink h2  {
    font-size: 2.5rem;
  }
  .pink h3  {
    font-size: 2.5rem;
  }
  .pink h4  {
    font-size: 2.25rem;
  }
  .pink main{
        max-width: none;
}
.blue,
.blue p, 
.blue table {
  font-size: 1.5rem
}
.blue h1  {
  font-size: 2.5rem;
}
.blue h2  {
  font-size: 2rem;
}
.blue h3  {
  font-size: 1.75rem;
}
.blue h4  {
  font-size: 1.6rem;
}
.blue main{
      max-width: none;
}
.blue table#calendar,
.pink table#calendar {
    font-size: 1rem;
    line-height: 1.1;
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}
  :root:has(#blue:checked) {
    --background: blue;
    --text: white ;
    --alternate: darkblue;
    --darker: darkblue; 
    --grey: #30567c; 
    --white: #fff;
    --black: #fff; 
    --transdarkgrey: rgba(0,0,0,0.8);
    --transwhite: rgba(255,255,255,0.7); 
    --transgrey: rgba(0,0,0,0.05); 
    --shadow: rgba(0,0,0,0.5); 
    --translightgreen: #222;
    --nicegrey: #1f1f6d; 
    --lightgreen: #e0f2d2; 
    color-scheme:  dark light;
  }
  .blue {
    --background: blue;
    --text: white ;
    --alternate: darkblue;
    --darker: darkblue; 
    --grey: #30567c; 
    --white: #fff;
    --black: #fff; 
    --transdarkgrey: rgba(0,0,0,0.8);
    --transwhite: rgba(255,255,255,0.7); 
    --transgrey: rgba(0,0,0,0.05); 
    --shadow: rgba(0,0,0,0.5); 
    --translightgreen: #222;
    --nicegrey: #1f1f6d; 
    --lightgreen: #e0f2d2; 
    color-scheme:  dark light;
  }
  .blue .page,
  .pink .page{
    grid-template-columns: none;
    justify-content: right;
    align-items: flex-end;

  }
  .blue .page h1,
  .pink .page h1{
    font-size: 2rem;
  }
  .pink .page > div, 
  .blue .page >div {
    width: fit-content;
    height: fit-content;
    border-radius: 1rem 0 0 0 ;
  }
  .pink .rook,
  .blue .rook{
    display: none;
  }
  .blue .contactform input, 
  .blue .contactform select, 
  .blue .contactform textarea{
    background-color: var(--alternate);
    color: var(--text); 
  }
  .blue .contactform > div:has(input:required)::after{
    color: var(--text); 
  }
  .pink .contactform input, 
  .pink .contactform select, 
  .pink .contactform textarea,
  .blue .contactform input, 
  .blue .contactform select, 
  .blue .contactform textarea{
    font-size: 1.5rem;
    border: 1px solid;
  }
  .blue *,
  .pink *{
    transition: none !important;
  }


  @media only screen and ( min-width: 1025px ){
    .container{
        grid-template-columns: 300px auto;
    }
    .sidenav{
        background-color: var(--alternate);
    }
    .contentgrid{
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }
    .contentgrid .picture{
        grid-column: 2/3;
        padding-top: 4rem;
    }
    .contentgrid .picture img{
        display: block;
    }
    .contentgrid .text{
        grid-column: 1/2;
        grid-row: 1/2;
    }
    /* .picturegrid > div {
        max-height: 250px;
    } */
    .picturegrid img {
        height: 100%;
        width: 100%;
        object-fit: cover;
        aspect-ratio: 3/2;
        margin: auto;
        display: block;
    }
    html:not(.pink):not(.blue) .navigation{
        position: sticky;
        top: 0;
        transition: opacity 1s;
        opacity: 1;
        z-index: 1; 
    }
    .navigation.sticking{
        box-shadow: none;
        opacity: 0; 
    }

    .navigation.sticking:hover{
        opacity: 1; 
    }
    /* .navigation.sticking #nav li a{
        background-color: var(--transwhite);
        color: var(--text);

    }
    .navigation.sticking #nav:hover li a{
        color: var(--white);
        background-color: var(--darker);
    } */
    .picturegrid > div {
        position: relative;
        display: grid;
        flex: 1 1 400px;
        max-width: 400px;
        background-color: var(--transwhite);
        overflow: hidden;
        padding: 0; 
    }
    .picturegrid > div p{
        /* position: absolute;
        inset: auto 0 0 0;  */
        padding: 1rem; 
        margin:0;
        align-self: end;
        position: relative;
    }
    .picturegrid.gallery > div {
        flex: 1 1 300px;   
        max-width: 300px;
        max-height: 200px;

    }
    .picturegrid.gallery > div.contain img{
        object-fit: contain;
    }
    .picturegrid.gallery > div.longstring{
        flex-basis: 100%;
        display: grid;
        max-width: 1250px;
        grid-template-columns: 300px auto;
        gap: 1rem; 
        margin-inline: 1rem;
    }
    .picturegrid > div.longstring p{
        line-height: 1.7;
        align-self: initial;
    }
    .contactform{
        display: grid;
    }
    .contactform > div:has(input:required)::after{
        inset: 0 -1rem auto auto; 

    }
    .page{
        height: 500px;
        display: grid; 
        grid-template-columns: 1fr 300px;
    }
    .page > div{
        display: grid;
        align-items: end; 
        justify-content: right;
        grid-column: 2/3;
        background-color: var(--transdarkgrey);
        padding: 2rem; 
        backdrop-filter: blur(5px);
    }
    .page h1{
        font-weight: 400;
        text-align: right;
        color: var(--white); 
        mix-blend-mode: difference; 
    }
    footer{
        display: grid;
        grid-template-columns: 300px auto;
    }
    footer > div:nth-of-type(2){
        padding: 1rem 3rem;
        width: calc( 100% - 6rem); 
    }
    footer > div:first-of-type{
        background-color: var(--grey);
        height: 100%;
        width: 100%; 
        grid-row: span 2;
    }
    html:not(.pink):not(.blue)  .main .grid {
        grid-template-columns: auto 300px; 
        /* height: 100%;  */
    }
    .pink .sidebar, 
    .blue .sidebar{
        padding: 2rem 2rem; 
    }
    .main .text:last-of-type{
        margin-bottom: 2rem;
    }
    .rook{
        display: block;
    }
    #calendar td  a + div {
        background-color: var(--transdarkgrey); 
        color: #fff;
        opacity	: 0; 
        line-height: 160%; 
        border-radius: 15px; 
        position: fixed;
        top: 300px;
        left: calc( 50%	 - 195px);
    }
    #calendar td  a:hover + div, #calendar td  a:focus + div {
        opacity	: 1; 
        z-index: 1;
        width: 350px;
        padding: 20px;
        transition: opacity 0.5s;
        box-shadow: 2px 2px 5px var(--transgrey); 
        font-size: 15px;
        display: block;
    }
    .thankyou{
        min-height: 500px; 
    }
    .four04{
        color: var(--black); 
        font-size: 10rem; 
    }
    .help-actions{
            grid-template-columns: 1fr 1fr 1fr;
        }
    .four04{
        color: var(--black); 
        font-size: 10rem; 
        line-height: 1.1;
    }
    .numbers{
        font-size: 24px;
    }
    #schedule > .nextprevious{
        display: grid;
        grid-template-columns: 1fr 2fr 2fr 1fr;
        width: 400px; 
        gap: 1rem;
}
#schedule > .nextprevious span{
   font-size: 0;
   padding: 0;
   margin: 0; 
}
#schedule > .nextprevious label{ 
    display: grid;
}
.contactform:has(input:not([type="submit"]):invalid)::after{
    grid-column: span 2;
}
}




/* big screen */

@media only screen and ( min-width: 1300px ) {

    .contactform{
        grid-template-columns: 1fr 1fr;
    }
}





  /* wide but not tall */
  @media only screen and ( min-width: 1400px )and ( max-height: 1200px ) {
    .page{
        height: 550px; 
      }
}












/* small screens */


@media only screen and ( max-width: 600px ) {
    td{
        display: block;
    }
    a[href^="mailto:"]
    {
        overflow-wrap: break-word;
        word-wrap: break-word;
        -ms-word-break: break-all;
        word-break: break-all;
        word-break: break-word;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        hyphens: auto;
    }
    header .logo{
        font-size: 1.5rem;
        display: grid;
        gap: 0.5rem;
        justify-content: center;
    }
    header .logo img{
        margin: auto;
    }
    footer{
        display: block;
    }
   /* :not(.color-picker) input, textarea, select{
        max-width: 100% !important;
        width: auto !important; 
    } */
    main{
        padding: 0; 
    }
    main > div, 
    footer > div:nth-of-type(2){
        padding-inline: 1rem;
    }
    #calendar td, #calendar .numbers {
        display: block;
        height: auto;
        width: auto;
        float: none;  
    }
    #calendar .beforedayboxes, #calendar .topdays, #calendar .afterdayboxes{
        display: none; 
    }
    .cal.home{
        display: none;
    }
    .dayofweekforthissquare{
        display: inline;
    }
    .color-picker > fieldset label{
        flex-basis: 70%;
    }
    .blue h1,
    .pink h1{   
        overflow-wrap: break-word;
        word-wrap: break-word;
        -ms-word-break: break-all;
        word-break: break-all;
        word-break: break-word;
        -ms-hyphens: auto;
        -moz-hyphens: auto;
        -webkit-hyphens: auto;
        hyphens: auto;
    }
}



/* container query */

@container (max-width: 500px) {
    .contactform{
        grid-template-columns: 1fr;
    }
  }