/* Sivuston tyylit */
/* SISÄLLYSLUETTELO */



/** Perusmääritykset **/
body {
    /* background: #1d1d1d url("../img/bg6.png") repeat;  */
    background-color: #1d1d1d;
    font-size: 20px;
    font-family: "Roboto", Verdana, Helvetica, sans-serif;
}

/* 
Laitetaan footer sivun alalaitaan vaikka sisältöä ei olisi tarpeeksi 
https://kiranworkspace.com/how-to-stick-footer-to-bottom-of-page/
*/ 
.footer-to-bottom {
    display:flex;
    flex-direction:column;
    min-height:100vh;
}

/* 
Laitetaan footer sivun alalaitaan vaikka sisältöä ei olisi tarpeeksi 
https://kiranworkspace.com/how-to-stick-footer-to-bottom-of-page/
*/ 
.wrapper {
    flex:1;
}

/* Header */
header {
    font-family: "Audiowide", "Roboto", Verdana, Helvetica, sans-serif;
}

nav {
    color: #FFFFFF;
}

main {
    background-color: #1d1d1d;
    color: #FFFFFF;
}

footer {
    color: #D7D9CE;
    text-align: center;
    background-color: #040404;
    padding-top: 2em;
    padding-bottom: 1em;
}

h1 {
    color: #cae9ea;
    font-family: "Audiowide", "Roboto", Verdana, Helvetica, sans-serif;
    padding-top: 28px;
    padding-bottom: 16px;
}

h2 {
    color: #cae9ea;
}

a {
    color: #00e600;
}

a:visited {
    color: #00cc00;
}

a:hover {
    color: #b3ffb3;
}

strong {
    letter-spacing: 1px;
}

b {
    letter-spacing: 1px;
}

/* Ylikirjoitetaan container-fluid padding pois */
.container-fluid {
    padding-left: 0px !important;
    padding-right: 0px !important;
}

/* Ei tyyliä listaan */
.ei-list-style {
    list-style-type: none;
}

/* Navigointi */
.nav-item {
    padding-right: 20px;
}

.nav-item.active>.nav-link {
    color: #FFFFFF;
    text-decoration: underline;
}

.nav-item>.nav-link {
    font-size: 2.2em;
    color: #cae9ea;
}

.nav-item>.nav-link:hover {
    color: #208c8c;
}

.header-bg {
    background-color: #040404;
}

#mobile-page-name {
    display: none;
}

.navbar-toggler {
    border-color: #FFFFFF !important;
    border-width: medium;
}

.navbar-toggler:hover {
    /* border-width: thick; */
    /* background-color: #ffffff; */
    border-color: #7dfff8 !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.90%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}


/* Käyttäjäystävällisempi tekstin leveys, joka on helpompi lukea. */
.kapeampi-tekstiosio {
    max-width: 1000px;
    margin: auto;
}

/** Karusellit / Slideshowt **/
/*Karusellin nuolet. Värien vaihto ja muu säätö*/
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E") !important;
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") !important;
}

.carousel-control-prev:hover {
    background-color: rgb(255, 255, 255, 0.3);
}

.carousel-control-next:hover {
    background-color: rgb(255, 255, 255, 0.3);
}


/*Pelit, ohjelmat, mallinnus, yms. esittelyiden slideshow*/
.karuselli-sisalto {
    margin: auto;
}

.karuselli-sisalto>h3 {
    text-align: center;
}

.peli-esittely {
    background-color: #273b40;
    padding: 12px;
    margin-top: 12px;
}

.ohjelmat-esittely {
    background-color: #273b40;
    padding: 12px;
    margin-top: 12px;
}

.mallinnus-esittely {
    background-color: #273b40;
    padding: 12px;
    margin-top: 12px;
}

.muuta-esittely {
    background-color: #273b40;
    padding: 12px;
    margin-top: 12px;
}

/* Etusivun osiot */
.etusivun-osiot {
    padding-top: 3em;
    padding-bottom: 3em;
}

/** Tutkinnon osat esittely **/
.tutkinnonosat-section {
    padding-top: 28px;
    padding-bottom: 36px;
}

.tutkinnonosat-section>h2 {
    margin-bottom: 20px;
}

