/* MedlemsDB2
 * ITK, Studentersamfundet i Trondhjem 2008
 */

:root {
	--color-primary: #932822;
	--color-secondary: #53687e;
}

html {
	box-sizing: border-box;
}

body {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font-family: arial, helvetica, clean, sans-serif;
	margin: 0;
}

h1 {
	font-size: xx-large;
	font-weight: bold;
	margin: 0.5em;
}

h2 {
	font-size: x-large;
	font-weight: bold;
}

h3 {
	font-size: large;
	font-weight: bold;
}

h1,
h2 {
	margin-bottom: 0.5em;
	font-weight: bold;
}

h1,
h2,
h3 {
	margin-left: 0;
	margin-right: 0;
    line-height: 1.2;
}

p,
table,
ul,
ol {
	margin-bottom: 1em;
  	margin-top: 0;
}

ul {
	padding-left: 1em;
}

* {
    line-height: 1.4;
}

dd {
	margin-left: 0.7em;
	margin-bottom: 0.3em;
}

table {
	border-right: 0;
	border-collapse: collapse;
	text-align: left;
 	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

thead {
	border-block-end: 2px solid;
}

caption {
	text-align: left;
}

th,
td {
	border: 1px solid #babdb6;
	padding: 0.2em;
}

th {
	background: rgb(230, 230, 230);
	font-weight: bold;
}

th a {
	text-decoration: underline;
}

table.list tr.odd {
	background: #EEEEEC;
}

table.list tr:hover {
	background: rgb(255, 255, 200);
}

td.shrink {
	width: 1px;
}

.collapse-indicator {
	font-weight: bold;
	padding-right: 4px;
	cursor: pointer;
}

a {
	color: #204a87;
	text-decoration: underline;
}

a:hover {
	text-decoration: none;
}

hr {
	background: #ececec;
	border: 0;
	height: 1px;
	margin: 1em 0;
}

select {
	background: #FFF;
}

option.optgroup {
	color: #000;
}

.required {
	color: #CC0000;
}

.number {
	text-align: right;
	padding-left: 1em;
	padding-right: 0.5em;
}

.disabled {
	text-decoration: line-through;
}

.secondary {
	font-style: italic;
}

.outdated {
	color: gray;
}

.group-nav-box,
.nokkelstatistikk {
	margin: 0.5em;
	padding: 0.5em;
	width: auto;
	max-width: 40%;
	border: 1px dotted #babdb6;
	float: right;
	text-align: center;
	background: #F9F9F9;
}

.nokkelstatistikk table td {
	text-align: right;
	padding-left: 30px;
}

.nokkelstatistikk table th {
	padding-right: 20px;
}

.error {
	color: rgb(220, 0, 0);
}

.applied {
	color: rgb(0, 180, 0);
}

.ballot-success {
	border: 1px solid black;
	background: rgb(33, 147, 41);
	padding: 0.5em;
}

.ballot-failure {
	border: 1px solid black;
	background: rgb(220, 0, 0);
	padding: 0.5em;
}

ul.error,
ol.error,
ul.notice,
ol.notice,
ul.success,
ol.success {
	list-style-position: inside;
}

td.error {
	background: inherit;
	border: 1px solid #babdb6;
	color: rgb(220, 0, 0);
}

td.error a {
	color: rgb(220, 0, 0);
	text-decoration: underline;
}

#container {
	min-height: 100%;
	margin: 3em;
	padding: 0;
	margin: 0;
}

header {
	background-color: var(--color-primary);
	padding: 1em 0;
	display: flex;
	justify-content: center;
	align-items: center;
}

header img {
	max-width: 100%;
	height: 1em;
}

#vote_link {
	font-size: large;
	font-weight: bold;
}

main {
	flex: 1;
	display: flex;
	flex-direction: column;
}

footer {
	background: var(--color-primary);
	color: white;
	padding: 1rem  0;
	display: flex; 
	width: 100%;
	flex-direction: column;
	justify-content: center;
}

footer a {
	color: #ee9900;
}

footer > p {
	max-width: 100%;
}

#menu {
	display: flex;
	background: #EEEEEC;
	padding: 0.2em 0;
	border-bottom: 1px solid #D3D7CF;
}

#menu .odd {
	background: #D3D7CF;
}

#menu span {
	padding: 0.2em 0.5em;
}

#warning {
	padding: 1em;
	border: 1px solid #babdb6;
	background: #e6e6e6;
	margin-bottom: 1rem;
}

