:root {
    --color-brand: #ff6000;
    --color-brand-light: #ff8a00;
    --color-dark: #101438;
    --color-teal: #304d4e;
    --color-nav-text: #314748;
    --color-bg: #f7f7f7;
    --color-surface: #fafafa;
    --color-border: #e0e0e0;
    --color-danger: #c80000;
    --color-success: #00a904;
    --font-sans: Arial, Helvetica, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: var(--font-sans);
    font-size: 12px;
    line-height: 16px;
    background: url('../images/taustakuva.jpg') fixed bottom left no-repeat var(--color-bg);
    color: #222;
}

img {
    display: block;
    max-width: 100%;
}

/* Links */
a,
a:link,
a:visited,
a:active {
    color: var(--color-brand);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-teal);
}

a:hover {
    color: var(--color-brand);
    text-decoration: none;
    border-bottom: 1px solid var(--color-teal);
}

.vali,
.vali:link,
.vali:visited,
.vali:active {
    color: #666;
    margin: 2px;
    text-decoration: none;
    border: 0;
    font-size: 10px;
    text-shadow: 1px 1px #fff;
}

.vali:hover {
    color: #333;
    text-decoration: none;
    border-bottom: 0;
    font-size: 10px;
    text-shadow: 1px 1px #fff;
}

.kilp,
.kilp:link,
.kilp:visited,
.kilp:active {
    color: var(--color-dark);
    text-decoration: underline;
    font-size: 12px;
    line-height: 14px;
}

.kilp:hover {
    color: var(--color-dark);
    text-decoration: none;
}

.kilpiso,
.kilpiso:link,
.kilpiso:visited,
.kilpiso:active,
.kilpiso:hover {
    color: var(--color-dark);
    text-decoration: none;
    font-size: 16px;
    line-height: 17px;
}

.valilink,
.valilink:link,
.valilink:visited,
.valilink:active {
    color: #fff;
    text-decoration: none;
}

.valilink:hover {
    color: #fff;
    text-decoration: underline;
}

.ylamenu,
.ylamenu:link,
.ylamenu:visited,
.ylamenu:active {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dotted var(--color-brand-light);
}

.ylamenu:hover {
    color: #fff;
    border-bottom: 1px solid var(--color-brand-light);
}

.ylamenu_2,
.ylamenu_2:link,
.ylamenu_2:visited,
.ylamenu_2:active {
    color: #000;
    text-decoration: none;
    border-bottom: 1px dotted var(--color-brand-light);
    font-size: 14px;
}

.ylamenu_2:hover {
    color: #000;
    border-bottom: 1px solid var(--color-brand-light);
    font-size: 14px;
}

.footerlink,
.footerlink:link,
.footerlink:visited,
.footerlink:active {
    color: var(--color-brand);
    text-decoration: none;
    border-bottom: 1px dotted var(--color-teal);
    font-size: 14px;
}

.footerlink:hover {
    color: var(--color-brand);
    border-bottom: 1px solid var(--color-teal);
    font-size: 14px;
}

.pikkulink,
.pikkulink:link,
.pikkulink:visited,
.pikkulink:active {
    color: #fff;
    text-decoration: none;
}

.pikkulink:hover {
    color: #f0f0f0;
    text-decoration: none;
}

