/* 
   _
__(.)<  Cpoyright (c) By Jens Nickelsen
\___)

*/

@font-face {
    font-family: "Open Sans";
    src: url("OpenSans-Regular.ttf");
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Open Sans", sans-serif;
    text-align: center;
}

/* setting css to grid to align header content and colours and font size */
body{
    min-height: 100%;
  	display: grid;
  	grid-template-rows: auto;
	background-color: rgb(6,172,165);
	color: white;
    background-image: url("header.webp");
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

p {
    font-size: 1.5em;    
    text-shadow: 2px 2px #000000;
}

small{
    font-size: 14px;
}

.small{
    margin-top: 0;
    padding-top: 0;
}

/* center text in header */
header div:last-child {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px #000000;
}

h1 {
    font-size: 70px;
}

h3 {
    margin-top: 4vh;
}

img {
    width: auto;
    height: 30vh;
}

.disable-scrolling {
    overflow-y: hidden;
}

.top {
    height: 100vh;
}

.topParagraph{
    padding-bottom: 0;
    margin-bottom: 0;
}

header h2 {
    animation: scrollDown 3s infinite;
    cursor: default;
}

article {
	margin-top: 50px;
}

article p {
    padding: 1vh 0;
}

/* main content container, includes everything exept header */
.main-content {
    margin: 0 15%;
	padding: 0 5%;
    padding-top: 5px;
    position: absolute;
    left: 0;
    right: 0;
	border-radius: 0 0 10px 10px;
    padding-bottom: 1vh;
}

form * {
    text-align: left;
}

.formHiddenElement{
    display: none;
}

/* input fields styled and formated */
input[type=text], select, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    resize: vertical;
    color: #cfcfcf;
    background-color: transparent;
}

select:focus {
    color: #000;
}

input[type=date], select, textarea {
    width: 100%;
    padding: 12px;
    border-radius: 4px;
    color: #cfcfcf;
    background-color: transparent;
}
  
input[type=button] {
    background-color: rgb(242, 106, 27);
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    float:left;
    margin-top: 0.5vh;
}
  
::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

input[type=button]:hover {
    background-color: rgb(138, 57, 10);
}

label {
    padding: 12px 12px 12px 0;
    display: inline-block;
}

/* container for the form */
.container {
    border-radius: 15px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 20px;
    margin: 0 10% 0 10%;
    width: auto;
    height: auto;
    overflow: hidden;
}
.form-label {
    font-size: 0.9em;
    display: block;
    opacity: 0;
    transition: all 0.4s;
    transform: translateX(-50px);
}

.country {
    font-size: 0.75em;
    display: block;
}

.form-controll {
    box-shadow: none;
    border-radius: 0;
    border-color: #999;
    border-style: none none solid none;
    font-size: 1.25em;
    transition: all 0.4s;
}

.form-controll::placeholder{
    color: #ffffff;
}

.form-controll:focus {
    box-shadow: none;
    border-color: #fff;
    outline: none;

}

.row:focus-within {
    transform: scale(1.02,1.02);
}

.form-controll:invalid:focus {
    border-color: #ff0000;
}

.form-controll:valid {
    border-color: #00ff00;
}

.focused > label {
    opacity: 1;
    transform: translateX(0px);

}


/* Clear floats after the columns */
.row:after {
    content: "";
    display: table;
    clear: both;
}

a {
    color: inherit;
}

a:visited {
    color: rgb(28, 177, 28);
}

a:hover {
    color: lightgreen;
}

iframe {
    width: 20vw; 
    height: 55vh;
    min-width: 350px;
    max-width: 80vw;
    max-height: 60vh;
}

.scroll-container {
    scroll-snap-type: y proximity;
}

.scroll-area {
    scroll-snap-align: start;
}

/* animation to make text float up and down */
@keyframes scrollDown {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(0);
    }
}

@media (pointer: coarse) {
    body:after {
        content: '';
        width: 100%;
        height: 100%;
        background-position: inherit;
        background-image: inherit;
        background-size: inherit;
        background-attachment: initial;
        background-repeat: inherit;
        position: fixed;
        top: 0;
        z-index: -1;
    }
}
  
/* Responsive layout - when the screen is less than 600px wide, make the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 1200px) {
    .main-content {
        margin: 0 2%;
    }
    .container {
        margin: 0 2%;
    }
    header div:last-child {
        top: 32%;
    }
    body {
        background-image: url("smalerHeader.webp");
    }
    input[type=button]{
        text-align: center;
    }
}

@media screen and (max-width: 600px) {
    .col-25, .col-75, input[type=button] {
        width: 100%;
        margin-top: 0;
    }

    header h2 {
        width: 100vw;
    }
    
    #about {
        height: 12vh;
    }
}

@media only screen and (max-device-width: 1366px) {
    header:first-child {
      background-attachment: scroll;
    }
  }