/* Haitarit tutkinto-sivulla */
.accordion-header>.accordion-button {
    background-color: #040404;
    color: #D7D9CE;
}

.accordion-body {
    background-color: #3c4748;
    color: #D7D9CE;
}

.accordion-button::after {
    /*Jos haluaa vaihtaa haitarin nuolen väriä, niin vaihda tähän OMA_VÄRI kohtaan hex väri ilman #-merkkiä*/
    /*background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23OMA_VÄRI'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !important;*/
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23D7D9CE'><path fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/></svg>") !important; 
}

/* .accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23D7D9CE'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
} */

/* Pakolliset, valinnaiset ja YTOT haitarit eri värisiksi */
#accordionPanelsPakolliset .accordion-item {
    border-color: #5a9e47 !important;
}

#accordionPanelsValinnaiset .accordion-item {
    border-color: #2295c2 !important;
}

#accordionPanelsYTO .accordion-item {
    border-color: #d9b350 !important;
}

/** Info-sivu **/
.info-section {
    padding-bottom: 3em;
}

/*** Tehosteita ja efektejä ***/
/* Tektin glow */
.glow {
    color: #fff;
    text-align: center;
    -webkit-animation: glow 1s ease-in-out infinite alternate;
    -moz-animation: glow 1s ease-in-out infinite alternate;
    animation: glow 1s ease-in-out infinite alternate;
}

@-webkit-keyframes glow {
    from {
        text-shadow: 0 0 1px #fff, 0 0 2px #fff, 0 0 3px #e60073, 0 0 4px #e60073, 0 0 5px #e60073, 0 0 6px #e60073, 0 0 7px #e60073;
    }
    to {
        text-shadow: 0 0 2px #fff, 0 0 3px #ff4da6, 0 0 4px #ff4da6, 0 0 5px #ff4da6, 0 0 6px #ff4da6, 0 0 7px #ff4da6, 0 0 8px #ff4da6;
    }
}

/* Linkkien muotoiluja */
.eperusteet-linkki {
    display: block;
}


/* Väliaikainen väripalettien testaus*/
.vari1 {
    width: 100px;
    height: 100px;
    background-color: #273b40;
}

.vari2 {
    width: 100px;
    height: 100px;
    background-color: #cae9ea;
}

.vari3 {
    width: 100px;
    height: 100px;
    background-color: #1d1d1d;
}

.vari4 {
    width: 100px;
    height: 100px;
    background-color: #3c4748;
}

.vari5 {
    width: 100px;
    height: 100px;
    background-color: #208c8c;
}

.vari11 {
    width: 100px;
    height: 100px;
    background-color: #119DA4;
}

.vari22 {
    width: 100px;
    height: 100px;
    background-color: #0C7489;
}

.vari33 {
    width: 100px;
    height: 100px;
    background-color: #13505B;
}

.vari44 {
    width: 100px;
    height: 100px;
    background-color: #040404;
}

.vari55 {
    width: 100px;
    height: 100px;
    background-color: #D7D9CE;
}

/** Kuvakaruselli **/
#kuvakaruselli {
    margin-top: 24px;
    margin-bottom: 24px;
}

.carousel-indicators [data-bs-target] {
    width: 10px !important;
    height: 10px !important;
    border-radius: 100% !important;
}

/** Sisäiset linkit **/
.sisainenlinkki {
    text-decoration: none;
    font-size: 2em;
    color:#1d1d1d;
}

.sisainenlinkki:visited {
    color:#1d1d1d;
}

.sisainenlinkki:hover {
    color: #208c8c;
}

.sisalinkin-ikoni {
    width: auto;
    height: 40px;
    filter: drop-shadow(0 0 0.30rem rgb(255, 217, 0));
}

#sisalinkkien-section {
    padding-top: 1.5em;
    padding-bottom: 1.5em;
    background-color: #FFFFFF;
}

/** Sectioneiden taustavärit **/
#pelit {
    background-color: #13505B;
}

#ohjelmat {
    background-color: #0C7489;
}

#mallinnus {
    /* background-color: #cae9ea; */
    background-color: #13505B;
}

#muuta {
    /* background-color: #208c8c; */
    background-color: #0C7489;
}

