:root {
    --primary: 47, 97, 180;
    --secondary: 85, 79, 76;
    --background-color: 238, 238, 238;
}

html {
    overflow-x: hidden;
}

body {
    height: 100%;
    background: rgba(var(--background-color), 1);
    background-repeat: repeat-x;
    background-size: auto;
    margin: 0;
}

/* This is the DIV hierachy:
     #outer
     +-- #vboxstring
     +-- #vboxlinks (all from templates/site_header.html)
     +-- #center (our wrapper, templates/site_header.html)
     .   +...#banner (hidden by us)
     .   .   +-- #header (logo)
     .   .   +-- searchbar (DIV has no ID, but is wrapped in form #search)
     .   .   +-- #metanav (trac barn)
     .   +...#mainnav (trac bar, hidden)
     .   +...#main
     .   .   +-- #ctxtnav (trac bar)
     .   .   +-- #content
     .   .   .   +-- #wikipage
     .   .   .   .   +-- #searchable
     .   .   .   +-- #buttons
     .   .   +-- #altlinks (other formats)
     .   +-- #footer
   +-- #vboxfooter (from templates/site_footer.html)
*/

#logo, #logo:hover, #logo:visited, #logo:link, #logo:link:hover, #logo:visited:hover, #logo img {
    display: block;
    background: transparent !important;
    outline: none !important;
    margin: 0;
    font-size: 0;
    height: 100%;
    width: auto;
    padding: 0 !important;
}

img {
    pointer-events: none;
}

#ctxtnav {
    width: 100vw !important;
    height: 5vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    border-bottom: 1px solid #bbb;
    background-color: white;
    display: flex;
    min-height: 5vh;
    align-items: center;
    justify-content: space-between;
}

#ctxtnav li {
    height: 100%;
    /* padding-top: 1vh; */
    /* padding-bottom: 1vh; */
    color: black !important;
    border: none;
    list-style-type: none;
    margin: 0 1vw 0 1vw;
}

#ctxtnav li > img {
    padding-top: 0.5vw;
    width: 7vw;
}

#ctxtnav li a {
    transition: 0.05s;
    display: flex;
}

#ctxtnav ul li a:hover {
    outline: 4px solid rgba(var(--secondary), 1)
}

#ctxtnav > ul {
    padding: 0;
    font-size: calc(5pt + 0.5vw);
    display: flex;
    align-items: center;
    margin: 0;
    margin-right: 4vw;
    justify-content: flex-end;
}

#logo img {
    color: transparent;
    left:  0;
    padding: 1em;
}

#vboxlinks {
    /* position: absolute; */
    top: 170px;
    left: 20px;
}

#vboxstring {
    position: absolute;
    top: 0;
    left: 230px;
}

.trac-modifiedby, .trac-help {
    display: none;
}

.pathentry {
    display: none;
}

/* within our #outer, #center holds everything else */
#center {
    margin: 0;
    background-image: url('/graphics/patterned-background.png');
    min-height: 90vh;
    padding-top: 6vh;
}

#content {
    width: 100%;
    margin-top: 0;
    padding-top: 2em;
    background-image: url('/graphics/patterned-background.png');
}

.wikipage h1, .wikipage h2, .wikipage h3 {
    margin-left: 0;
    margin-top: 30px;
}

#searchable {
    text-align: justify;
    display: inline-block;
    padding: 0;
    margin: 0;
}

/* The main navigation bar generated by Trac is not vital, but #ctxtnav is useful */
#mainnav {
    display: none;
}

#search {
    display: none;
}

#content.wiki > #attachments {
    display: none;
}

.flexboxes {
    display: flex;
    padding: 2vw 0 2vw 0;
    margin: 1vw 0 1vw 0;
    height: 30vh;
    /* max-height: 30vh; */
    width: 100%;
    align-items: center;
    justify-content: center;
}

#updates {
    height: auto;
}

.flexboxes > p > a > img {
    height: 12.5vw;
}


#pkg-holder {
    display: flex;
    flex-direction: column;
    margin: 0;
    flex-wrap: nowrap;
    height: 90%;
}

#pkg-holder ul {
    margin: 0;
    padding: 0;
    /* padding-top: 0.1vw; */
}

#pkg-holder p {
    height: 1.5vw;
}

#pkg-holder ul li {
    height: 1.5vw;
    max-height: 4vh;
    margin-left: 1.5vw;
}

#pkg-holder ul li a {
    transition: 0.1s;
}

#icon-holder {
    display: flex;
    height: 90%;
    flex-direction: column;
}