.left {
	float: left;
	margin-right: 0.5em;
}

.right {
	float: right;
	margin-left: 0.5em;
}

.safe_key {
	background: #9f6;
}

.lost_key {
	background: #f55;
}

.broken_key {
	background: #ccc;
}

option.singlecampus {
	font-weight: bolder;
}

.nowrap {
	white-space: nowrap;
}

 form.flex {
	display: flex;
	flex-direction: column;
}

form.slim {
	width: 40%;
}

form.grid {
	display: grid;
	grid-template-columns: 1fr;
	max-width: 80ch;
}

form.grid>label {
	margin-top: 0.5em;
	font-size: 1.5em;
}

form.grid>input,
form.grid>select,
form.grid>p {
	margin-bottom: 0.5em;
	font-size: 1.5em;
}

form.grid>input[type=submit] {
	margin-top: 0.5em;
}

div.flex {
	display: flex;
	flex-flow: column nowrap;
}

.successBox {
	background: green;
	color: white;
	font-size: 2em;
	padding: 2em;
	transition: all 5s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

.successBox.hide {
	background: transparent;
	color: transparent;
}

.errorBox {
	background: red;
	color: white;
	font-size: 2em;
	padding: 2em;
	transition: all 5s cubic-bezier(0.55, 0.06, 0.68, 0.19);
}

.errorBox.hide {
	background: transparent;
	color: transparent;
}

.checkbox-lg {
	width: 1.4em;
	height: 1.4em;
}

.checkbox-label-lg {
	font-size: 1.4em;
	font-weight: bold;
	margin-bottom: 1rem;
}

.row {
	display: flex;
	flex-direction: row;
	overflow: hidden;
	
}

.row-right {
	padding-left: 4rem
}

.float-right {
	float: right;
	margin-left: 15px;
}

.m-0 {
	margin: 0;
}

.mx-auto {
	margin: 0 auto;
}

.vote-alternative {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.vote-alternative input {
	height: 1.5rem;
	width: 1.5rem;
	margin: 0;
}

.vote-alternative label {
	font-size: 1.5rem;
}

.vote-submit-btn {
	min-height: 2rem;
	font-size: 1.5rem;
	background-color: green;
	color: white;
}

.vote-submit-btn:disabled {
	background-color: #EBEBE4;
}

.bold {
	font-weight: bold;
}

.shadow {
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.body-wrapper {
	box-sizing: border-box;
	padding: 1rem 1rem;
}

@media screen and (min-width: 480px) {
    .body-wrapper-admin {
        margin-left: 2rem;
    }
}

.body-wrapper-center {
	margin: 0 auto;
	width: min(100vw, 80ch);
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.form-input {
	height: 2rem;
	border-radius: 8px;
	padding-left: 0.5rem;
	border: 1px solid gray;
	font-size: 16px;
}

.mb-1 {
	margin-bottom: 1rem !important;
}

.button{
	display: flex;
	align-items: center;
	justify-content: center;
	height: 2rem;
	font-size: 16px;
	text-decoration: none;
	background-color: var(--color-primary);
	padding: 2px 6px 2px 6px;
	border: 1px solid black;
	border-radius: 8px;
	color: white;
	text-align: center;
}

.button-secondary {
	background-color: var(--color-secondary);
}

.button:hover {
	transform: translate(0px, 1px);
	background-color: #831812;
	transition: 0.1s;
}

.small-link {
	font-style: italic;
	font-size: 14px;
}

.card-grid {
	max-width: 700px;
	display: grid;
	grid-template-columns: 50% 50%;
	gap: 1rem;
}


@media only screen and (max-width: 600px) {
	.card-grid {
 		grid-template-columns: 100%;
	};
}

.card {
	border-radius: 20px;
	aspect-ratio: 1.586;
	padding: 1rem;
	box-shadow: 0px 0px 10px 0px rgba(0,0,0,1);
	border: 1px solid grey;
}

.membercard {
	background:  #831812;
	color: white;
}

.interncard {
	background: #EEEEEE;
	color: black;
}

.img-link {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	color: #000000;
}

.help-text {
	margin: 0;
	font-size: 12px;
	color: #333333;
	max-width: 100%;
	font-style: italic;
}

.form-group {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	border: 1px solid gray;	
	border-radius: 12px;
	box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
	margin-bottom: 1rem;
}

.form-checkbox input[type="checkbox"] {
	height: 16px;
	aspect-ratio: 1;
}

.w-100 { width: 100%; }

.hidden { display: none !important; }
