/* Yleinen tyyli: pehmeät värit ja moderni ulkoasu */
@font-face {
    font-family: 'Disko';
    src: url('/static/disko_tt.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Handwritten';
    /*src: url('/static/Simple Kind Of Girl.ttf') format('truetype');*/
    src: url('/static/KGNeatlyPrinted.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    size-adjust: 170%;
}

@font-face {
    font-family: 'MPonderosa';
    /*src: url('/static/MPonderosa.ttf') format('truetype');*/
    src: url('/static/rustneversleeps.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    size-adjust: 75%;
}

@font-face {
    font-family: 'Homeruns';
    /*src: url('/static/homeruns.ttf') format('truetype');*/
    src: url('/static/OliJo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    size-adjust: 100%;
}



html {
    height: 100%;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Homeruns', Arial, sans-serif;
    background-color: black;
    color: white;
    justify-content: center;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Page  */
/* PAGE WRAPPER */
.page {
    margin-left: 0px;  
    margin-right: 0px;
    bottom: 120px;
    transition: margin-left 0.3s ease;
    margin-bottom: 120px;
}

.main {
    margin-left: 10rem;
    margin-right: 10rem;
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
}

a {
    color: white;
}

.content {
    margin-left: 2rem;
    margin-right: 2rem;
    margin-top: 2rem;
    max-width: 50rem;
    width: 100%;
    /*background-color: #014f8A;*/
    background-color: #012b4b;
    color: #fff;
    padding: 1rem;
    border-width: 3px;
    border-style: solid;
    border-color: #024273;
    /*border-radius: 12px; */
    border-radius: 5px; 
}


.content-wide {
    margin-left: 2rem;
    margin-right: 2rem;
    margin-top: 2rem;
    width: 100%;
    background-color: #014f8A;
    color: #fff;
    padding: 1rem;
    border-width: 3px;
    border-style: solid;
    border-color: #0278d2;
    border-radius: 12px; 
    max-width: 100rem;
}   

.header {
    background: url('/static/img/header.jpeg') no-repeat bottom center;
    background-size: contain;
    color: white;
    background-color: black;
    padding: 20px;
    height: 110px;
    top: 60px;
    position: fixed;
    width: 100%;
}

.footer {
    background: url('/static/img/footer.jpeg') no-repeat bottom center;
    background-size: contain;
    background-color: black;
    color: white;
    padding: 20px;
    position: fixed;
    bottom: 0px;
    width: 100%;
    height: 100px;
}

.footer-spacer {
    height: 160px;
    width: 100%;
}

.header-spacer {
    height: 200px;
    width: 100%;
}

div.newline {
    flex-basis: 100%;
    height: 0px;
}

span.title {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    font-family: 'MPonderosa';
    margin-left: 5rem;
}

span.subtitle {
    display: block;
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    margin-top: 3rem;

    font-family: 'MPonderosa';
    margin-bottom: 0rem;
}

table {
    align: center;
}

#invitation-table {
    width: 100%;
}

td {
    padding-right: 1rem;
    font-family: sans-serif;
    font-size: 0.9rem;
}

th {
    text-align: left;
    padding-right: 1rem;
    font-family: sans-serif;
}

tr {

}

tr:hover {
    background-color: #c4e9f1;
}

.hide {
    transition: all 1s ease-out;
    height: 0px;
}

/* Bandpages */

.bandboxes {
    max-width: 1100px;
    display: flex;
    flex-direction: row;
    justify-content: center; 
    flex-basis: auto;
    flex-wrap: wrap;
    z-index: 10;
}

.bandbox {
    height: 280px;
    width: 330px;
    margin: 10px;
    cursor: pointer;
    position: relative;
    border-width: 3px;
    border-style: solid;
    border-color: #333;;
    border-radius: 12px; 
    z-index: 10;
}

.bandname {
    width: 100%;
    height: 30px;
    background-color: #333;
    color: white;
    text-align: center;
    padding-top: 7px;
    position: absolute;
    bottom: 0;
}

#dec-box {
    background: url('/static/img/dec.jpg') no-repeat;
    background-size: cover;
}
#groovybrothers-box {
    background: url('/static/img/groovybrothers.jpeg') no-repeat;
    background-size: cover;
}

.sampleplayer {
    width: 100%;
    position: fixed;
    bottom: 0px;
    height: 3rem;
    background-color: #ddddee;
    padding: 2px;
    z-index: 9999;
    align-items: center;
    display: none;
}

button.closeBandButton{
    background-color: #333;
    width: 10rem;
    margin: auto;
}

#audio-controls {
    display: flex;
    max-width: 600px;
    margin: auto;
}

#audio-controls img {
    width: 40px;
    height: 40px;
    margin-top: 5px;
}

#playerInfoContainer {
    width: 10rem;
    margin-top 1rem;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

#playerInfo {
    display: inline-block;
    padding-left: 100%;
    animation: scroll-left 10s linear infinite;
    font-family: sans-serif;
    color: black;
    padding 5px;
    margin-top: 10px;
}

@keyframes scroll-left {
    0% {
        transform: translatex(0%);
    }
    100% {
        transform: translatex(-100%);
    }
}
.sampleinfo {
    display: none;
}
.banddescription {
    display: none;
    margin-left: 2rem;
    margin-right: 2rem;
    margin-top: 2rem;
    max-width: 50rem;
    color: white;
    background-color: #014f8a;
    padding: 1rem;
    border-width: 3px;
    border-style: solid;
    border-color: #333;
    border-radius: 12px;
    transition: all 1s ease-out;
}

.bandlogo {
    width: 100%;
    height: 15rem;
    background-color: black;
}

