body{
    background-color:#b3aca5; /*  light brown */
}

p {
    font-size: 120%;
}

/* Set up site grid */
.wrapper {
    display: grid;
    grid-template-columns: 1fr 500px;
    grid-template-rows: auto;
    grid-template-areas: 
        "header header"
        "nav nav"
        "main aside"
        "footer footer";
    grid-gap: 4px;
}
header, nav, main, aside, footer{
    padding: 20px;
    border: 10px;
}

header {
    padding: 200px;
    grid-area: header;
    background-color: #6b5942; /*  dark brown */
    color: #fff;
    
    /* Transform to vertically center heading */
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}

nav {
    grid-area: nav;
    background-color: #94816b; /* medium brown */
    color: #fff;
}

main {
    grid-area: main;
    background-color: #b49e88; /* light brown */
    color: #fff;
}

aside {
    grid-area: aside;
    background-color: #b49e88; /* light brown */
    color: #fff;
}

footer {
    grid-area: footer;
    color: azure;
    background-color: #6b5942; /* dark brown */
    text-align: right;
    border-radius: 10px;
} 

/* grid for front page images */

.homeimages {
    display: grid;
    grid-template-columns: 250px 250px;
    grid-template-rows: auto;
    grid-template-areas: 
        "string_1 string_2"
        "string_3 string_4";
    grid-gap: 8px;

    width: 520px;
    margin: auto;
    padding: 5px;
}

.string_1 {grid-area: string_1}
.string_2 {grid-area: string_2}
.string_3 {grid-area: string_3}
.string_4 {grid-area: string_4}

/* General formatting */

.string_img{
    height: 250px;
    width: 250px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 1px 0px 10px #000;
}

.box {
    padding: 20px;
    font-size: 120%;
    border-radius: 10px;
    font-family: 'Lora', sans-serif;
}

h1 {
    font-size: 400%;
    padding-left: 270px;
    margin: auto;

    /* Transform to vertically center heading */
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}

h2 {
    font-size: 140%;
    text-decoration: underline;
    text-decoration: solid;
}

h3{
    font-size: 120%;
}

img.topleft{
    border-radius: 10px;
    float: left;
    margin-right: 20px;
    box-shadow: 1px 0px 10px #000;

    /* Transform to vertically center heading */
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
}

/* Other Image Customisation */
.allround{
    border-radius: 20px;
    box-shadow: 1px 0px 10px #000;
}

.sideround{
    border-radius: 20px;
}

.centered {
    text-align: center;
}

/* Hover Text Formatting */
/* From http://css-workshop.com/hover-box-text-over-images-on-hover-and-more/ */

.hvrbox,
.hvrbox * {
	box-sizing: border-box;
}
.hvrbox {
	position: relative;
	display: inline-block;
	overflow: hidden;
	max-width: 100%;
	height: auto;
    border-radius: 20px;
}
.hvrbox img {
	max-width: 100%;
}
.hvrbox .hvrbox-layer_bottom {
	display: block;
}
.hvrbox .hvrbox-layer_top {
	opacity: 0;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	padding: 15px;
	-moz-transition: all 0.4s ease-in-out 0s;
	-webkit-transition: all 0.4s ease-in-out 0s;
	-ms-transition: all 0.4s ease-in-out 0s;
	transition: all 0.4s ease-in-out 0s;
}
.hvrbox:hover .hvrbox-layer_top,
.hvrbox.active .hvrbox-layer_top {
	opacity: 1;
}
.hvrbox .hvrbox-text {
	text-align: center;
	font-size: 18px;
	display: inline-block;
	position: absolute;
	top: 50%;
	left: 50%;
	-moz-transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	transform: translate(-50%, -50%);
}
.hvrbox .hvrbox-text_mobile {
	font-size: 15px;
	border-top: 1px solid rgb(179, 179, 179); /* for old browsers */
	border-top: 1px solid rgba(179, 179, 179, 0.7);
	margin-top: 5px;
	padding-top: 2px;
	display: none;
}
.hvrbox.active .hvrbox-text_mobile {
	display: block;
}

/* Hidden Box Formatting */
#hidden {
    display: none;
}

.info {
    border-style: solid;
    border-width: 5px;
    border-radius: 5px;
    background-color: #ac9679; /* light brown */
    border-color: #f8e1cc; /* very light brown */
    padding: 20px;
    width: 85%;
}

.showhide {
    background-color: #94816b; /*  brown  */
    border-color: #ac9679; /* light brown  */
    color: #e2d3be;
    border-radius: 5px;
    font-style: italic;
    padding: 2px;
    margin-left: 4px;
    padding-left: 5px;
    padding-right: 5px;
}

.showhide:hover {
    color: #f8e1cc;
    background-color: #bdac95; /* medium light brown grey */
    border-color: #f8e1cc; /* very light brown */
}

/* Links (Main/Sidebar) */
.sidelink {
    font-size: 130%;
    color: #5e4e38; /* dark brown */
    
}
a:link {color: #e7d7cb} /* light brown white */
a:visited {color: #e9cbaf} /* very light brown */
a:hover {color: #e6dcd4;} /*  brown  */

p {
    font-weight: 600;
}

/* Arrow customisation */

.arrow {
    font-size: 75%;
}

/* Drop Down Menu */
/* Customised From: https://www.w3schools.com/css/css_dropdowns.asp */

/* Style The Dropdown Button */
.dropbtn {
    text-decoration: underline;
    background-color: #ac8d79;
    color: #fff;
    padding: 16px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 7px;
    font-size: 150%;
    font-family: 'Lora', sans-serif;
    font-weight: 700;
  }


  
  /* The container <div> - needed to position the dropdown content */
  .dropdown {
    position: relative;
    display: inline-block;
  }
  
  /* Dropdown Content (Hidden by Default) */
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #dbd2c4; /* desaturated light brown */
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }
  
  /* Links inside the dropdown */
  .dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
  }
  
  /* Change color of dropdown links on hover */
  .dropdown-content a:hover {background-color: #f0dbd5}
  
  /* Show the dropdown menu on hover */
  .dropdown:hover .dropdown-content {
    display: block;
  }
  
  /* Change the background color of the dropdown button when the dropdown content is shown */
  .dropdown:hover .dropbtn {
    background-color: #bdaf95;
  }
  
/* Google Form Styling */

iframe {
    width: 85%;
    height: 754px;
    margin: auto;
    border: 0;
}

/* Medium screens (tablets) */
@media screen and (max-width: 1024px) {
    h1 {
        font-size: 300%;
        padding-left: 200px;
    }
    
    img.topleft {
        width: 180px;
        height: auto;
        margin-right: 15px;
    }
}

/* Small screens (large phones) */
@media screen and (max-width: 768px) {
    h1 {
        font-size: 250%;
        padding-left: 150px;
    }
    
    img.topleft {
        width: 150px;
        height: auto;
        margin-right: 10px;
    }
}

/* Extra small screens (phones) */
@media screen and (max-width: 480px) {
    h1 {
        font-size: 200%;
        padding-left: 120px;
    }
    
    img.topleft {
        width: 100px;
        height: auto;
        margin-right: 8px;
        float: none;
        display: block;
        margin: 0 auto 15px;
        transform: none;
        -webkit-transform: none;
        -ms-transform: none;
        position: static;
    }
}

/* For very small screens */
@media screen and (max-width: 320px) {
    h1 {
        font-size: 180%;
        padding-left: 100px;
    }
    
    img.topleft {
        width: 80px;
    }
}