@import 'menu.css';
@import 'dist/jquery.fancybox.css';
@import url('https://fonts.googleapis.com/css2?family=Grape+Nuts&display=swap');
@import 'flickity.css';
@import 'calendar.css';


:root {
    --white: #fff;
    --black: #222; 
    --grey: #333; 
    --transgrey: rgba(0,0,0,0.9); 
    --alternate:  rgb(182, 212, 71); 
    --colour: #4d9cea; 
    --blue: rgba(28, 53, 90, 0.9); 
    --otherfont:  'Grape Nuts', cursive;
    --khaki: #E2DC9F; 
    --nearlywhite: rgba(255,255,255,0.1); 
    --othercolour: #af2020; 
    --othercolour2: #c42424; 
    --othergreen: #51a346;     
    --lightcolour: #619db7; 
    --alternate2: #9FBA3E; 
    --lightgrey: #eeeeee;
    --lighter: #7caddd; 
    --lesslight: #ddd; 
    --trans: rgba(255,255,255,0.5); 
    --shadow: rgba(0,0,0,0.4); 
    }


/* html {
    scroll-behavior: smooth;    
} */
body{
    position: relative;
    background-color: var(--black);
    margin: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
header{
    background-color: var(--grey);
}
img{
    max-width: 100%;
    border: 0; 
    display: block;
}
a[href^="mailto:"],
h2
{
  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;
}
h1{
    hyphens: manual; 
}
h1{
    font-weight: 400;
    text-wrap: balance;
    line-height: normal;
}
h2, h3{
    font-weight: 400;
}
footer{
    background-color: var(--grey);
    padding: 1rem; 
} 
main{
    padding: 2rem; 
    font-size: 1.15rem;
    line-height: 1.7rem;
}
main > div{
    max-width: 800px; 
    margin: auto; 
}
table{
    width: 100%;
    border-collapse: collapse;
}
td{
    padding: 5px;
    vertical-align: top;
}
tr:nth-child(2n+1) td{
    background-color: var(--grey);
}
.contact{
    display: grid;
    max-width: 800px;
    margin: auto;
    container-type: inline-size;
}
.contact > div{
    padding: 1rem; 
    display: grid;
    justify-content: center;
    align-items: center;
}
.contact img{
    height: 50px; 
    margin-right: 1rem; 
    vertical-align: middle;
    display: inline-block;
}
.contact a, 
.hero a{
    color: var(--white); 
    text-decoration: none;
    transition: color 0.4s;
}
.contact a:hover, 
.hero a:hover{
    color: var(--alternate); 
}
.hero h1{
    font-size: 5rem; 
}
.hero h1, 
.hero h2{
    font-family: var(--otherfont); 
    margin-block: 0.5rem;
    text-align: center;
}
.hero{
    text-align: center;
}
.hero img{
    display: block;
    margin: auto;
    width: 200px; 
}
p{
    text-wrap: pretty;
}
.layoutgrid{
    display: grid;
}
.sidebar{
    background-color: var(--colour);
    color: var(--white); 
    line-height: 1.7;
    font-size: 0.9rem;
    text-align: center;
}
.sidebar a{
    color: var(--white); 
    text-decoration: none;
}
.right{
    color: var(--white); 
    container-type: inline-size;
}
.hero{
    margin-bottom: 2rem;
    padding: 0.5rem;
}
.grid{
    display: grid;
}
.two{
    line-height: 1.7;
    font-size: 1.15rem;
    margin: 2rem auto; 
    gap: 2rem; 
}
.two > *{
    padding: 1rem;

}
.page{
    display: grid;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-height: 700px;
    height: 70vh;
    background-size: cover;
    background-position: center center;
    box-shadow: 0 0 200px rgba(0, 0, 0, 0.3) inset;
}
.page h1{
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: clamp(5rem, 15vw, 15rem);
    text-transform: uppercase;
    color: rgba(255,255,255,0.5); 
}
.two a, 
main a{
    color: var(--alternate); 
    text-decoration-thickness: 3px;
    text-underline-offset: 7px;
    transition: 0.4s;
}
.two a:hover{
    color: var(--colour); 
}
.bigpicture{
    min-height: 500px; 
    line-height: 1.7;
    display: grid;
    align-items: center;
    justify-content: center;
}
.bigpicture > div {
    max-width: 700px;
    margin: auto;
    position: relative;
    padding: 3rem;
    text-align: center;
    color: var(--grey);
}

.gallery{
    background-color: var(--khaki); 
    box-shadow: 0 0 200px rgba(0, 0, 0, 0.3) inset;
}

.bigpicture > div p:after{
   margin-left: 23px;
}
.slidercontainer .layer{
    display: flex;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: center;
    align-items: center;


}
.slidercontainer .layer div{
    z-index: 1;
    text-align: center;
    max-width: 80vw;
}

.slidercontainer{
    position: relative;
}
.bigpicture {
	background-size: cover;
	background-position: center center;
    height: 100%;

}
.bigpicture h4{
    font-weight: 400;
    font-size: 1.5rem;
}
.gallery-cell {
	width: 100%;
	/* max-height: 600px; */
	margin-right: 10px; 
}
#map{
    height: 500px; 
}
.bookings{
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 10;
}
.bookings form{
    display: grid;
    justify-content: center;
    background-color: var(--lightcolour);
    gap: 1px; 
    grid-template-columns: 1fr;
}
/* .bookings form > div{
    padding: 0.5rem; 
    background-color: var(--alternate);
} */
.bookings input, .bookings select, .bookings input[type="submit"] {
    background-color: var(--black);
    color: var(--white);
    text-decoration: none;
    /* padding: 1rem 1.4rem;  */
    transition: 0.4s;
    font-size: 1rem;
	max-width: 200px; 
	text-align: center;
	letter-spacing: 1px ; 
	border: 0;
    appearance: none;
    margin-top: 5px;
    transition : 0.2s;
	/* text-transform: uppercase;  */
    width: 100%; 
}
.bookings select option{
    text-align: center;
}
.bookings input[type=date]{
    max-width: 140px !important;
    width: 100%; 
	text-align: center !important;
    /* padding: 1rem 1.4rem;  */
	border: 0;
}
.bookings input:focus, 
.bookings select:focus, 
.bookings input[type="submit"]:focus,
.bookings input:hover, 
.bookings select:hover, 
.bookings input[type="submit"]:hover {
    box-shadow: 0 0 0 var(--black);
}
.bookings div {
    vertical-align: baseline;
    display: contents;
}
.bookings label {
	display: grid;
	padding: 0.25rem;
	background-color: var(--black);
	transition: 0.2s;
	align-items: flex-start;
	justify-content: center;
	align-content: first baseline;
}
.bookings label:hover, 
.bookings label:hover input,
.bookings label:hover select{
    background-color: var(--alternate);
}
.address{
    padding-top: 2rem;
}
.maingrid{
    display: grid;
    justify-content: center;
    text-align: center;
    align-items: center;
    background-color: var(--alternate);
    box-shadow: 0 0 200px rgba(0, 0, 0, 0.3) inset;
}