#icon-holder img {
    height: 1.3vw;
    max-height: 3.9vh;
    margin: 0.1vw;
    margin-right: -1vw;
}

#icon-holder > img:nth-child(1) {
    visibility: hidden;
}

#license-agreement p {
    text-align: left;
    overflow-y: auto;
    height: 100%;
    margin-top: 1vw;
    padding: 0.5vw;
    background-color: rgba(var(--secondary), 0.1)
}

#license-agreement {
    height: 60%;
}


.flexboxes_vertical {
    display: flex;
    width: 100%;
    background: none !important;
    flex-direction: column;
}

.intro {
    font-size: calc(1em + 1vw);
    font-weight: 600;
    padding: 1% 0 1% 0;
    margin: 0% 5% 2% 0;
    width: 40%;
}

.title {
    height: 10vw;
    width: 100vw;
    padding-bottom: 5vw;
    padding-top: 0;
    background-image: url('/graphics/patterned-background.png');
}

.title .intro {
    margin: 0;
    padding: 0;
    width: 100%;
    text-align: center;
    display: flex;
    padding-top: 5vw;
    flex-direction: column;
    align-items: center;
}

.title .intro p {
    font-size: 1vw;
    width: 80%;
}

.short, .shorter {
    height: 20vw;
    background-color: rgba(var(--secondary));
    background-image: url(/graphics/dark-triangles.png);
    background-size: 50%;
    background-repeat: no-repeat;
    background-position-x: -25vw;
    background-position-y: -0.2vw;
}

.short .flexboxes {
    height: 20vw;
}

.shorter {
    height: 15vw;
}

.shorter .flexboxes {
    height: 15vw;
}

.shorter .dl {
    height: 10vw;
    aspect-ratio: 1 !important;
}

.icons {
    width: 100%;
    flex-direction: row;
    padding: 0;
    margin-bottom: 0;
    height: 14.5vw !important;
}

.short:nth-of-type(even) {
    height: 10vw;
    background-position-x: 75vw;
}

.shorter:nth-of-type(even) {
    background-position-x: 75vw;
}

.short:nth-of-type(even) > .flexboxes {
    height: 10vw;
}

.short:nth-of-type(even) > .flexboxes > .dl {
    height: 5vw;
    text-align: center;
}

.short:nth-of-type(even) > .flexboxes > .dl > p > a {
    font-size: 0.95vw;
    padding: 0.3vw;
}


.intro > p {
    margin: 0.25em 0 0 0;
    font-weight: 500;
    font-size: calc(12pt + 0.5vw);
    margin-bottom: 5%;
}

#wikipage > div.newsflash > b > a {
    color: white;
    background-color: rgba(var(--background-color), 0.3);
}


#wikipage {
    display: flex;
    margin-top: 0;
    padding: 0 0vw 0vw 0vw;
    flex-direction: column;
    align-items: flex-start;
    min-height: 80vh;
}

.box {
    padding: 1.5vw;
    border-radius: 0.5vw !important;
    display: flex;
    flex-direction: column;
    align-items: start;
    font-size: calc(12pt);
    margin: 3%;
    justify-content: space-around;
    margin-top: 0;
    margin-bottom: 0;
}

.dark {
    aspect-ratio: 1 / 1;
    max-height: 90%;
    width: 20%;
    background: rgba(var(--background-color), 1);
    outline: 0.25vw solid rgba(var(--background-color), 0.2);
    color: black !important;
    outline-offset: -0.25vw;
    transition: 0.15s;
}

.dark p {
    margin-bottom: 0;
    margin-top: 0.5vw;
    font-size: calc(0.3em + 0.5vw);
}

.light {
    height: 20vh;
    background: rgba(var(--background-color), 1);
    /* box-shadow: 0.5vw 0.5vw rgba(var(--background-color), 0.2); */
    color: black !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#opener {
    height: auto;
    padding: 0;
}

#opener > .flexboxes > .light {
    min-height: 10vw;
    max-height: 10vh;
    border: 0.35vw solid rgba(var(--primary));
}


.dl {
    width: 40vw;
    justify-content: flex-start;
    height: 17vw;
    transition: 0.15s;
    align-items: center;
}

.dl:hover > img, .dark:hover > img {
    filter: invert(1);
}

.dl ul li a {
    color: rgba(var(--primary), 1);
    font-size: 1vw;
}

.dl ul li a span {
    display: none;
}

