html {
    background-color: #87879c;
    background-image: url("/capsu/aaadeco/wallpaper.png");
    background-repeat: repeat;
    background-position: top left;
    background-size: 256px;
    background-attachment: scroll;

    color: #000;
    font-family: 'Trebuchet MS', sans-serif;
    text-align: center;
    font-size: 14px;

    padding: 0px;
    margin: 0px;
    width: 100%;
    height: 100%;
}

body {
    padding: 0px;
    margin: 0px;

    width: 100%;
    height: 100%;
}

h1 {
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 14px;
    padding: 0px;
    margin: 0px;
    padding-top: 4px;
    padding-bottom: 4px;
}

h2 {
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 14px;
    padding: 0px;
    margin: 0px;
    padding-top: 4px;
    padding-bottom: 4px;
}

p {
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 14px;
    text-align: justify;
    padding: 0px;
    margin: 0px;
    padding-bottom: 8px;
}

a {
    color: #2d58b1;
}

hr {
    margin: 16px;
}



#everything {
    width: 100%;
    /* height: 100%;
    overflow-x: hidden;
    overflow-y: scroll; */
}

#columns {
    display: grid; /* I love drigs */
    grid-template-columns: 192px 1fr 192px; /* Sidebars are 1 and main is 2 */
    width: 100%;
    max-width: 1280px;
    margin: auto;
}

#leftcolumn {
    width: 256px;
    margin-right: 64px;
    position: relative;
    z-index: 2;
}

#rightcolumn {
    width: 256px;
    margin-left: -64px;
    position: relative;
    z-index: 2;
}

#centercolumn {
    z-index: 1;
    padding-top: 16px;
    padding-left: 64px;
    padding-right: 64px;
    padding-bottom: 64px;
    height: fit-content;
    margin-bottom: 128px;
}

.side {
    position: relative;
    top: 16px;
    margin: 16px;
    padding: 16px;
    /* border: outset 4px #ccd; */

}

.box {
    background: #dde;
    box-shadow: 0px 2px 2px #0008;

    background-image: url("/capsu/aaadeco/background.png");
    background-repeat: repeat-x;
    background-position: bottom left;
    background-size: 128px 50%;
    background-attachment: scroll;

    border-style: solid;
    border-width: 8px;
    border-image-source: url("/capsu/aaadeco/border.png");
    border-image-slice: 18 18 18 18;
    border-image-repeat: stretch;
    border-image-outset: 0px 0px 0px 0px;
}





.header {
    color: #000;

    width: 1024px;
    height: 192px;
    max-width: 100%;
    margin: auto;
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 0px;

    /* padding-left: 64px;
    padding-right: 64px; */

    box-sizing: content-box;

    background-image: url("/capsu/aaadeco/header.png");
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    background-size: auto 192px;
    background-clip: padding-box;
    background-position: right center;

    display: grid;
    grid-template-columns: 1fr 448px;
    grid-template-rows: 160px 32px;
    gap: 0;
}

#titleimg {
    padding-top: 16px;
    max-height: 128px;
    max-width: 100%;
    grid-column-start: 1;
    grid-column-end: 1;
}

#subtitle {
    display: flex;
    width: 100%;
    grid-column: span 2;
}

marquee {
    height: 32px;
    font-size: 0;
}

#subtitletext {
    display: inline-flex; 
    align-items: center;

    height: 32px;
    padding: 0px;
    padding-left: 8px;
    padding-right: 8px;
    margin: 0px;
    font-size: 14px;

    background-image: url("/capsu/aaadeco/marquee_bg.png");
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    background-size: 32px;
    background-position: center center;
    background-clip: padding-box;
    background-repeat: repeat-x;

    vertical-align: middle;
}

.subtitletip {
    display: inline-block;
    height: 32px;
    padding: 0px;
    margin: 0px;
    object-fit: fill;

    vertical-align: middle;
}

marquee {
    flex-grow: 1;
}





#counter {
    padding-top: 16px;

    grid-column-start: 2;
    grid-column-end: 2;

    display: inline-grid;
    grid-template-columns: 48px 1fr 48px;
    grid-template-rows: 64px 64px;
    gap: 0;
}

.counter-number {
    width: 48px;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    margin-right: -16px;
    margin-top: -8px;
}

.counter-ending {
    width: 48px;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    grid-row: span 2;
    /* grid-row-start: 1;
    grid-row-end: 2; */
}

#counter-banner {
    height: 64px;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    background-image: url("/capsu/counter/count_bg.png");
    background-size: 64px;
}

#counter-text {
    height: 64px;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
}





#bar {
    background-color: #000;
    color: #fff;

    border-left: double;
    border-right: double;
    border-bottom: double;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    border-color: #fff;
    border-width: 4px;

    width: 1024px;
    max-width: 100%;
    height: 20px;
    margin: auto;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 0px;
}

.barlink {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
}

.barlink:hover {
    color: #f00;
}





.mainlink {
    border-style: ridge;
    border-width: 4px;
    border-radius: 16px;
    border-color: #c42d2d;

    background-color: #2d58b1;

    display: flex;
    margin-top: 16px;
    margin-bottom: 16px;
}
.mainlink img {
    display: block;

    height: 96px;
    width: 96px;
    min-height: 96px;
    min-width: 96px;
    object-fit: contain;
}
.mainlinkleft img {
    position: relative;
    left: -48px;
}

.mainlinktext a {
    color: #fff;
}
.mainlinktext p {
    color: #fff;
}

.mainlinkleft {
    padding-right: 16px;
    margin-left: 48px;
    border-left: none;
}
.mainlinkright {
    padding-left: 16px;
    margin-right: 48px;
    border-right: none;
}
.mainlinkright img {
    position: relative;
    left: 48px;
}
.mainlinktext {
    display: block;
    width: 100%;
}



.archivelink {
    border-style: solid;
    border-width: 8px;
    border-image-source: url("/capsu/aaadeco/spiky.png");
    border-image-slice: 8 8 8 8 fill;
    border-image-repeat: repeat;

    width: 208px; 
    height: 240px;

    margin-top: 16px;

    display: inline-block;
}
.archivelink img {
    width: 128px; 
}
.archivelink p {
    margin-left: 8px;
    margin-right: 8px;
}





.interview {
    border: solid #b00 2px;
    background-color: #fff;

    width: 512px;
    max-width: 100%;
    padding: 16px;
    margin: auto;
}
.interview-er {
    color: #66b;
}
.interview-name {
    color: #b00;
    font-weight: bold;
}
.interview-note {
    font-size: 12px;
    text-align: center;
}





@media (max-width: 1024px) {
    #columns {
        grid-template-columns: 1fr;
        width: 768px;
        max-width: 100%;
    }

    #leftcolumn,
    #rightcolumn {
        display: none;
    }

    .tab-hed {
        display: none;
    }

    .tabletabs label {
        display: inline-block;
    }

    .col-1,
    .col-2 {
        display: none;
    }

    #tab-1:checked ~ table .col-1 {
        display: table-cell;
    }

    #tab-2:checked ~ table .col-2 {
        display: table-cell;
    }
}

@media (max-width: 512px) {
    #centercolumn {
        padding: 16px;
    }
}