.maingrid img{
    display: block;
    margin: auto;
}
.maingrid .summary,
.maingrid .bookme{
    padding: 2svw;
    line-height: 1.7;
}
.maingrid.three:nth-child(2n+1),
.maingrid.three:nth-child(2n+1) section {
    background-color: var(--alternate2);
}
.cottages > .facilities, .facilities {
	display: flex;
	flex-flow: wrap;
	justify-content: center;
	align-items: center;
	max-width: 800px;
	margin: auto;
    gap: 0.5rem;
    font-size: 0.8rem;
}
.facilities div{
    text-align: center;
    padding: 1rem;
    flex: 1 1 50px;
    display: grid;
    align-self: start;
}
.facilities img{
    width: 50px; 
}
/* section{
    background-color: var(--white);
} */
section.title{
    padding: 2rem;
}
section.title h1,
section.title h2,
section.title h2 a{
    color: var(--text);
    font-size: 2rem;
    text-decoration: none;
}
section.title > div{
    max-width: 800px;
    margin: auto;
}
section.threepics{
    display: grid;
}
section.threepics > div{
    background-color: var(--white);
    padding: 3svw;
}
section.threepics > div:nth-of-type(2n+1){
    background-color: var(--grey);
}
section.threepics > div > div{
    display: grid;
    max-width: 1000px;
    margin: auto;
    align-items: center;
}
section.threepics h3{
    font-weight: 400;
    font-size: 3rem;
    color: var(--alternate);
    margin-top: 0.25rem;
    line-height: 1;
}
section.threepics h3 a{
    color: var(--alternate); 
    text-decoration: none;
    transition: 0.4s;
}
section.threepics h3 a:hover{
    color: var(--coloured-background); 
}
section.threepics > div > div > div{
   padding: max(1.5svw, 2rem);
}
section p{
    line-height: 1.7;
}
section.threepics button{
    margin: 1rem 0;
    padding: 0;
    border: 0;
}
section.threepics button a{
    background-color: var(--alternate);
    color: var(--white);
    text-decoration: none;
    padding: 1rem 1.4rem; 
    border-radius: 10px; 
    transition: 0.4s;
    font-size: 1.2rem;
}
section.threepics button a:hover{
    background-color: var(--lighter) ;
}
.maintext{
    margin: auto;
    max-width: 1200px; 
    padding: 2rem; 
}
.maintext a{
    color: var(--alternate); 
}
.toplinks{
    background-color: var(--grey);
    display: flex;
    flex-wrap: wrap;
    width: 100%; 
    font-size: 1.2rem; 
    text-transform: capitalize;
}
.toplinks a{
    line-height: 3rem; 
    color: var(--white); 
    text-decoration: none;
    text-align: center;
    flex: 1 1 auto; 
    transition: 0.4s;
}
.toplinks a:hover{
    background-color: var(--khaki);
    color: var(--black); 
}
.grid#pictures, 
.flex.pictures{
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
}

