/* 
   MICROSOFT FRONTPAGE / WINDOWS 98 -ESTETIIKKA 
*/

body {
    background-color: #c0c0c0;
    /* VIITTAUS PAIKALLISEEN KUVAAN: */
    background-image: url('../images/marble.jpg');
    /* Fallback, jos kuvaa ei ole: */
    background-repeat: repeat;
    
    font-family: "Times New Roman", Times, serif;
    color: #000000;
    margin: 0;
    padding: 20px;
    text-align: center;
}

/* Pääkehys */
table.main-layout {
    width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    border: 3px ridge #ffffff;
    box-shadow: 10px 10px 0px rgba(0,0,0,0.2);
}

td {
    padding: 15px;
    vertical-align: top;
}

/* Sivupalkki */
td.sidebar {
    background-color: #d8d8d8;
    width: 180px;
    border-right: 2px groove #ffffff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    text-align: center;
}

/* Pääsisältö */
td.content {
    text-align: center;
    /* VIITTAUS PAIKALLISEEN KUVAAN: */
    background-image: url('../images/bg_paper.png');
}

/* Otsikot */
h1 {
    font-family: 'Arial Black', Arial, sans-serif;
    font-size: 28px;
    color: #000080;
    text-shadow: 2px 2px 0px #aaaaff;
    margin-top: 5px;
    letter-spacing: -1px;
}

h2 {
    font-family: 'Comic Sans MS', sans-serif;
    color: #800000;
    border-bottom: 2px solid #800000;
}

/* Painikkeet */
.nav-button {
    display: block;
    width: 90%;
    margin: 10px auto;
    padding: 5px;
    background-color: #c0c0c0;
    border-top: 2px solid #ffffff;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #000000;
    border-bottom: 2px solid #000000;
    text-decoration: none;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
}

.nav-button:active {
    border-top: 2px solid #000000;
    border-left: 2px solid #000000;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: translate(1px, 1px);
}

a { color: #0000FF; }
a:visited { color: #800080; }

/* 
   3D OKTAEDRI (NOPPA)
*/

.scene {
    width: 160px;
    height: 160px;
    margin: 30px auto;
    perspective: 800px;
    position: relative;
}

.octahedron {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    animation: spin 8s infinite linear;
}

.face {
    position: absolute;
    top: calc(50% - 69.28px);
    left: calc(50% - 40px);
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 69.28px solid rgba(0, 0, 255, 0.6); 
    transform-origin: 50% 100%;
    backface-visibility: visible; 
}

.top-face { border-bottom-color: rgba(60, 60, 255, 0.8); }
.bottom-face { border-bottom-color: rgba(30, 30, 160, 0.8); }

/* Yläpyramidi */
.face:nth-child(1) { transform: rotateY(0deg)   translateZ(40px) rotateX(35.26deg); }
.face:nth-child(2) { transform: rotateY(90deg)  translateZ(40px) rotateX(35.26deg); }
.face:nth-child(3) { transform: rotateY(180deg) translateZ(40px) rotateX(35.26deg); }
.face:nth-child(4) { transform: rotateY(270deg) translateZ(40px) rotateX(35.26deg); }

/* Alapyramidi */
.face:nth-child(5) { transform: rotateY(0deg)   translateZ(40px) rotateX(144.74deg); }
.face:nth-child(6) { transform: rotateY(90deg)  translateZ(40px) rotateX(144.74deg); }
.face:nth-child(7) { transform: rotateY(180deg) translateZ(40px) rotateX(144.74deg); }
.face:nth-child(8) { transform: rotateY(270deg) translateZ(40px) rotateX(144.74deg); }

@keyframes spin {
    0% { transform: rotateX(-10deg) rotateY(0deg); }
    100% { transform: rotateX(-10deg) rotateY(360deg); }
}

/* Retro-elementit */
.marquee-box {
    background-color: #000080;
    border: 2px inset #ffffff;
    color: #ffff00;
    font-family: "Courier New", monospace;
    font-weight: bold;
    padding: 3px;
    margin-bottom: 15px;
}

hr.divider {
    border: 0;
    height: 2px;
    background-image: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
    margin: 20px 0;
}

.counter {
    font-family: monospace;
    background: black;
    color: lime;
    padding: 4px 8px;
    border: 3px inset #808080;
    font-size: 20px;
    letter-spacing: 3px;
    display: inline-block;
}

.construction {
    text-align: center;
    margin-top: 10px;
    color: red;
    font-weight: bold;
    font-family: Impact, sans-serif;
    font-size: 18px;
    border: 2px dashed red;
    padding: 10px;
    background: #ffcccc;
}