.button {
    display: block;
    font-size: 1em;
    font-weight: 600;
    background-color: rgba(var(--primary), 1);
    color: white !important;
    padding: 15%;
    padding-top: 5%;
    padding-bottom: 5%;
    border-radius: 0.5vw !important;
    text-align: center;
    transition: 0.15s;
}

#contributors {
    margin-top: 2vw;
    /* height: 50%; */
    display: flex;
    flex-direction: column;
}

.contributor a {
    width: 30%;
    padding: 2%;
    font-size: 0.5em;
}

#learn-button {
    background-color: rgba(var(--secondary), 1);
}

.light p {
    margin: 0;
    font-size: 1vw;
}

#button-container, #button-container > div {
    height: 15%;
    margin-top: 0.5vw;
    width: 100%;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
}

#button-container > div {
    padding: 0;
    margin: 0;
    width: 50%;
    height: 100%;
    gap: 1vw;
}

.license-button {
    padding: 0.5vw;
    font-size: 1vw;
    display: flex;
    text-align: center;
    height: 100%;
    color: white !important;
    border-radius: 0.2vw;
    background-color: rgba(var(--primary), 1);
    align-items: center;
}

.license-button:hover {
    background-color: rgba(var(--secondary), 1) !important;
}


.light a:hover {
    background-color: rgba(var(--primary), 1);
}

.box img {
    /* margin: 3%; */
    height: 40%;
}

.dl img {
    height: 75%;
}

.intro > p:nth-child(2) {
    color: black;
    font-size: calc(10pt + 0.5vw);
    /* margin-top: 5vh; */
    /* width: 50%; */
}

.box li a {
    color: white;
    font-size: 22px;
    font-weight: 600;
    padding: 5px;
    border-radius: 5px
}

.box li {
    list-style-type: none;
    font-size: calc(0.5em + 0.5vw);
    font-weight: 600;
}

.light li {
    font-size: calc(1em + 0.3vh);
}

.dl li {
    font-size: 1vw;
}

#dark_background {
    background-color: rgba(var(--secondary));
    color: white;
    background-image: url(/graphics/dark-triangles.png);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: -75vw;
    height: 25vh;
}

#dark_background a:hover {
    background-repeat: no-repeat;
    transition: 0.2s ease-in-out;
}

#dark_background a:nth-child(1):hover {
    background-image: url('/graphics/community-background.png');
    background-size: 150%;
    background-position-x: 45%;
}

#dark_background a:nth-child(2):hover {
    background-image: url('/graphics/documentation-background.png');
    background-size: 125%;
    background-position-x: 45%;
}

#dark_background a:nth-child(3):hover {
    background-image: url('/graphics/ol-train.png');
    background-size: 300%;
    background-position-x: 45%;
}


#profile:hover, #logo:hover {
    outline: none !important;
    background: none !important;
    filter: saturate(0);
    transition: 0.2s;
}

#ctxtnav > ul > li.first > a > img {
    height: 2vw;
}

/* formatting section */
body, th, td {
    font-family: Verdana,'Bitstream Vera Sans',sans-serif;
}

h1, h2, h3, h4 {
    font-family: Arial,Helvetica,sans-serif;
    font-weight: bold;
    letter-spacing: .02em;
    text-align: left;
}

h1.section, h2.section, h3.section, h4.section {
    font-family: Arial,Helvetica,sans-serif;
    color: black;
    background: none;
}

h1 :link, h1 :visited, h2 :link, h2 :visited, h3 :link, h3 :visited {
    border: none;
}

h1.section {
    font-size: 32pt;
    font-weight: 600;
    margin: 1.5em 0 0.5em;
    padding: 0;
}

h2.section {
    font-size: 150%;
    border: none;
    margin: 0 0 0.9em;
    padding: 0;
}

h3.section {
    font-size: 1em;
    border: none;
    margin: 0 0 1em;
    padding: 0;
}

td {
    text-align: left;
}

.newsflash ul {
    text-align: left;
}

/* Sets all newsflash items index 3 and later to not display */
.newsflash ul li:nth-child( 3 ) ~ li {
    display: none;
}

.contributor {
    margin-top: 2vh;
    /* height: 25%; */
}

:link, :visited {
    text-decoration: wavy;
    border-bottom: none;
    color: rgba(var(--primary), 1);
}

.flex_screenshot {
    display: flex;
    height: 300px;
    align-items: center;
    justify-content: space-around;
    color: white;
    text-align: center;
    gap: 15px;
    padding: 7px;
}

.flex_screenshot .flexboxes_vertical {
    gap: 15px;
    padding: 20px;
    background-color: rgba(var(--secondary), 1) !important;
    border-radius: 5px;
}

