/*  Font-face - A method to get non-default fonts in. The font is within the files.

https://www.w3schools.com/cssref/css3_pr_font-face_rule.asp */

@font-face {
    font-family: Roboto; 
    src: url('Roboto-Medium.ttf'); 
}

/* Keyframe animations - Minor animation to give the pages a little more flair.
Keyframe animations are also discussed in block 7 of webcoding.

Source: https://www.w3schools.com/css/css3_animations.asp */

@keyframes fadein {
    from {opacity: 0;}
    to   {opacity: 1;}
}

@keyframes popup {
    from {width: 80%; margin-top: 2%; opacity: 0;}
    to {width: 80%; margin-top: 0%; opacity: 1;}
}

/* HTML basic setup - Making sure there's an alternative font and removing the margin from the body. */

html {
    background-color: #592056;
    font-family: "Helvetica";
}

body {
    margin: 0;
    width: 100%;
    height: auto;
}

/* Navigation - Default navigation bar based on w3schools' navbar with a little transition extras.

Source: https://www.w3schools.com/css/css_navbar.asp */

.navbar {
    position: fixed;
    width: 100%;
    height: auto;
    background-color: #592056;
    text-align: center;
    font-size: 4vw;
}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 60px;
}

li {
    display: inline;
}

li a {
    display: inline-block;
    padding: 20px 4%;
    border-radius: 5px;
    background-color: #592056;
    color: white;
    text-align: center;
    text-decoration: none;
}

@keyframes linkhl {
    from {background-color: #592056;}
    to   {background-color: #af3d61;}
}

li a:hover {
    background-color: #df7154;
    transition: 0.2s;
}

.activepage {
    background-color: #af3d61;
}

/* Header - The introduction of the page. Header doesn't scale for aesthetical reasons. */

header {
    padding-top: 10px;
}

.banner {
    margin: 0;
    width: 100%;
    height: 400px;
    background-image: url("images/bannerroo.png");
    background-size: cover;
    background-repeat: no-repeat;
	background-position: right;
}

.banner2 {
    margin: 0;
    width: 100%;
    height: 400px;
    background-image: url("images/bannerteahouse.png");
    background-size: cover;
    background-repeat: no-repeat;
	background-position: left;
}

.banner3 {
    margin: 0;
    width: 100%;
    height: 400px;
    background-image: url("images/bannerowl.png");
    background-size: cover;
    background-repeat: no-repeat;
	background-position: left;
}

.banner4 {
    margin: 0;
    width: 100%;
    height: 400px;
    background-image: url("images/bannerqua.png");
    background-size: cover;
    background-repeat: no-repeat;
	background-position: right;
}

.intro {
    margin: 0 10% 0 10%;
    width: 80%;
    height: auto;
    padding-top: 100px;
    font-size: 4vw;
    color: white;
    text-align: center;
    text-shadow: 2px 2px rgba(50, 0, 50, 0.4);
}

.intro2 {
    margin: 0 10% 0 10%;
    width: 80%;
    height: auto;
    padding-top: 100px;
    font-size: 4vw;
    color: white;
    text-align: center;
    text-shadow: 2px 2px rgba(50, 0, 50, 0.4);
}

.title {
    margin: 0;
    padding-bottom: 60px;
    animation-name: fadein;
    animation-duration: 1s;
    animation-timing-function: ease-in;
}

.quote {
    margin: 0;
    padding-bottom: 20px;
    animation-name: fadein;
    animation-duration: 1s;
    animation-timing-function: ease-in;
}

/* Information box - A short message about this page. */

.profileinfo {
    display: inline-block;
    margin: 4% 0 4% 0;
    width: 100%;
    height: auto;
    color: white;
    font-size: 4vw;
    animation-name: fadein;
    animation-duration: 1s;
    animation-timing-function: ease-in;
}

.profilebox {
    display: inline-block;
    width: 100%;
    height: auto;
    text-align: center;
    background-color: #af3d61;
    border-radius: 20px;
    padding-bottom: 2%;
}

.profilebox2 {
    display: inline-block;
    width: 100%;
    height: auto;
    text-align: center;
    background-color: #af3d61;
    border-radius: 20px;
    padding-bottom: 2%;
}

#profileimage {
    margin: 0 0 0 2%;
    padding-top: 5%;
    display: inline;
    width: 50%;
    height: auto;
    border-radius: 20px;
}

#profileimage:hover {
    animation-name: wiggle;
    animation-duration: 2s;
    animation-timing-function: linear;
    animation-direction: normal;
    animation-iteration-count: infinite;
}