/* Site Layout Shell (Header, Main, Footer) */
.site-wrapper {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

.site-header {
    width: 100%;
    color: #000;
    background: url('../images/ylagrad.png') top repeat-x;
    z-index: 10;
}

.site-header-banner {
    height: 147px;
    max-width: 1017px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    background: url('../images/ylatausta.png') top center no-repeat;
}

.site-nav {
    width: 100%;
    margin: 0;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    background: linear-gradient(to bottom, #f7f7f7 0, #f7f7f7 9px, #e6e8e9 27px, #e6e8e9 100%);
    text-align: center;
    padding: 10px 0 6px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.site-main {
    flex: 1 0 auto;
    width: 100%;
    padding-bottom: 40px;
}

.main-columns {
    max-width: 840px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 10px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
}

.main-col-news {
    flex: 1 1 468px;
    max-width: 468px;
}

.main-col-events {
    flex: 0 1 320px;
    width: 320px;
}

.site-footer {
    flex-shrink: 0;
    min-height: 101px;
    width: 100%;
    color: #fff;
    background: url('../images/alatausta.png') top center no-repeat #eee;
    border-top: 1px solid #eee;
}

.site-footer-inner {
    max-width: 870px;
    width: 100%;
    color: #fff;
    font-size: 12px;
    margin: 0 auto;
    padding: 0 10px;
    min-height: 89px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.site-footer-sponsors {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 100px;
    border-right: 1px solid #ddd;
    padding-right: 15px;
}

.site-footer-links {
    flex: 1 1 340px;
    font-size: 11px;
    line-height: 18px;
    min-height: 84px;
    border-left: 1px solid #fff;
    color: #666;
    padding: 16px 0 10px 20px;
    background: url('../images/varjovasen.png') left repeat-y;
}

/* Headings & Page Headers */
h1 {
    font-size: 25px;
    margin: 10px;
    padding: 25px;
    border-bottom: 1px solid #fff;
    background: url('../images/h1tausta.png') center center no-repeat #000;
    font-weight: normal;
    text-align: center;
    text-shadow: 1px 1px 3px #000;
    color: #fff;
    text-transform: uppercase;
}

h2 {
    font-size: 14px;
    color: var(--color-brand);
    margin: 2px;
    padding: 2px;
    border-bottom: 1px dashed #ccc;
}

h3 {
    font-size: 12px;
    line-height: 25px;
    margin: 2px;
    padding: 2px;
}

h4 {
    font-size: 18px;
    margin: 14px 0;
    padding: 12px;
    border-top: 1px solid #fff;
    border-bottom: 1px solid #fff;
    background: url('../images/h1tausta.png') center no-repeat #000;
    font-weight: normal;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 3px #000;
    text-transform: uppercase;
}

h5 {
    font-size: 15px;
    margin: 0;
    padding: 10px;
    font-weight: bold;
    text-align: center;
    color: #666;
    text-shadow: 1px 1px #fff;
    text-transform: uppercase;
}

.otsake {
    font-size: 30px;
    margin: 0;
    text-align: center;
    padding: 50px 25px;
    border-bottom: 1px solid #fff;
    background: url('../images/h1tausta.png') bottom center no-repeat #000;
    font-weight: normal;
    text-shadow: 1px 1px 3px #000;
    color: #fff;
    text-transform: uppercase;
}

.nimiots {
    font-size: 25px;
    font-weight: bold;
    line-height: 28px;
    color: #333;
    text-shadow: 1px 1px #fff;
}

/* Navigation & Menu Items */
.pikkumenu {
    height: 18px;
    float: left;
    padding: 14px;
    text-align: center;
    position: relative;
    left: -30px;
    font-size: 14px;
}

.pikkumenu:hover {
    cursor: pointer;
    background: url('../images/gradient.png') bottom repeat-x;
}

.menut {
    color: #fff;
    font-size: 11px;
    font-weight: bold;
}

.menulink,
.menulink:link,
.menulink:visited,
.menulink:active,
.menucurrent,
.menucurrent:link,
.menucurrent:visited,
.menucurrent:active {
    font-size: 15px;
    line-height: 17px;
    padding: 10px 20px 9px;
    margin: 0;
    border-left: 1px solid #fff;
    border-right: 1px solid #c3c7c8;
    border-bottom: 0;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-block;
}

.menulink,
.menulink:link,
.menulink:visited,
.menulink:active {
    color: var(--color-nav-text);
    text-shadow: 1px 0 #fff, -1px 0 #fff, 0 1px #fff, 0 -1px #fff;
}

.menulink:hover {
    color: var(--color-nav-text);
    border-bottom: 0;
    background: url('../images/menuhover.png') top repeat-x;
}

.menucurrent,
.menucurrent:link,
.menucurrent:visited,
.menucurrent:active,
.menucurrent:hover {
    background: url('../images/currentpage.png') top repeat-x;
    color: #182b2c;
    border-bottom: 0;
    text-shadow: 1px 1px #fad796;
}

.menulink_y,
.menulink_y:link,
.menulink_y:visited,
.menulink_y:active,
.menulink_w {
    color: var(--color-nav-text);
    background: linear-gradient(to bottom, #f7f7f7 25%, #e6e8e9 75%);
    margin: 0;
    white-space: nowrap;
    text-transform: uppercase;
    text-decoration: none;
    border-left: 1px solid #fff;
    border-bottom: 1px solid #c3c7c8;
    border-right: 1px solid #c3c7c8;
    text-shadow: 1px 0 #fff, -1px 0 #fff, 0 1px #fff, 0 -1px #fff;
    cursor: pointer;
    display: inline-block;
}

.menulink_y {
    font-size: 13px;
    line-height: 15px;
    padding: 10px 20px 9px;
}

.menulink_w {
    font-size: 11px;
    line-height: 13px;
    padding: 10px 10px 9px;
}

.menulink_y:hover,
.menulink_w:hover,
.menulink_p:hover {
    color: var(--color-nav-text);
    border-bottom: 1px solid #c3c7c8;
    background: url('../images/menuhover.png') top repeat-x #f0f0f0;
}

.menulink_y.is-active,
.menulink_y.is-active:link,
.menulink_y.is-active:visited,
.menulink_y.is-active:active,
.menulink_y.is-active:hover {
    background: url('../images/currentpage.png') top repeat-x;
    color: #182b2c;
    border-bottom: 1px solid #c3c7c8;
    text-shadow: 1px 1px #fad796;
}

.menulink_t,
.menulink_t:link,
.menulink_t:visited,
.menulink_t:active {
    font-size: 12px;
    color: #fff;
    line-height: 24px;
    padding: 5px 10px 4px;
    text-decoration: none;
    text-transform: uppercase;
    border-top: 0;
    border-bottom: 0;
    border-right: 1px solid #092627;
    border-left: 1px solid #344f51;
    text-shadow: 1px 1px #000;
    cursor: pointer;
}

.menulink_t:hover {
    color: #fff;
    border-bottom: 0;
    background-color: #344f51;
}

.menulink_p {
    font-size: 11px;
    color: var(--color-nav-text);
    line-height: 13px;
    padding: 3px;
    width: 54px;
    float: left;
    margin: 2px;
    background: linear-gradient(to bottom, #f7f7f7 25%, #e6e8e9 75%);
    text-align: center;
    text-transform: uppercase;
    border: 1px solid #c3c7c8;
    outline: 1px solid #fff;
    border-radius: 3px;
    text-shadow: 1px 0 #fff, -1px 0 #fff, 0 1px #fff, 0 -1px #fff;
    cursor: pointer;
}

.editMenu {
    background: url('../images/alatausta.png') top center no-repeat #f5f5f5;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    color: #666;
    text-shadow: 1px 1px #fff;
    line-height: 35px;
    font-size: 12px;
    padding: 10px;
    text-transform: uppercase;
    white-space: nowrap;
}

.editMenu:hover {
    cursor: pointer;
    background-color: #fff;
    color: #333;
}

/* Containers, Cards & Boxes */
.isopoyta {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    padding: 0;
    position: relative;
}

.boxi {
    margin: auto;
    text-align: center;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 3px;
}

.greybox {
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    border-radius: 3px;
}

.content_ala {
    height: 24px;
    background: url('../images/contentalaoikea.png') top right no-repeat;
}

.content_ala_vasen {
    width: 107px;
    height: 24px;
    background: url('../images/contentalavasen.png') top left no-repeat;
}

.headerdiv {
    padding: 5px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    color: var(--color-brand);
}

.footerdiv {
    padding: 5px;
    font-size: 12px;
    border-top: 1px solid #fff;
    text-align: center;
    color: var(--color-brand);
}

.messagediv {
    color: #fff;
    font-size: 18px;
    line-height: 20px;
    z-index: 25;
    background-color: #ff0000;
    text-align: center;
    margin: 5px;
    padding: 5px;
}

.ilmdiv {
    text-align: center;
    font-size: 16px;
    padding: 5px;
    margin: 5px 0;
    background-color: #fff000;
}

/* News Card (Index) */
.news-card {
    margin-bottom: 20px;
    border: 1px solid #cfd6d6;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: -2px 3px 8px rgba(0, 0, 0, 0.14);
    overflow: hidden;
}

.news-card-header {
    padding: 10px 14px;
    background: linear-gradient(to bottom, #445d5e 0%, #253333 100%);
    border-bottom: 1px solid #222f30;
}

.news-card-title {
    padding-bottom: 6px;
    border-bottom: 1px solid #222f30;
    font-size: 16px;
    line-height: 1.35;
    color: #fff;
    text-shadow: 1px 1px #000;
}

.news-card-meta {
    padding-top: 5px;
    border-top: 1px solid #626e6f;
    font-size: 11px;
    line-height: 14px;
    color: #fff;
    text-shadow: 1px 1px #000;
}

.news-card-meta a,
.news-card-meta a:link,
.news-card-meta a:visited,
.news-card-meta a:active {
    border-bottom: 0;
    margin-right: 8px;
}

.news-card-body {
    padding: 15px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: #253333;
    background-color: #fff;
    overflow-wrap: break-word;
}

/* Forms, Inputs & Buttons */
.inputvasen {
    clear: both;
    float: left;
    background: url('../images/inputvasen.png') center right no-repeat;
    width: 12px;
    height: 43px;
}

.inputkeski {
    float: left;
    background: url('../images/inputkeski.png') center repeat-x;
    height: 43px;
}

.inputoikea {
    float: left;
    background: url('../images/inputoikea.png') center left no-repeat;
    width: 12px;
    height: 43px;
}

.textareayla {
    background: url('../images/textareayla.png') center bottom no-repeat;
    width: 300px;
    height: 21px;
}

.textareaala {
    background: url('../images/textareaala.png') center top no-repeat;
    width: 300px;
    height: 21px;
}

.textareakeski {
    background: url('../images/textareakeski.png') center repeat-y;
    width: 300px;
}

.textareayla_iso {
    background: url('../images/textareayla_iso.png') center bottom no-repeat;
    width: 600px;
    height: 21px;
}

.textareaala_iso {
    background: url('../images/textareaala_iso.png') center top no-repeat;
    width: 600px;
    height: 21px;
}

.textareakeski_iso {
    background: url('../images/textareakeski_iso.png') center repeat-y;
    width: 600px;
}

.inputti {
    margin-top: 12px;
    font-size: 15px;
    border: 0;
    background: transparent;
    width: 150px;
    color: var(--color-teal);
}

.inputti_up {
    font-size: 15px;
    padding: 3px;
    margin: 2px;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 150px;
    color: var(--color-teal);
    background-color: #fff;
}

.textareainputti {
    margin: 0 12px;
    font-size: 15px;
    border: 0;
    background: none;
    color: var(--color-teal);
}

.nappi {
    border: 1px solid #ccc;
    background-color: #eee;
    height: 35px;
    line-height: 33px;
    text-align: center;
    color: #444;
    text-shadow: 1px 1px #fff;
    font-size: 16px;
    padding: 0 10px;
    margin: 5px;
    border-radius: 3px;
    cursor: pointer;
}

.nappi:hover {
    background-color: #f6f6f6;
}

.nappi:disabled,
.nappi:disabled:hover {
    opacity: 0.4;
    background-color: #ccc;
    cursor: not-allowed;
}

.napit {
    background: #f6f6f9 url('../images/gradient.jpg') center repeat-x;
    font-size: 10px;
    border: 1px solid var(--color-dark);
    color: var(--color-dark);
}

.napita {
    width: auto;
    height: 13px;
    padding: 3px;
    margin: 3px;
    display: inline;
    border: 1px solid #eee;
    border-radius: 3px;
    background-color: #f5f5f6;
    font-size: 11px;
    color: #b7b7b7;
}

.napita:hover {
    background-color: #fff;
}

.napita_btn {
    background-color: #ddd;
    border: 1px solid #ccc;
    border-radius: 3px;
    width: 71px;
    height: 23px;
    padding: 3px;
    margin: 3px;
    text-align: center;
    display: inline;
    font-size: 11px;
    color: #333;
    text-shadow: 1px 1px #fff;
    cursor: pointer;
}

.napita_btn:hover {
    background-color: #d5d5d5;
}

/* Checkboxes */
label {
    display: inline;
}

.regular-checkbox {
    appearance: none;
    background-color: #fafafa;
    border: 1px solid #cacece;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 -15px 10px -12px rgba(0, 0, 0, 0.05);
    padding: 9px;
    border-radius: 3px;
    display: inline-block;
    position: relative;
}

.regular-checkbox + label {
    background-color: #fafafa;
    border: 1px solid #cacece;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0 -15px 10px -12px rgba(0, 0, 0, 0.05);
    padding: 18px;
    border-radius: 3px;
    display: inline-block;
    position: relative;
}

.regular-checkbox:checked,
.regular-checkbox:checked + label {
    background-color: #e9ecee;
    border: 1px solid #adb8c0;
    color: #99a1a7;
}

.regular-checkbox:checked::after {
    content: '\2714';
    font-size: 14px;
    position: absolute;
    top: 0;
    left: 3px;
    color: #99a1a7;
}

.regular-checkbox:checked + label::after {
    content: '\2714';
    font-size: 28px;
    left: 6px;
    position: absolute;
    top: 8px;
    color: #99a1a7;
}

.big-checkbox {
    padding: 18px;
}

.big-checkbox:checked::after {
    font-size: 28px;
    left: 6px;
}

/* Info Page: Black Belts & Judges */
.blacks {
    text-align: center;
    width: 178px;
    min-height: 220px;
    padding: 10px;
    margin: 10px;
    float: left;
    font-size: 13px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #bbb;
    border-top-color: #ddd;
    border-left-color: #ddd;
    box-shadow: 1px 1px #fff;
}

.blacks nimi {
    font-size: 14px;
    display: block;
    font-weight: bold;
}

.blacks seura,
.blacks antaja {
    font-size: 12px;
    display: block;
}

.blacks pvm {
    font-size: 11px;
    display: block;
}

.blacks img {
    font-size: 14px;
    display: block;
    margin: auto;
    padding: 5px;
    border-radius: 12px;
}

.vuosi {
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: auto;
    float: none;
    height: auto;
    min-height: 0;
    margin-bottom: 0;
    clear: both;
}

.tunarit {
    text-align: center;
    float: left;
    width: 146px;
    min-height: 27px;
    margin: 2px;
    padding: 2px;
    line-height: 23px;
    font-size: 12px;
    background-color: #fff;
    border: 1px solid var(--color-border);
    border-radius: 3px;
}

.tunarit.inactive {
    opacity: 0.3;
}

.tunarit.inactive::after {
    content: '¹';
    vertical-align: super;
    color: red;
}

.tunaritSelitys {
    text-align: center;
    margin: 5px;
}

.tunaritSelitys::before {
    content: '¹';
    vertical-align: super;
    color: red;
}

/* Public Files List */
.tiedostot {
    text-align: left;
    padding: 15px;
    border: 1px solid #fff;
}

.tiedostot:hover {
    cursor: pointer;
    background-color: #f4f4f4;
    border: 1px solid #ccc;
}

.tied_ots {
    font-size: 12px;
    line-height: 14px;
    margin: 12px 0 2px;
}

.tied_kuv {
    font-size: 14px;
    text-shadow: 1px 1px #fff;
}

/* Academies & Rankings */
.seura {
    border: 1px solid #c3c7c8;
    background: url('../images/seuratausta.png') bottom repeat-x #f8f8f8;
    border-radius: 3px;
    height: 158px;
    width: 128px;
    float: left;
    margin: 5px;
    text-align: center;
    padding: 4px;
    font-size: 10px;
    line-height: 12px;
    color: var(--color-dark);
}

.seura:hover {
    cursor: pointer;
    background-color: #f4f4f4;
}

.omai {
    font-size: 11px;
    line-height: 12px;
    color: var(--color-dark);
}

.omait {
    font-size: 12px;
    line-height: 13px;
    font-weight: bold;
    color: var(--color-dark);
}

.open_user {
    color: #666;
    font-size: 12px;
    padding: 5px;
    margin: 5px 0;
    border: 1px solid #ccc;
    text-shadow: 1px 1px #fff;
    cursor: pointer;
}

.open_user:hover {
    background-color: #fff;
}

.otsat {
    font-size: 10px;
    line-height: 10px;
    color: var(--color-dark);
}

.vari {
    font-size: 10px;
    line-height: 10px;
    color: var(--color-dark);
    border-left: 1px dotted #d9e2ea;
    border-right: 1px dotted #d9e2ea;
    border-top: 1px solid #d9e2ea;
    border-bottom: 1px solid #d9e2ea;
}

.nimet {
    font-size: 10px;
    line-height: 10px;
    color: var(--color-dark);
    border-top: 1px solid #d9e2ea;
    border-right: 1px dotted #d9e2ea;
    border-bottom: 1px solid #d9e2ea;
}

.ranking {
    font-size: 10px;
    line-height: 10px;
    color: var(--color-dark);
    border-top: 1px solid #d9e2ea;
    border-left: 1px solid #d9e2ea;
    border-bottom: 1px solid #d9e2ea;
}

/* Events & Competitions */
.edit_tap {
    margin: auto;
    text-align: center;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    width: 270px;
    padding: 10px;
    color: var(--color-teal);
    font-size: 14px;
}

.edit_tap:hover {
    cursor: pointer;
    background-color: #fff;
}

.teksti {
    margin: 20px;
    color: var(--color-teal);
}

.lipeukaloylos {
    background: url('../images/peukaloylos.png') left top no-repeat;
    margin: 5px;
    padding-left: 16px;
}

.lipeukaloalas {
    background: url('../images/peukaloalas.png') left top no-repeat;
    margin: 5px;
    padding-left: 16px;
    color: #ff0000;
}

.uusitapahtumavasen {
    text-align: right;
    width: 300px;
    padding: 10px 5px;
    border-right: 1px solid #eee;
    margin: 5px 0;
    float: left;
}

.uusitapahtumaoikea {
    text-align: left;
    border-left: 1px solid #fff;
    width: 430px;
    padding: 10px 5px;
    margin: 5px 0;
    float: left;
}

.karttapaluu {
    position: absolute;
    height: 25px;
    width: 100px;
    border-radius: 3px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    top: -15px;
    left: 20px;
    z-index: 0;
    text-align: center;
    cursor: pointer;
}

.karttapaluu:hover {
    background-color: #fff;
}

.omatvasen {
    width: 260px;
    text-align: right;
    padding: 5px;
    margin: 5px;
    float: left;
    font-size: 12px;
}

.omatoikea {
    width: 260px;
    text-align: left;
    padding: 5px;
    margin: 5px;
    float: left;
    font-weight: bold;
    font-size: 14px;
}

.taptai,
.virallinenkilpailu {
    background: url('../images/varjoylos.png') bottom repeat-x var(--color-danger);
    margin-left: 10px;
    padding: 3px 10px;
    color: #fff;
    float: left;
    text-align: center;
    font-size: 11px;
}

.kilptai {
    background: url('../images/varjoylos.png') bottom repeat-x var(--color-success);
    margin-left: 20px;
    padding: 3px 10px;
    color: #fff;
    float: left;
    text-align: center;
    font-size: 11px;
}

.tapahtumatots {
    font-size: 18px;
    font-weight: bold;
    padding: 12px;
}

.tapahtumatpvm {
    font-size: 13px;
    padding: 0 5px 5px 12px;
    font-style: italic;
}

.kilpilm {
    padding: 2px 10px 3px;
    color: #fff;
    text-shadow: 1px 1px #000;
    white-space: nowrap;
    font-size: 12px;
    line-height: 20px;
    border-right: 1px solid #405d5f;
    border-left: 1px solid #092627;
    text-align: center;
}

.sbjjllogotaus {
    width: 72px;
    height: 72px;
    padding: 6px;
    border-right: 1px solid #1e3031;
    background: url('../images/sbjjl_logo.png') center no-repeat;
    float: left;
}

.tapmuut {
    width: 587px;
    padding-top: 6px;
    min-height: 72px;
    border-left: 1px solid #405d5f;
    float: left;
}

.kokotapahtuma {
    max-width: 700px;
    width: 100%;
    margin: auto;
}

.tapahtumatdiv {
    max-width: 680px;
    width: 100%;
    margin: auto;
    background: url('../images/tapahtumattausta.png') bottom repeat-x #2f4c4d;
    color: #fff;
    text-shadow: 1px 1px #000;
    font-size: 12px;
    border-radius: 3px;
    cursor: pointer;
}

.tapahtumatdiv:hover {
    background: url('../images/tapahtumattausta_hover.png') bottom repeat-x #365253;
}

.sarjat,
.valmiit {
    background: url('../images/alatausta.png') top center no-repeat #eee;
    border: 1px solid #eee;
    outline: 1px solid #fff;
    color: #666;
    text-shadow: 1px 1px #fff;
    border-radius: 3px;
    text-align: center;
    font-size: 14px;
    float: left;
    padding: 5px;
    margin: 5px;
}

.sarjat {
    width: 170px;
}

.valmiit {
    width: 230px;
    cursor: pointer;
}

.valmiit:hover {
    background-color: #fff;
}

.plussa {
    color: #00ff00;
    font-size: 14px;
    font-weight: bold;
    border: 1px solid #eee;
    background-color: #f5f5f5;
    border-radius: 3px;
    width: 22px;
    padding: 2px;
    margin: 2px;
    height: 22px;
    line-height: 18px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
}

.plussa:hover {
    background-color: #fff;
}

.painoluokat,
.painosarjat {
    color: #666;
    text-shadow: 1px 1px #fff;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #eee;
    border-radius: 3px;
    padding: 2px;
    margin: 4px;
    min-height: 24px;
    text-align: center;
    cursor: pointer;
}

.painoluokat {
    width: 64px;
    float: left;
}

.painoluokat:hover,
.painosarjat:hover {
    background-color: #fff;
}

.sarjavali {
    background-color: #fff;
    border: 1px dotted #eee;
    border-radius: 3px;
    cursor: pointer;
}

.sarjavali:hover {
    background-color: #eee;
}

.tablecellhead {
    float: left;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin: 2px 2px 5px;
    padding: 5px;
    font-size: 12px;
}

.tablecell {
    float: left;
    overflow: hidden;
    min-height: 28px;
    vertical-align: middle;
    border: 1px dotted #f4f4f4;
    background-color: #fff;
    border-radius: 3px;
    margin: 2px 2px 5px;
    padding: 5px;
    font-size: 12px;
}

.rivi {
    clear: both;
    width: 300px;
    font-size: 12px;
    float: left;
    margin: 1px 0;
}

.rivisumma {
    width: 50px;
    font-size: 12px;
    text-align: right;
    float: left;
    margin: 1px 0;
}

/* Competition Results & Medals */
.v_tulokset {
    width: 300px;
    float: left;
    margin: 10px;
    min-height: 265px;
    color: #333;
}

.v_sarja {
    font-size: 15px;
    color: #333;
    margin-bottom: 10px;
    border-bottom: 1px solid #bbb;
    text-transform: uppercase;
    text-align: left;
    font-weight: 300;
    height: 50px;
    position: relative;
}

.v_sarja div {
    position: absolute;
    width: 100%;
    padding: 15px 5px 5px;
    left: 0;
    bottom: 0;
}

.v_mitalistit {
    min-height: 50px;
    font-size: 14px;
    padding-left: 75px;
}

.v_mitalistit .v_nimi {
    padding-top: 7px;
}

.v_mitalistit.v_kulta {
    background: url('../images/mitali_kulta.png') left center no-repeat;
    font-size: 1.8em;
}

.v_mitalistit.v_hopea {
    background: url('../images/mitali_hopea.png') left center no-repeat;
    font-size: 1.4em;
}

.v_mitalistit.v_pronssi {
    background: url('../images/mitali_pronssi.png') left center no-repeat;
}

.v_mitalistit .v_seura {
    color: #aaa;
    font-size: 12px;
    padding-top: 4px;
    text-shadow: 1px 1px #fff;
}

#tulokset h5 {
    padding: 40px 10px 10px;
    font-size: 30px;
    font-weight: normal;
    border: 0;
    text-shadow: none;
}

.v_tiedot {
    font-size: 12px;
    width: 300px;
    float: left;
    text-align: left;
    border-right: 1px solid #ccc;
    padding: 15px;
    margin: 10px;
}

/* Member Account Stipends & Team Cards */
.stipendi {
    margin: 10px;
    padding: 10px 10px 10px 120px;
    color: #eee;
    text-shadow: 1px 1px #111;
    min-height: 120px;
    background: url('../images/palkinto.png') 10px center no-repeat;
    border-radius: 4px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    cursor: pointer;
}

.stipendi:hover {
    z-index: 10;
    box-shadow: 1px 1px 8px #000;
    transform: scale(1.05);
}

.stipendi h1 {
    font-size: 20px;
    font-weight: bold;
    background: none;
    margin: 0;
    padding: 8px 0;
    border: 0;
    text-align: left;
}

.kortti {
    font-size: 12px;
    width: 216px;
    padding: 8px;
    margin: 5px;
    border: 1px solid #000;
    float: left;
    break-inside: avoid;
}

.ruutu {
    border: 1px solid #000;
    width: 20px;
    height: 20px;
    margin-right: 5px;
    margin-bottom: 2px;
    display: inline-block;
    vertical-align: middle;
}

/* Responsive Design */
@media (max-width: 860px) {
    .isopoyta,
    .kokotapahtuma,
    .tapahtumatdiv {
        width: 96% !important;
        max-width: 96% !important;
    }

    .tapmuut {
        width: calc(100% - 75px);
    }

    .site-nav {
        padding: 4px;
    }

    .menulink,
    .menucurrent {
        padding: 8px 12px;
        font-size: 13px;
    }

    .site-footer-sponsors {
        border-right: 0;
        justify-content: center;
        width: 100%;
    }

    .site-footer-links {
        border-left: 0;
        background: none;
        width: 100%;
        text-align: center;
        padding: 10px;
    }

    .uusitapahtumavasen,
    .uusitapahtumaoikea,
    .omatvasen,
    .omatoikea {
        width: 100%;
        text-align: left;
        border: 0;
        float: none;
    }
}