.tutkinnonosat-section {
    background-color: #273b40;
}

/* Erikoisotsikko */
.erikoisotsikko {
    color: #D7D9CE;
    font-family: "Audiowide", "Roboto", Verdana, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 3em;
    -webkit-text-stroke: 1px #000000;
}

/** Videot **/
/* Pelitrailereiden koko */
.pelitraileri {
    max-width: 100%;
}


/* Pyörivä JEDU logo */
.pyorivaKuva {
/*     position: absolute;
    top: 50%;
    left: 50%; 
    width: 120px;
    height: 120px;
    margin:-60px 0 0 -60px; */
    -webkit-animation:spin 10s linear infinite;
    -moz-animation:spin 10s linear infinite;
    animation:spin 10s linear infinite;
}
@-moz-keyframes spin { 100% { -moz-transform: rotate(360deg); } }
@-webkit-keyframes spin { 100% { -webkit-transform: rotate(360deg); } }
@keyframes spin { 100% { -webkit-transform: rotate(360deg); transform:rotate(360deg); } }


/** Scroll to top -nappi **/
#scrollToTopButton {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: rgb(140, 140, 140, 0.5); /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 12px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
    line-height: 1 !important;
}

#scrollToTopButton:hover {
    background-color: rgb(242, 242, 242, 0.5); /* Add a dark-grey background on hover */
    color: #000;
}


/* Lisää brakepointteja. Poista padding reunoilta */




/*Väliaikainen etsi Wallu "peli".*/
#wallu {
    position: fixed;
    width: 128px;
    height: 128px;
    z-index: 5;
}

#wallu-onnea {
    width: 256px;
    height: 256px;
}

#wallu:hover {
    cursor: pointer;
}

#wallu-start {
    position: absolute;
    width: 0px;
    height: 0px;
    z-index: 5;
}

#wallu-form {
    display: none;
    position: fixed;
    top: 25%;
    left: 20%;
    z-index: 5;
    background-color: #d1d1d1;    
    width: 60%;
    border-radius: 5px;
    border: 4px #1d1d1d solid;
    padding-bottom: 20px;
}

#wallu-form > h2 {
    margin-top: 20px;
    margin-left: 12px;
    color: #000;
}

#wallu-form > p {
    margin-left: 12px;
}

#wallu-form > a {
    margin-left: 12px;
    font-size: 20px;
    margin-bottom: 20px;
    border: #757575 solid 2px;
    background-color: #000;
    padding: 4px;
}

#wallu-x {
    float: right;
    font-size: 3em;
    font-weight: bold;
    margin-right: 8px;
}

#wallu-x:hover {
    cursor: pointer;
    font-size: 3em;
    color: #00e600;
}

/* Peeking Wallu */
/* .peek-image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 170px;
    background: url('../img/Maskotti_hary.png') no-repeat center center;
    background-size: cover;
    z-index: 7;
    animation: none;
}

.peek-image:hover {
    cursor: pointer;
}

@keyframes peekLeft {
    0% {
        transform: translateY(100%);
    }
    50% {
        transform: translateY(15%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes peekRight {
    0% {
        transform: translateY(100%);
    }
    50% {
        transform: translateY(15%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes peekTop {
    0% {
        transform: translateY(100%);
    }
    50% {
        transform: translateY(15%);
    }
    100% {
        transform: translateY(100%);
    }
}

@keyframes peekBottom {
    0% {
        transform: translateY(100%);
    }
    50% {
        transform: translateY(15%);
    }
    100% {
        transform: translateY(100%);
    }
} */




/* Responsiivisuus */
@media only screen and (max-width: 992px) {
    body {
        font-size: 16px;
    }

    #mobile-page-name {
        display: block;
    }
}

/* Responsiivisuus */
@media only screen and (max-width: 560px) {
    .row>* {
        padding-right: 0px;
        padding-left: 0px;
    }

    /*Väliaikainen etsi Wallu "peli".*/
    #wallu-form {
        top: 25%;
        left: 5%;
        width: 90%;
    }

    #wallu-form > h2 {
        font-size: 20px;
    }

}

@media only screen and (max-width: 320px) {
    #mobile-page-name {
        display: block;
        font-size: 20px;
    }
}