.profiletitle {
    margin: 0;
    padding: 2% 0 2% 0;
}

.profiletext {
    margin: 0;
    width: 100%;
    height: auto;
}

.profiletext2 {
    margin: 0;
    width: 100%;
    height: auto;
}

.galleryimage {
    margin: 2%;
    padding: 0;
    width: 25%;
    height: auto;
}

.videoimage {
    margin: 2%;
    padding: 0;
    width: 35%;
    height: auto;
}

.sitecontainer {
    margin-top: -5%;
    width: 96%;
    height: auto;
    padding: 2%;
}

.siteicon {
    margin: 0;
    width: 50px;
    height: 50px;
    display: inline;
    padding: 4% 2%;
}

.siteicon:hover {
    opacity: 0.6;
}

/* Modal box functions - Special pop-ups detailing more about art and videos based on w3schools'.
Then some more outside help was needed because multiple modals wouldn't work. It also doesn't use javascript.

Source: https://www.w3schools.com/howto/howto_css_modals.asp 
Source by user Sotiris: https://stackoverflow.com/questions/13887496/multiple-css-modal-boxes*/

.modalDialog {
    position: fixed;
    z-index: 1;
    padding-top: 10%;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.6);
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    transition: 0.2s;
}

.modalDialog:target {
    opacity: 1;
    pointer-events: auto;
}

.modalDialog > div {
    position: relative;
    background-color: white;
    margin: auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    height: auto;
    min-height: 90%;
    max-height: calc(100vh - 210px);
    overflow-y: auto;
    color: #592056;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 
    0 6px 20px 0 rgba(0,0,0,0.19);
}

.modalheader {
    padding: 2px 16px;
    border-radius: 19px 0 0 0;
    background-color: #af3d61;
    color: white;
}

.modalbody {
    margin: 0% 5% 0% 5%;
    width: 90%;
}

.modalimage {
    width: 100%;
    height: 20%;
    margin: 1%;
}

.modallink {
    text-decoration: none;
    color: #af3d61;
}

.modallink:hover {
    color: #df7154;
    transition: 0.4s;
}

.modallink2 {
    text-decoration: none;
    color: #df7154;
}

.modallink2:hover {
    color: #ffffff;
    transition: 0.4s;
}

.modallink2:visited {
    color: #df7154;
    transition: 0.4s;
}

.close {
    color: white;
    float: right;
    font-size: 3em;
    font-weight: bold;
    text-decoration: none;
}

.close:hover,
.close:focus {
    color: #df7154;
    text-decoration: none;
    transition: 0.2s;
    cursor: pointer;
}


/* Responsive youtube videos - Special code is required to prevent scaling shenanigans with width and height.

Source: https://coolestguidesontheplanet.com/videodrome/youtube/ */

.video-container {
    margin: 5% 0 5% 0;
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 30px;
	height: 0;
	overflow: hidden;
}

.video-container iframe, .video-container object, .video-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* Box Links - These are page previews to guide the visitor. */

.boxlinkcontainer {
    display: inline-block;
    margin: -2% 0 0 0;
    width: 100%;
    height: auto;
    text-align: center;
    color: white;
    font-size: 4vw;
    animation-name: fadein;
    animation-duration: 1s;
    animation-timing-function: ease-in;
}

.boxlink {
    margin: 2%;
    display: inline-block;
    width: 80%;
    height: auto;
    text-align: center;
    padding: 2%;
    background-color: #af3d61;
    border-radius: 20px;
}

.boxlink:hover {
    background-color: #df7154;
    transition: 0.2s;
}

.boxicon {
    margin: 0;
    display: inline;
    width: 100%;
    height: 25%;
}

.boxtext {
    margin: 0;
    height: auto;
    text-align: center;
}

/* Footer Bar - For extra minor information. */

.footerbar {
    width: 100%;
    height: auto;
    padding: 10px 0 10px 0;
    background-color: #af3d61;
    color: white;
    font-size: 1em;
    text-align: center;
}