.flex_screenshot .flexboxes_vertical a img {
    height: 200px;
    border: 5px solid white;
}

#wikipage > div > ul > li > a,  #updates > div.newsflash > ul > li > a {
    padding: 0.05vw;
    font-weight: bold;
}

a {
    transition: 0.15s;
}

:link:hover, :visited:hover, .button:hover {
    color: white !important;
    box-shadow: none;
    outline: 2px solid rgba(var(--background-color), 1);
    background-color: rgba(var(--secondary), 1) !important;
}

/* Fix search result hover */
#content #results dt a:hover {
    color: white;
}

.flex_screenshot .flexboxes_vertical a:hover {
    background-color: #aaa;
}

#metanav form.trac-logout button {
    color: #00c;
    border-bottom: 0;
}

#metanav form.trac-logout button:hover {
    background: #00c;
    color: white;
    border-radius: 0;
    box-shadow: 0;
}

/* Then fix search word highlighting again */
@media screen {
 .searchword0 { color: #00c }
 .searchword1 { color: #00c }
 .searchword2 { color: #00c }
 .searchword3 { color: #00c }
 .searchword4 { color: #00c }
}

/* Heading anchors
   These are tricky: These get added via JavaScript when the page is loaded
   (addHeadingLinks, in /usr/share/trac/htdocs/js/trac.js), and are given a
   class of "anchor". We just hide these now.
*/
.anchor {
    display: none;
}


/* this gets rid of the hover on the screenshots */
.screenshot a:hover {
    text-decoration: none;
    background: transparent;
    border-bottom: none;
}

#vboxfooter {
    background-color: rgba(var(--secondary));
    height: 10vh;
    color: white;
    bottom: 0;
    width: 100vw;
    font-size: 1vw;
    display: flex;
    justify-content: center;
    align-items: center;
}

#vboxfooter > p {
    padding: 10px;
    margin: 0;
}

#vboxfooter > p > a {
    border-right: 1px solid rgba(var(--secondary), 1);
    padding-left: 0.5em;
    padding-right: 0.5em;
    color: white;
}

#vboxfooter span {
    background-size: contain !important;
}

#trac-wiki-expander {
    display: none;
}

#vboxlinks {
    /* padding-top: 20px; */
    line-height: 200%;
}

#vboxsearch {
    border: 2px solid rgba(var(--secondary), 0.5);
    border-radius: .25vw;
    color: rgba(var(--secondary), 0.5);
}

#vboxsearch:focus {
    color: black;
}

.newsflash {
    width: 30vw;
    height: auto;
    text-align: center;
}

.newsflash h3 {
    background-color: rgba(var(--background-color), 1);
    font-size: calc(1em + 1vw);
    margin: 0;
    padding: 1%;
    text-align: center;
    margin-bottom: 5%;
}

.newsflash ul {
    list-style: none;
    margin-top: 0;
    padding: 0;
    margin-bottom: 2vw;
    color: black;
    background-color: rgba(var(--background-color), 1);
}

/* Hide generated text from newsflash */
.newsflash > ul > li {
    background-color: rgba(var(--background-color), 1);
    font-size: 0;
    text-align: center;
    padding: 4%;
}

.newsflash > ul > li > b {
    font-size: calc(8pt + 0.5vw);
    font-weight: 800;
    align-items: center;
    display: flex;
    width:  100%;
    height: 100%;
    justify-content: space-around;
}

.newsflash span {
    display: none;
}

/* hide the trac advertising */
#footer, #altlinks {
    display: none;
}
#newticketguide {
    background: #fdc; border: 2px solid #d00; font-style: italic;
    margin: 1em 0; padding: 0 .5em;
}

#vboxstring {
    display: none;
}

b span {
    background-color: rgba(var(--primary), 0.6) !important;
    color: white !important;
    padding: px !important;
}


#WelcometoVirtualBox\.org {
    display: none;
}

@media print {
    body {
        background: #fff;
    }
    body,p,table,td {
        font-size: 10pt !important;
    }
    h1 {
        font-size: 16pt !important;
    }
    #topbar, #topnav, #left, #right {
        display: none; margin: 0;
    }
    #ew-header {
        display: none;
    }
    #ew-content {
        border-left: none;
    }
    #ew-footer {
        background: transparent; border: none;
    }
    #wrapper {
        background: transparent; margin: 0; padding: 0;
    }
    #main {
        background: transparent; width: 100%; margin: 0; padding: 0;
        border-top: 9px solid #b00; border-left: none;
    }
    input[type=submit] {
        display: none;
    }
}