#groovybrothers-logo
{
    background: url('/static/img/groovybrothers-logo.jpeg') no-repeat;
    background-size: contain;
    background-position: center center;
}


#dec-logo
{
    background: url('/static/img/dec-logo.jpeg') no-repeat;
    background-size: contain;
    background-position: center center;
}



/* Registerform  and other inputs */

.login-dialog {
    width: 25rem;
    height: 25rem;
    padding: 0.2rem;
    background-color: white;
    border-width: 3px;
    border-style: solid;
    border-radius: 12px;
    margin: auto;
    margin-top: 10rem;
    text-align: center;

}

.login-title {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    font-family: 'MPonderosa';
}

.login-subtitle {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #555;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
}

.editor-popup {
    width: 20rem;
    padding: 0.5rem;
    border-width: 3px;
    border-style: solid;
    border-color: #333;
    border-radius: 12px; 
    z-index: 1000;
    position: fixed;
    top: 10%;
    left: 50%;
    background-color: gray;

}

.button-small {
    padding: 5px 8px;
    font-size: 0.8rem;
    margin: 2px;
}

.registerform {
    max-width: 500px;
    margin: 10px auto;
    padding: 20px;
    color: black;
    border: 3px solid #ccc;
    border-radius: 12px;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-family: sans-serif;
}

.registerform a {
    color: blue;
}

.registerform .subtitle {
    display: block;
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.form-option {
    display: flex;
    align-items: center;
    margin-bottom: 5px; /* halutessasi rako rivien väliin */
}

.form-option input[type="radio"] {
    margin-right: 8px; /* halutessasi tilaa napin ja labelin väliin */
}

img.foodpic {
    max-width: 15rem;
}

.form-option input[type="radio"]:checked + label {
    border-color: red;     /* kirkkaampi reunus */
    font-weight: bold;
}

input.foodamount {
	width: 2rem;
}

label {
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

input[type="text"] {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1em;
    background-color: #fafafa;
    transition: border 0.3s ease;
}

input[type="text"]:focus {
    border-color: #0077cc;
    outline: none;
    background-color: #fff;
}

input[type="radio"] {
    margin-right: 8px;
}


.form-group input[type="radio"] + label {
    margin-right: 20px;
    font-weight: normal;
    cursor: pointer;
}

button, input[type="submit"] {
    margin-top: 20px;
    padding: 10px 16px;
    font-size: 1em;
    background-color: #0077cc;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover, input[type="submit"]:hover {
    background-color: #005fa3;
}

button:disabled {
    background-color: gray;
}

.error {
    padding: 5px;
    margin: 10px;
    background-color: #ffaaaa;
    display: block;
    font-family: sans-serif;
}

#invitationcode {
    text-align: center;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.5rem;
}

/* Menu big screen */
.menu {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin: 0 0 auto;
    width: 100%;
    align-items: center;
    justify-content: center;
    background-color: white;
    z-index: 999;
    position: fixed;
    top: 0px;
}

.menuitem {
    padding: 12px 20px;
}

.menuitem a {
    font-family: 'MPonderosa', sans-serif;
    font-size: 40px;
    text-decoration: none;
    color: black;
}

.menuitem a:hover {
    font-weight: bold;
}

.menuitem-selected {
    background-color: black;
    color: white;
}

.menuitem-selected a {
    color: white;
}

.menu-toggle {
    display: none;
}

#menu-logout a {
    font-size: 1.5rem;
    margin-right: auto;
}

#menu-logout {
    justify-self: end;
    margin-right: 0px auto;
}

.mobileonly {
    display: none;
}

/* Responsive behavior */
@media (max-width: 1200px) or (max-height: 700px) {
    /* Menu */
    /* Base layout for sidebar */

    .nomobile {
        display: none;
    }

    .mobileonly {
        display: block;
    }

    .menu {
        position: fixed;
        left: 10px; /* Margin from the side */
        top: 10px;  /* Margin from the top */
        height: calc(100% - 15px); /* Account for top and bottom margin */
        width: 220px;
        /*background-color: #2c3e50;*/
        background-color: white;
        border: 3px solid #1a252f;
        border-radius: 12px;
        padding-top: 100px;
        display: flex;
        flex-direction: column;
        justify-content: start;
        gap: 10px;
        transition: transform 0.3s ease;
        z-index: 999;
        box-sizing: border-box;
        transform: translateX(-120%);
        opacity: 0.95;
    }

    .menuitem a {
        color: black;
        padding: 4px 20px;
        text-decoration: none;
        display: block;
        border-radius: 6px;
        font-size: 30px;
    }

    .menuitem {
        padding: 0px;
        width: 100%;
        display: block;
    }

    .menuitem-selected {
        /*background-color: #4e6d8d;*/

    }
    .menuitem-selected a {
        color: white;
    }

    /* Hamburger icon (mobile only) */
    .menu-toggle {
        position: fixed;
        top: 15px;
        left: 15px;
        font-size: 18px;
        /*
        background-color: #2c3e50;
        color: white;*/
background-color: white;
color: #2c3e50;
cursor: pointer;
padding: 8px;
z-index: 1000;
border: 2px solid #1a252f;
border-radius: 8px;
display: block;
    }

    .menu.open {
        transform: translateX(0);
    }

    .main { 
        margin-left: 3px;
        margin-right: 3px;
    }

    .content {
        margin-left: 3px;
        margin-right: 3px;
    }

    span.title {
        margin-left: 5px;
    }

    .header {
        padding-left: 4rem;
        top: 0px;
        height: 30px;
        z-index: 999;
    }

    .footer {
        height: 90px;
    }



}

/* END OF MENU */
