/* #region Koko Sivu */
:root {
    --fontti: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-family: var(--fontti);
}

body {
    user-select: none;
    background-color: hsl(0, 0%, 10%);
    color: hsl(0, 0%, 90%);
    margin: 0;
    width: 100vw;
    height: 100vh;
}

#jako {
    width: 100%;
    height: inherit;
    display: grid;
    position: absolute;
}

.jako {
    grid-template-columns: 2fr 1fr;
}

.osio {
    position: relative;
    width: inherit;
    height: inherit;
}

.rullaus {
    height: inherit;
    overflow-y: auto;
    scrollbar-width: thin;
}

.vasen {
    direction: rtl;
}

/* #endregion */

/* #region Vasen puoli */
#kuvat {
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    direction: ltr;
}

.kuva {
    position: relative;
    height: 300px;
    text-align: center;
    align-content: center;
    color: hsl(0, 0%, 90%);
}

.kuva:hover {
    background-color: hsl(0, 0%, 15%);
    border-radius: 10px;
    cursor: pointer;
}

.kuva img {
    max-width: calc(100% - 20px);
    max-height: 200px;
    border-radius: 5px;
    pointer-events: none;
}

#suurennos {
    position: absolute;
    width: 100%;
    left: 0;
    height: inherit;
    top: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    direction: ltr;
    display: none;
}

#suurennos img {
    position: relative;
    display: block;
    max-width: calc(100% - 100px);
    max-height: calc(100% - 20ch);
    margin: 0 auto;
    object-fit: contain;
    border-radius: 10px;
    border: 5px solid hsl(0, 0%, 70%);
    pointer-events: none;
}

.matala {
    max-height: calc(60% - 100px) !important;
}

#latausnappi {
    position: relative;
    display: inline-block;
    width: 200px;
    z-index: 1;
    margin: auto;
    margin-top: 20px;
    text-align: center;
    color: hsl(0, 0%, 10%);
    background-color: hsl(0, 0%, 90%);
    padding: 10px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
}

#latausnappi:hover {
    background-color: hsl(210, 30%, 75%);
}

.tausta {
    background-color: hsla(0, 0%, 10%, 0.9);
    position: absolute;
    top: 0;
    left: 0;
    width: inherit;
    height: inherit;
}

#avaakori {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    background-color: hsl(0, 0%, 20%);
    color: white;
    z-index: 2;
}

#avaakori:hover {
    background-color: hsl(0, 0%, 25%);
    cursor: pointer;
}

.korinappi {
    position: absolute;
    margin: 10px;
    padding: 5px 10px;
    display: block;
    top: 0;
    cursor: pointer;
}

h2,
h3,
p {
    position: relative;
    color: white;
    text-align: center;
}

h3 {
    font-weight: 300;
}

#verho {
    display: none;
}

/* #endregion */

/* #region Oikea puoli */
#oikeapalkki {
    display: none;
}

#muokkauskupla,
#asiakaskupla {
    display: none;
}

.kupla {
    margin: 20px;
    background-color: hsl(0, 0%, 20%);
    color: hsl(0, 0%, 90%);
    position: relative;
    border-radius: 10px;
    padding: 10px;
}

.ohjausvalikko {
    margin: 0px;
    width: 100%;
}

/* #endregion */

/* #region Info */
#infokupla {
    display: none;
}

.vihreä {
    background-color: hsl(120, 10%, 20%);
    box-shadow: 0 0 10px hsl(120, 50%, 70%);
}

.keltainen {
    background-color: hsl(60, 10%, 20%);
    box-shadow: 0 0 10px hsl(60, 50%, 70%);
}

.punainen {
    background-color: hsl(0, 10%, 20%);
    box-shadow: 0 0 10px hsl(0, 70%, 50%);
}

.sininen {
    background-color: hsl(200, 10%, 20%);
    box-shadow: 0 0 10px hsl(200, 50%, 70%);
}

/* #endregion */

/* #region Tuote */
input:disabled {
    cursor: not-allowed;
}

/* #endregion */

/* #region Kori */
#tilaus {
    margin: 20px;
    width: calc(100% - 40px);
    border-spacing: 0;
}

td {
    min-width: 50px;
    padding: 5px;
}

.trivi {
    position: relative;
}

.trivi:hover {
    background-color: hsl(0, 0%, 25%);
    box-shadow: 0px 2px 3px 5px hsl(0, 0%, 25%);
    border-radius: 5px;
    cursor: pointer;
}

.valinta {
    background-color: hsl(205, 40%, 30%);
    box-shadow: 0px 2px 3px 5px hsl(205, 40%, 30%);
    border-radius: 5px;
    z-index: 1;
}

.oikea {
    text-align: right;
}


.indent {
    width: 20px;
}

.klik {
    padding: 5px;
    cursor: pointer;
}

.keski {
    text-align: center;
}

#yhteystietoihin {
    display: none;
}

/* #endregion */

/* #region Tilaaja */
.boksi {
    position: relative;
    margin: auto;
    margin-top: 40px;
    width: 80%;
}

.bAd {
    margin-top: 30px;
    width: max(25%, 300px);
}

.kapea {
    margin-top: 20px;
}

.label {
    position: absolute;
    top: -25px;
    left: 10px;
}

input,
select,
textarea {
    font-family: var(--fontti);
    width: 100%;
    border-radius: 10px;
    border: none;
    padding: 10px;
    border: 2px transparent solid;
    overflow: hidden;
    background-color: hsl(0, 0%, 30%);
    color: white;
    box-sizing: border-box;
    box-shadow: 2px 2px 3px hsl(0, 0%, 15%);
}

input[type=submit],
input[type=button] {
    cursor: pointer;
    margin-bottom: 30px;
}

input[type=submit]:hover,
input[type=button]:hover {
    background-color: hsl(0, 0%, 35%);
}

input[type=checkbox] {
    appearance: none;
    width: 3ch;
    height: 3ch;
    border-radius: 5px;
    color: white;
    box-sizing: border-box;
    transform: translateY(8px);
}

input[type=checkbox]:checked {
    background-color: hsl(0, 0%, 50%);
}

input[type=checkbox]:checked::before {
    content: '\2713';
    position: absolute;
    left: 0.3rem;
    top: 0.05rem;
}

input:user-invalid {
    border: 2px red solid;
    box-shadow: 1px 1px 5px hsl(0, 100%, 70%);
}

textarea {
    resize: vertical;
    min-height: 6ch;
    max-height: 200px;
}

a {
    color: hsl(0, 0%, 90%);
    text-decoration-thickness: 1px;
}


/* #endregion */

/* #region Kuvatuotteet */
#esittelykupla {
    display: none;
}

/* #endregion */



/* #region Minisovite */
@media (max-width: 1200px) {
    .jako {
        grid-template-columns: 1fr 1fr;
    }
}

/* #endregion */

/* #region Mobiilisovite */
@media (orientation: portrait) {
    .jako {
        grid-template-columns: none;
        grid-template-rows: 1fr 1fr;
        height: 50vh !important;
    }

    .täys {
        height: 100vh !important;
    }

    #suurennos img {
        max-width: calc(100% - 30px);
        max-height: calc(100% - 15ch);
    }

    .indent {
        width: 10px;
    }

    .vasen {
        direction: ltr;
    }

    #oikeapalkki {
        background-color: hsl(0, 0%, 15%);
    }

    .mobiilipiilo {
        display: none;
    }
}

/* #endregion */