/* 
    all.css
    Written by Chris O'Brian (co253@cornell.edu) - 10/19/19
    
    This file contains stylings used throughout CLAL website.
*/

/* Main Colors: */

:root {
    --shadow: grey;

    --main: rgb(179, 27, 27);
    --dark: rgb(146, 3, 10);
    --light: rgb(227, 42, 42);

    --white: white;
    --off-white: rgb(242, 233, 209); 
}

@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');

/*********************************/
/* Responsiveness:               */
/*********************************/

.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (min-width: 650px) {
    .container  { width: 80%; }
}

@media screen and (min-width: 900px) {
	.container { width: 65%; }
}


/*********************************/
/* Generic:                      */
/*********************************/

html {
    font-family: 'Roboto', sans-serif;
}

body {
    height: 100%;
    margin: 0;
    background-color: white;
}

.small { 
    font-size: 10pt; 
}

ul.bullets {
    list-style-type: disc;
}

li {
    margin: 3px 20px; 
}

.hidden {
    display: none !important;
}

.red {
    color: red;
}

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

/* For Text: */

h1 {
    margin: 40px 30px;
    padding-bottom: 15px;
    border-bottom: 4px dashed var(--dark);
}

h2 {
    margin: 20px 30px;
}

p {
    margin: 10px 40px 20px 30px;
    font-family: 'Roboto', sans-serif;
}

#content a {
    color: var(--dark);
    text-decoration: none;
}

#content a:hover {
    text-decoration: underline;
}

.dense {
    margin-top: 2px;
    margin-bottom: 2px;
}

.br_below {
    margin-bottom: 40px;
}

.dense_top {
    margin-top: 10px;
}

p.center, a.center, h2.center {
    text-align: center;
}

ul {
    margin-bottom: 40px;
}

/*********************************/
/* For Header: (header.php)      */
/*********************************/

header {
    background-color: var(--white);
}

header table td {
    width: 50%;
    padding: 0;
}

header img#main_logo {
    display: block;
    width: 70%;
    margin: 20px auto 5px;
}

header img#c {
    display: block;
    max-height: 130px;
    width: auto;
    float: right;
    margin: 15px 50px;
}

header #c_td {
    display: none;
}

@media screen and (min-width: 900px) {

    header img#main_logo {
        width: auto;
        height: auto;
        max-width: 500px;
        max-height: 140px;
        margin: 20px 50px 5px;
    }

    header #c_td {
        display: table-cell;
    }
}

nav {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
    background-color: var(--main);
    text-align: center;
    box-shadow: 0px 3px 5px var(--shadow);
}

nav ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

nav ul li {
    display: inline-block;
    margin: 12px 5px;
}

nav ul li a {
    font-family: Arial;
    font-size: 16pt;
    color: var(--white);
    font-weight: bold;
    padding: 12px 20px;
    text-decoration: none;
}

nav ul li a:hover {
    background-color: var(--light);
}

nav ul li a:active {
    box-shadow: 0px 0px 8px var(--dark) inset;
    color: rgb(254, 158, 158);
}

#current a {
    background-color: var(--dark);
    color: rgb(185, 185, 185);
}



/*********************************/
/* For Footer: (footer.php)      */
/*********************************/

footer {
    width: 100%;
    background-color: var(--main);
    bottom: 0;
    box-shadow: 0px -3px 5px var(--shadow);
    padding-bottom: 10px;
}

footer p {
    color: white;
    margin-left: 20px;
    margin-right: 20px;
}

footer a {
    color: white;
    text-decoration: underline;
}

footer a:hover {
    color: rgb(254, 158, 158);
}

#f_table {
    padding: 10px 0;
    display: none;
}

#f_table td {
    width: 50%;
}

#f_table td#r {
    text-align: right;
}

#f_div {
    margin: 0;
    padding-top: 10px;
}

#f_div .centered-text {
    margin-top: 40px;
}

@media screen and (min-width: 700px) {

    #f_table {
        display: table;
    }

    #f_div {
        display: none;
    }
}

/*********************************/
/* Used in some/all pages:       */
/*********************************/

#center_body {
    background-color: var(--off-white);
    padding-bottom: 50px;
}

#content {
    overflow: hidden;
    padding: 5px 0;
    margin: 0 auto;
}

#blocks {
    max-width: 200px;
    height: auto;
    margin: 20px;
    background-size: contain;
    float:right;
}

.button {
	display: block;
	background-color: white;
	width: 30%;
	margin: 50px auto;
	border: 2px var(--main) solid;
	border-radius: 4px;
	font-size: 14pt;
	font-weight: bold;
	cursor: pointer;
	transition: 0.1s;
}

.button:hover {
	background-color: var(--main);
	color: var(--white);
}

.button:active {
	background-color: var(--dark);
	border-color: var(--dark);
	color: var(--white);
	box-shadow: 0px 0px 4px var(--dark) inset;
}

.button a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
    padding: 10px 0;
}

.button a:hover, .button a:active {
    color: var(--white) !important;
}

