﻿:root {
    --LF-sininen: #0e1d30;
    --LF-harmaa: rgb(199, 200, 201);
    --LF-vaaleansininen: rgb(236,245,254);
    --LF-vihreä: rgb(35,176,157);
    --LF-pohjasininen: rgb(13,59,108)
}


html {
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
    font-size: 14px;
    background-color: aquamarine;
}


body, html {
    min-height: 100vh;
}

body {
    display: flex;
    flex-direction: column;
}

.perusDiv {
    background-color: white;
    box-shadow: 0px 0px 10px gray;
    border-radius: 20px;
    padding: 15px;
    margin: auto;
    display: flex;
    flex-direction: column;
    text-align: left
}

summary {
    padding: 15px;
}

.kirjautumisDiv {
    background-color: white;
    box-shadow: 0px 0px 10px gray;
    border-radius: 20px;
    margin: auto;
    display: flex;
    flex-direction: column;
    text-align: left
}

hr {
    width: 100%;
    height: 3px;
    background-color: lightgray;
    border: none;
}

h1 {
    margin-bottom: 1px;
}

header button {
    padding: 5px 15px;
}

button, input[type=submit], input[type=button] {
    border: none;
    padding: 15px;
    min-width: 80px;
    margin: 1px;
    cursor: pointer;
}

.konttiDiv {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    text-align: center;
    flex: 1;
}

.headerDiv {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    padding: 10px;
    justify-content: space-between
}

body {
    background-color: var(--LF-harmaa);
    padding: 0;
    margin: 0;
}

header {
    background-color: var(--LF-sininen);
    width: 100%;
}

p {
    margin: 0px;
}

ul {
    margin: 0px;
}

.VirheIlmoitus {
    color: red;
    background-color: lightyellow;
    border: 4px solid red;
    padding: 5px;
}

input[type=text], input[type=password] {
    width: 80%;
}

input[type=button] {
    padding: 5px;
}

form {
    margin: 15px;
}

.HampurilaisValikko, header h1 {
    align-self: right;
    text-align: right;
    color: white;
    text-decoration: none;
}

#myLinks {
    display: none;
    background-color: var(--LF-sininen);
}
.HampurilaisValikko:hover {
    background-color: #ddd;
    color: black;
}

#myLinks a {
    color: white;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    display: block;
    text-align: right;
}

/* Add a grey background color on mouse-over */
    #myLinks a:hover {
        background-color: #ddd;
        color: black;
    }


.liitemanageri {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.liiteKonttiPieni {
    border-style: none;
    color: black;
    text-align: left;
    width: 20%;
    border-radius: 10px;
    min-width: 150px;
    margin: 2px;
}
.liiteKonttiSuuri {
    border-style: none;
    color: black;
    text-align: left;
    width: 35%;
    border-radius: 10px;
    min-width: 250px;
    margin: 2px;
}

.hahmoArkki {
    background-color: tan;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 60%;
    border-style: solid;
    padding: 2px;
}

.hahmoKontti {
    border-style: solid;
    color: black;
    text-align: left;
    border-radius: 10px;
    padding: 2px;
    /*min-width: 300px;*/

    margin: 2px;
}

.hahmoKonttiTäyttö {
    border-style: solid;
    color: black;
    text-align: left;
    border-radius: 10px;
    padding: 2px;
    /*min-width: 300px;*/
    width: 90%;
    margin: 2px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

.hahmoKonttiRivi {
    border-style: solid;
    color: black;
    text-align: left;
    border-radius: 10px;
    /*min-width: 300px;*/
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 2px;
    margin: 2px;
    max-width: 45%;
}

.hahmoKontti h2, .hahmoKontti h3, .hahmoTaidot h3, .hahmoKonttiTäyttö h2 {
    text-align: center;
    margin: 0;
}

.hahmoTaidot {
    width: auto;
    border-style: solid;
    padding: 2px;
    margin: 2px;
    min-height: 20px;
}

.hahmoTaidotKupla {
    border-radius: 0% 50% 50% 0%;
    border-style: solid;
    width: auto;
}

table {
    /*border-collapse: collapse;
    /*display: block;*/
    border-spacing: 0;
    overflow-x: auto;
    width: auto;
    width: 100%;
    margin-bottom: 5px;
    table-layout: fixed;
}

td {
    padding: 5px;
    border-color: lightgray;
    border-right-style: solid;
    border-top-style: solid;
    border-width: 2px;
    hyphens: auto;
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
    vertical-align: top;
}

tr:nth-child(1) td {
    border-top-style: none;
}

/*tr:nth-child(1) td:nth-child(1){
    width: 20%;
}*/

td:nth-child(2) {
    border-right-style: none;
}

td:nth-child(1) {
    width: 10%;
}

tr {
    border: lightgray;
    border-style: solid;
    border-width: 2px;
}

.NappiNäytä {
    border-radius: 10px;
    background: #9bdfe4;
    box-shadow: inset 5px 5px 10px #3e595b, inset -5px -5px 10px #f8ffff;
}

.nappiKamppanja {
    border-radius: 10px;
    background: #fbdf93;
    box-shadow: inset 5px 5px 10px #64593b, inset -5px -5px 10px #ffffeb;
    width: 100%;
}

.NappiPoista {
    border-radius: 10px;
    background: #fa5757;
    box-shadow: inset 5px 5px 10px #642323, inset -5px -5px 10px #ff8b8b;
}

.NappiVihreä {
    border-radius: 10px;
    background: #8cf3a0;
    box-shadow: inset 5px 5px 10px #386140, inset -5px -5px 10px #e0ffff;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--LF-pohjasininen);
    padding: 10px;
}

    footer p {
        padding: 2px;
        padding-bottom: 6px;
        color: white;
    }



details img {
    width: 90%;
    display: block;
    margin: auto;
}

.overlay {
    position: fixed; /* Sit on top of the page content */
    display: none; /* Hidden by default */
    width: 100%; /* Full width (cover the whole page) */
    height: 100%; /* Full height (cover the whole page) */
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5); /* Black background with opacity */
    z-index: 2; /* Specify a stack order in case you're using a different order for other elements */
    cursor: pointer; /* Add a pointer on hover */
}
.popIkkuna {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 40%;
    border-radius: 10px;
    color: black;
    background-color: white;
    transform: translate(-50%,-50%);
    -ms-transform: translate(-50%,-50%);
    border: 3px solid black;
    z-index: 3;
}

@media only screen and (max-width: 500px) {
    html {
        font-size: 16px;
    }

    .liiteKontti {
        width: 100%;
    }

    .konttiDiv {
        width: 95%;
    }

    td:nth-child(1) {
        width: 30%;
    }

    .NappiNäytä, .NappiVihreä, .NappiPoista {
        width: 45%;
    }

    .konttiDiv img {
        width: 80%;
    }
}