.grid#pictures > div, 
.flex.pictures > div{
    flex: 1 1 250px; 

}
#inline1 {
	max-width: 800px;
	display: none;
    height: 80vh;
    margin: 3vw;
    line-height: 1.5;
}
.paypal, 
#contact .paypal {
	border: 0;
	width: 250px;
    background: transparent;
}
div#contact{
    display: grid;
}
#contact textarea:focus,
#contact input[type=text]:focus,
#contact input[type=email]:focus,
#contact input[type=email] :focus
{
    border: 2px solid var(--alternate);
}

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

}
#contact:focus-within input:not([type="submit"]):invalid,
#contact:focus-within textarea:invalid {
	border: 2px solid red !important;

}
#contact:focus-within input:not([type="submit"]):valid,
#contact:focus-within textarea:valid {
	border: 2px solid green !important;

}
#contact:focus-within input[type="radio"]:invalid{
	outline: 2px solid red;
    outline-offset: 2px;
}
#contact div:nth-of-type(4n+3), 
#contact div:nth-of-type(4n+4){
    background-color: var(--grey);
}
#contact > div{
    position: relative;
    padding: 1rem;
}
#contact > div:has(textarea:required)::after, 
#contact > div:has(input:required)::after, 
#contact > div:has(select:required)::after{
    content: "\002A";
    color: #800; 
    font-size: 2rem;
    inset: 0 1rem auto auto; 
    position: absolute;
}
#contact > div:has(textarea:required)::after{
    inset: 0 -1rem auto auto; 
}
.oops{
    font-size: 10rem; 
    float: left; 
    margin: 1rem; 
}
.button{
    background-color: var(--grey);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 0;
    transition: background-color 0.4s;
}
.button:hover{
    background-color: var(--colour);
}
.up{
    display: block;
    position: fixed;
    opacity: 0;
    bottom: 2rem;
    left: 2rem; 
    height: 3rem;
    width: 3rem; 
    transition: opacity 1s;
    z-index: 10;
}
.upbutton.up{
    opacity: 0.8;
    transition: 0.3s;
}
.upbutton.up:hover{
        transform: translateY(-2px);
        filter: drop-shadow(2px 2px 3px var(--shadow));
}
.iw{
    font-size: 0.6rem;
    text-align: right;
}
.iw a{
    color: var(--lesslight); 
    text-decoration: none;
    padding: 1.5rem 2rem 1rem 2rem;
}
















