/* Theming */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap"); /* import font */

:root {
    --white: #f9f9f9;
    --black: #36383F;
    --gray: #85888C;
} /* variables*/

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/*
html {
    height:100%;
    background: url(./images/Lauttasaaren_Laulajat_2023.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: transparent;
}
*/

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}



/* Change autocomplete styles in WebKit */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  border: 1px solid black;
  -webkit-text-fill-color: black;
/*  -webkit-box-shadow: 0 0 0px 1000px #000 inset; */
  transition: background-color 5000s ease-in-out 0s;
}

a {
    text-decoration: none;
}
ul {
    list-style: none;
}

/*
.main-container{
    top: 100%;
    width: 100%;
    padding: 5px;
}
*/

.main-container {
    min-height: calc(100vh - 200px); /* säädä header+footerin yhteiskorkeuden mukaan */
    background-image: url('./images/Lauttasaaren_Laulajat_2023.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    flex-direction: column;
    justify-content: center; /* valinnainen */
}

footer {
  margin-top: auto;
}

.footer-container{
    top: 100%;
    width: 100%;
    padding: 5px;
    margin-top: auto;
}
.footer-container hr{
    margin: 0;
}
.footer-container h6 {
    font-size: 12px;
}
.footer-container ui {
    font-size: 11px;
}
.col-copyright {
    margin: 0;
    font-size: 11px;
}
.socialmedia-container {
    width: 100%;
    min-height: 10vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 2%;
}
.socialmedia-container h6 {
    font-size: 12px;
}

#page-wrap {
    width: 420px;
    margin: 70px auto;
    padding: 20px;
    background: white;
    -moz-box-shadow: 0 0 20px black;
    -webkit-box-shadow: 0 0 20px black;
    box-shadow: 0 0 20px black;
}
.otsikko h2 {
    font: bold 18px arial;
    color: black;
}

p {
    font: 15px/2 Georgia, Serif;
    margin: 0 0 30px 0;
}
p.italic {
    font-style: italic;
}
img {
    float: right;
/*    border-radius: 50%;   */
    padding: 5px;
    width: 150px;
}

/* Kuvagalleria */
.container {
    width: 100%;
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 2%;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 131px);
    column-gap: 10px;
}
.gallery img {
    width: 100%;
}

/* Header */
.header{
    background-color: var(--black);
    box-shadow: 1px 1px 5px 0px var(--gray);
    position: sticky;
    top: 0;
    width: 100%;
    height: 80px;
}
/* Logo */
.logo{
    display: inline-block;
    color: var(--gray);
    font-size: 60px;
    margin-left: 10px;
}

/* Nav menu */
.nav{
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: var(--black);
    overflow: hidden;
    text-decoration: none;
}
.nav{
    max-height: 0;
    transition: max-height .5s ease-out;
}
.menu a{
    display: block;
    padding: 30px;
    color: var(--white);
}
.menu a:hover{
    background-color: var(--gray);
}
.active {
    background-color: var(--gray);
    color: white;
}

/* Mainosbanneri tulevista tapahtumista */
.banner-container img{
    width: 600px;
    height: 600px;
    margin: 100px;
}

/* Ankkuripaikat menusta */
#offset-anchor1,
#offset-anchor2,
#offset-anchor3,
#offset-anchor4,
#offset-anchor5,
#offset-anchor6 {
/*    offset-anchor: revert;  */
    padding-top: 90px;
    margin-top: -100px;
}

/* Menu Icon */
.hamb{
    cursor: pointer;
    float: right;
    padding: 40px 20px;
}
/* Style label tag */
.hamb-line {
    background: var(--white);
    display: block;
    height: 2px;
    position: relative;
    width: 24px;
}

/* Style form */
label {
    font-weight: bold;
}
input[type=text] {
    margin: 5px 0px;
    border-radius: 5px;
    border: 1px solid;
}
textarea {
    margin: 5px 0px;
    border-radius: 5px;
    border: 1px solid;
}
select {
    padding: 5px;
    margin: 5px 15px;
    border-radius: 5px;
    border: 1px solid;
}
input[type=submit] {
    display: block;
    height: 30px;
    width: 80px;
    font-weight: bold;
    background-color: #A9A9A9;
    text-align: center;
    padding: 5px 15px;
    border: 1 solid;
    cursor:pointer;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    margin: 5px auto 10px;
}

/* Style span tag */
.hamb-line::before,
.hamb-line::after{
    background: var(--white);
    content: '';
    display: block;
    height: 100%;
    position: absolute;
    transition: all .2s ease-out;
    width: 100%;
}
.hamb-line::before{
    top: 5px;
}
.hamb-line::after{
    top: -5px;
}

.side-menu {
    display: none;
} /* Hide checkbox */

/* Toggle menu icon */
.side-menu:checked ~ nav{
    max-height: 100%;
}
.side-menu:checked ~ .hamb .hamb-line {
    background: transparent;
}
.side-menu:checked ~ .hamb .hamb-line::before {
    transform: rotate(-45deg);
    top:0;
}
.side-menu:checked ~ .hamb .hamb-line::after {
    transform: rotate(45deg);
    top:0;
}

/* Responsiveness */
@media (min-width: 768px) {
    .nav{
        max-height: none;
        top: 0;
        position: relative;
        float: right;
        width: fit-content;
    }
    .menu li{
        float: left;
    }
    .menu a:hover{
        background-color: transparent;
        color: var(--gray);

    }

    .hamb{
        display: none;
    }
}

/* Yhteydenottolomakkeen viestit */
.error {
    font-size: 14px;
    color: red;
    position: relative;
    top: 3px;
}
.successMessage {
    font-size: 12px;
    color: green;
    background-color: lightgreen;
    position: relative;
    top: 5px;
}
