/* ================= CSS ELEMENTS ================= */
body {background-color: #cccccc; color: #333333; font-family: 'Open Sans', Arial, sans-serif; font-size: 0.9em;}

a:link {color: #01386f; text-decoration: none; border-bottom: 1px solid #01386f;} 
a:visited {color: #01386f;}
a:hover {color: #549991; border-bottom: 1px solid #549991;}
a:active {color: #549991;} 

em {}

h1, h2, h3, h4, h5, h6 {font-family: 'Open Sans', serif; margin-bottom: 0.5em; font-weight: 400;}
h1 {color: #3E5758; font-size: 2.5em;}
h2 {color: #62b3a9; font-size: 2em;}
h3 {color: #549991; font-size: 1.8em;}
h4 {color: #7286a0; font-size: 1.4em;}
h5 {font-size: 1.2em;}
h6 {font-size: 1em; text-transform: uppercase;}

p {line-height: 1.5em;}

small {font-size: 0.8em;}

strong {font-weight: 800;}
strong.colored {color: #549991;}

table {margin: 2% 0; width: 100%;}
td, th {padding: 1%; border-bottom: 1px solid #ccc;}

th {text-align: left;}

ul, ol {}

li {line-height: 1.5em;}

hr {border: none; border-top: 1px solid #ccc;}

pre, code {background-color: #549991; color: #FFF;}

blockquote {background-color: #cc707b; margin: 1% 0; padding: 2%; color: #FFF;}


/* Forms */

legend {color: #62b3a9; font-size: 1.4em;}
fieldset {margin: 2% 0;}

fieldset, input, textarea, select {border: 1px solid #ccc;}
textarea {width: 100%;}

input:focus, textarea:focus {border: 1px solid #955251;}

input[type="submit"] {
	background-color: #549991;
	border-color: #549991;
	color: #FFF;
	margin: 1%;
	padding: 1%;
}
input[type="submit"]:hover {
	background-color: #01386f;
	border-color: #01386f;
	cursor: pointer;
}

label {display: block;}

label + input, label + textarea, label + select, label > input{
	margin-bottom: 2%;
}

input + input {
	display: block;
	margin-bottom: 2%;
}

input[type="radio"], input[type="checkbox"] {width: 20px;}
label > input[type="text"] {width: 50px;}
input[type="number"] {width: 50px;}

/* ================= IDS ================= */

#wrapper {background-color: #ffffff; margin: 0 auto; width: 64%; padding: 1.5% 2% 2% 2%;}

/*********   HEADER   *********/
/*#header {margin: 0 auto; width: 64%; padding: 1%;}*/
#header {margin: 0 auto; width: 64%; padding: 0.5% 2%; background-color: rgba(255,255,255,0.8); margin-bottom: 1%;}
#header h1.site-title a{border-bottom: none; color: #3E5758;}
#header h2.site-sub-title {font-size: 1.5em; color: #549991;}
/*#header .highlight{background-color: #FFF;padding: 0 5px;}*/
#header p {font-size: 1.1em;}


/*********   PICTURES   *********/
#pictures {overflow: hidden; height: 145px; margin: 1% 0 2% 0; text-align: center;}
#pictures img {margin-right: 1.5%;}
#pictures img:last-child {margin-right: 0;}


/********* NAVIGATION *********/
#sidebar {float: left; width: 19%; margin-bottom: 2%;}

#navigation ul {margin: 0; padding: 0;}
#navigation ul li {list-style: none; margin: 3% 0;  }
#navigation ul li a {display: block; border-bottom: none; color: #59594a; padding: 4% 0%;}
#navigation ul li:hover, #navigation ul li.current:hover {background-color: #549991;}
#navigation ul li.current {background-color: #62b2a9;}
#navigation ul li:hover a, #navigation ul li.current a{color: #FFF; padding: 4% 0 4% 4%;}

#subnav {margin-top: 2.5em;}
#subnav p {margin: 0;padding: 0; display: block;}
#subnav .external-link a:link{background-color: #eee; border-bottom: none; color: #59594a; padding: 2% 4%;}
#subnav .external-link a:hover{color: #000; background-color: #ddd; }

/* TinyNav: styles for desktop */
.tinynav, .tinynav_label { display: none; margin: 0px auto; }


/*********  CONTENT  *********/
#content {float: right; width: 77%; margin-bottom: 2%;}


/*********   FOOTER   *********/
#footer {clear: both; border-top: 1px solid #ccc;}
#footer p {font-size: 0.9em;}


/* ================= CLASSES ================= */
.required{color: #931621;}
.error {color: #931621;margin-top: 0; font-weight: 800;}
input + .error, /*textarea + .error,*/ select + .error  {margin-top: -2%;}
.extra-small {
	font-size: 0.7em;
	color: #999;
}

input.invalid, textarea.invalid {color: #931621; border: 2px solid #931621;}

/* honeypot class to prevent spamming*/
.remarks {display: none;}

/* Add to Calendar TDA 2016 button style */
.addtocalendar {display: block; width: 100%;}
.atc-style-winterschool .atcb-link,
.atc-style-winterschool .atcb-link:active,
.atc-style-winterschool .atcb-link:focus
{
    margin: 0;
	
    /*padding: 7px 25px;*/padding: 4% 0%;
    color: #59594a;
    text-decoration: none;
    outline: none;
    /*box-shadow: 0 0 40px rgba(0, 0, 0, .13) inset;*/
    zoom: 1;
}
.atc-style-winterschool .atcb-link:hover {background-color: #549991; color: #FFF;padding: 4%;}

.atc-style-winterschool .atcb-list {
    width: 170px;
    border: 1px solid rgb(186,186,186);
    border-radius: 2px;
    box-shadow: 0 0 5px #AAA;
}

.atc-style-winterschool .atcb-list,
.atc-style-winterschool .atcb-item
{
    background: #fff;
    color: #59594a;
}

.atc-style-winterschool .atcb-item,
.atc-style-winterschool .atcb-item-link
{
    line-height: 1.3em;
    vertical-align: middle;
    zoom: 1;
}

.atc-style-winterschool .atcb-item-link,
.atc-style-winterschool .atcb-item-link:hover,
.atc-style-winterschool .atcb-item-link:active,
.atc-style-winterschool .atcb-item-link:focus
{
    color: #59594a;
    text-decoration: none;
    outline: none;
    padding: 5px 15px;
}

.atc-style-winterschool .atcb-item-link:hover,
.atc-style-winterschool .atcb-item-link:active,
.atc-style-winterschool .atcb-item-link:focus
{
    color: #fff;
}

.atc-style-winterschool .atcb-item.hover,
.atc-style-winterschool .atcb-item:hover {
    background: #549991;
}

.atcb-link:link , 
.atcb-item-link:link, 
.atcb-link:hover, 
.atcb-item-link:hover{
	border: none;
}

/* Map Irish College */
#map_irishCollege {
    width: 100%;
    height: 400px;
    background-color: #CCC;
}

/* ================= CLASSES ================= */

@media only screen and (min-width: 1000px) and (max-width: 1200px) {
input, select, textarea {width: 100%;}
}

@media only screen and (max-width: 1000px) {
	#wrapper {width: 98%; padding: 1%;}
	#header {text-align: center; width: 98%;padding: 1%;}
	
	/* Put the navigation menu in 3 columns above the content */
	#sidebar , #content{clear: both; width: 100%;}
	#navigation ul li{float:left;width: 33%; text-align: center; margin: 0;}
	.external-link a {padding: 1%;}
	.addtocalendar {width: 33%; text-align: center;}
}

/* Put the navigation menu in 2 columns above the content */
@media only screen and (max-width: 700px) {	
	#navigation li{float:left;width: 50%; text-align: center;}
	#navigation ul li a {padding: 4% 0;}
	#navigation ul li a:hover, #navigation ul li.current a{padding: 4% 0;}
	input, select, textarea {width: 100%;}
}

/* Transform the navigation menu in a dropdown box for smartphones and small tablets */
@media only screen and (max-width: 510px) {	
	/* TinyNav: styles for mobile */
	.tinynav { display: inline-block; width: 80%;}
    #nav { display: none; }
	.tinynav_label{display: inline-block; width: 19%; padding-left: 1%; color: #333;}
	.addtocalendar {width: 50%; margin-top: 1em;display: inline;}
}

/* Do not show the pictures on very small screens */
@media only screen and (max-width: 350px) {	
	#pictures {display: none;}
}