@media only screen and ( min-width: 799px ) {
    input, textarea, select {
        border: 1px solid var(--alternate);
        background-color: var(--white);
        max-width: 100%;
        font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; 
        font-size: 1rem;
        padding: 7px;
    }
    #contact textarea, 
    #contact input:not([type=checkbox]){
        width: 280px;
    } 
    #contact select{
        width: 296px; 
    }
    .layoutgrid{
        grid-template-columns: clamp(250px, 25vw, 400px) auto;
        min-height: 100svh; 
    }
    .sidebar{
        box-shadow: 4px 4px 10px var(--transgrey);
        position: relative;
        z-index: 1;
        display: grid;

    }
    .sidebar > div{
        position: sticky;
        align-self: start; 
        min-height: calc(100svh - 2rem); 
        top: 0; 
        padding-block: 1rem; 
        box-shadow: 0 0 200px rgba(0, 0, 0, 0.3) inset;
    }

    .hero{
        max-width: 1000px;
        margin:auto;
        padding-block: 2rem;
    }
    .bigpicture > div p:before,
    .bigpicture > div p:after{
    font-family: Georgia, Times New Roman; 
    position: absolute;
    top: 13px;
    color: var(--grey);
    font-size: 60px;
    }
    .bigpicture > div p:before{
    content: "\201C";
    margin-right: 13px;
    right: 100%;
    }
    .bigpicture > div p:after{
    content: "\201D";
    margin-left: 13px;
    left: 100%;  
    bottom: 13px;
    }
    .contact{
        grid-template-columns: 1fr 1fr;
    }
    .bookings form{
        grid-template-columns: 1fr 1fr;
    }  
    .maingrid{
        grid-template-columns: 1fr 1fr;
    }
    .maingrid.three{
        grid-template-columns: 1fr 1fr 1fr;
    }

    .grid#pictures > div > img{
        width: 100%;
        height: 100%;
    }
    @supports(display: grid) {
    .grid#pictures{
        display: grid;
        grid-template-columns: repeat(auto-fill,minmax(calc(150px + 10vw), 1fr));
        justify-items: center;

    }
    }
    @supports(gap: 10px){
        .grid#pictures > div{
            margin: 0;
        }
    }
    
    @supports(object-fit: cover){
    .grid#pictures > div > img,
    .grid#pictures > div > a img, 
    .flex.pictures > div > a img{
        object-fit: cover;
        height: 100%;
        width: 100%;  
    }
    .grid#pictures > div, 
    .flex.pictures > div {
        /* height: 25vh; */
        width: 100%;
        max-height: 500px; 
        aspect-ratio: 1/1;
    }
    }

    .button:hover{
        background-color: var(--black);
    }
    div#contact{
        grid-template-columns: 1fr 1fr;

    }
    .bookings form{
        display: grid;
        justify-content: center;
        background-color: var(--lightcolour);
        gap: 1px; 
        grid-template-columns: 1fr;
        border-block: 1px solid var(--lightcolour);
    }
}


