@import "variables.css";

/* Layout container */
#container {
    position: absolute;
    width: 1024px;
    left: 50%;
    margin-left: -512px;
    top: 0;
    background-color: #fff;
    height: auto;
    min-height: 100%;
    -webkit-overflow-scrolling: touch;
}

@media only screen and (max-width: 1024px) {
    #container {
        width: 100%;
        left: 0;
        margin-left: 0;
    }
}

#main {
    position: relative;
    padding: 0;
    width: 447px;
    float: left;
    top: 0;
    left: 320px;
}

@media only screen and (max-width: 1024px) {
    #main {
        width: 100%;
        left: 0;
        top: 48px;
    }
}

#content {
    color: #000;
    padding-left: 8px;
    padding-right: 8px;
    padding-bottom: 32px;
    overflow: hidden;
    line-height: 1.8em;
}


/* Menu on the left */
.main-menu {
    text-transform: uppercase;
    text-align: right;
    line-height: 2.1em;
    color: var(--gray);
}

.main-menu a {
    color: #000;
}

.main-menu a.selected {
    color: var(--gray);
}

/* Menu on the right, depends on context */
.sub-menu {
    color: var(--light-blue);
}

.sub-menu div.row {
    line-height: 1.8em;
}

/* Shared */
.row {
    border-bottom: 1px var(--light-gray) dotted;
}

.red {
    color: red
}

hr {
    border-top: 1px var(--light-gray) dotted;
    border-bottom: 0;
    border-left: 0;
    border-right: 0;
    display: block;
}

/* Forms */
input, button, textarea, select {
    font-family: "courier new", courier, monospace;
    font-size: small;
}

@media only screen and (max-width: 1024px) {
    input, button, textarea, select {
        font-size: 16px;
    }
}

select {
    max-width: 80%;
}

input[type=text],
input[type=email],
input[type=password],
textarea {
    width: 80%;
}

input[type="checkbox"],
input[type="radio"] {
    float: left;
}


/* Devise uses h2 for titles */
/* Rails uses h3 for titles */
h2, h3 {
    font-size: 0.7rem;
}

@media only screen and (max-width: 1024px) {
    h2, h3 {
        font-size: 13px;
    }
}

/* User and date that created record */
.created_by {
    font-style: italic;
    color: var(--gray);
}

/* Make \n break lines */
.wrapped-text {
    white-space: pre-wrap;
}

.hidden {
    display: none;
}

img {
    max-width: 100%;
    background-color: var(--light-gray);
}

.teaser img {
    margin-left: 8px;
    float: right;
}

.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio (divide 9 by 16 = 0.5625) */
    background-color: var(--light-gray);
}

.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

#version-badge {
    text-align: center;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100;
    color: white;
    font-size: 20px;
    transform: rotate(45deg) translate(27.5%, -40%);
    min-width: 200px;
    font-weight: bold;
    font-style: italic;
    box-shadow: 0 2px 2px 1px #1209096e;
    text-shadow: 2px 2px 4px #5400007d;
    background: radial-gradient(circle, rgb(255, 10, 0) 0%, rgb(200, 0, 0) 90%);
}