@media only screen and ( min-width: 1024px ) {
    .right .hero, 
    .right .hero h1, 
    .right .hero h2{
        text-align: right; 
    }
    .hero h2{
        padding-right: 2rem; 
    }
    .hero {
        max-width: 1000px;
        margin-left: auto;
        padding-block: 2rem;
        display: grid;
        grid-template-columns: auto auto;
        margin-bottom: 0;
        width: fit-content;
        gap: 1rem;
    }
    .two{
        grid-template-columns: 1fr 1fr;
        max-width: 1000px;
        margin: 3rem auto; 
    }
    .two img{
        border: 10px solid var(--white); 
        border-radius: 3px;
        box-shadow: 4px 4px 10px var(--transgrey);
        max-height: 380px;
        background-color: var(--white);
    }
    .two > div {
        position: relative;
    }
    .right{
        padding: 2rem auto; 
    }
    /* .two div:nth-of-type(2)::after,
    .two div:nth-of-type(3)::after{
        content: '';
        position: absolute;
        top: 15px; 
        left: -10px;
        background-color: rgba(255,255,255,0.85);
        height: 30px;
        width: 120px; 
        display: block;
        transform: rotate(-20deg);
        border-radius: 3px; 
        box-shadow: 1px 1px 2px rgba(0,0,0,0.2); 
    }
    .two div:nth-of-type(3)::after{
        top: 35px; 
        right: unset; 
        left: -40px; 
        transform: rotate(-30deg);
    } */
    .two div:nth-of-type(2) img{
        transform: rotate(5deg);
        margin-top: 3rem;
    }
    .two div:nth-of-type(1) img{
        transform: rotate(-5deg);
        margin-top: 3rem;
    }
    .bookings input, .bookings select, .bookings input[type="submit"] {
        width: 200px; 
    }
    .bookings input[type=date]{
        width: 160px; 
    }
    .bookings form{
        grid-template-columns: 1fr 1fr 1fr 1fr;
    } 

    #contact > div:has(input:required)::after{
        inset: 0 -1rem auto auto; 

    }


    } 



@container (max-width: 790px) {
.contact{
    display: block;
    text-align: center;
}
.contact div{
    display: inline-block;
}
.contact span{
    display: none;
}
.contact img{
    margin-right: unset;
}
.hasdata{
    display: grid;
    gap: 1rem;
}
.hasdata tr{
    width: auto;
    display: block; 
}
.hasdata th{
    display: none;
}
.hasdata td[colspan="100%"]{
    display: block;
    background-color: rgba(0, 0, 0, 0.5) !important;
}
.hasdata td{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.hasdata td::before{
    content: attr(data-cell); 
    display: block;

}
.hasdata td:first-of-type{
    padding-top: 1rem !important;
}
.hasdata td:last-of-type{
    padding-bottom: 1rem !important;
}
.hasdata .to{
    display: none;
}
}



@media only screen and ( min-width: 1025px ) and ( max-height: 1200px ) {


    @media (prefers-reduced-motion: no-preference) {

         .page h1{
            animation: fade linear both;
            animation-timeline: view(block);
            animation-range: cover 0% cover 100%;  
            color: var(--white); 
         }
         .two img,
         #pictures img,
         .flex.pictures img{
            animation: fadepics linear both;
            animation-timeline: view(block);
            animation-range: cover 0% cover 50%;  
         }
         /* .page{
            animation: movebackground linear both;
            animation-timeline: view(block);
            animation-range: cover 0% cover 100%;  
         } */
         @keyframes movebackground {
             from {
                 background-position: center 90%;
               }
             
               to {
                 background-position: center 30%;
               }
         
           }
           @keyframes fade {
            from {
                opacity: 0; 
                letter-spacing: 2rem;
              }
            
              to {
                opacity: 1;
                letter-spacing: 0rem;
              }
        
          }
          @keyframes fadepics {
            from {
                opacity: 0; 
              }
            
              to {
                opacity: 1;
              }
        
          }
        } 


        

}






@media only screen and ( max-width: 800px ) {

    .right .hero h1{
        font-size: 3rem; 
    }
    .address{
        line-height: normal;
        padding-block: 1rem;
    }

    .upbutton.up{
        mix-blend-mode: difference; 
    }
    .hero{
        margin: 0;
    }
}


@media only screen and ( max-width: 400px ) {
    .dummy td, 
    #contact td, 
    #contact th{
        display: block;
    }
    main, 
    .maintext, 
    .two > * {
        padding: 1rem 0.5rem; 
    }
    .page{
        height: 75vw;
    }
    .page h1{
        font-size: 4rem;
    }
    .two{
        margin: unset; 
    }

} 