/*!
Theme Name: Canadian Geographic Challenge
Theme URI: http://underscores.me/
Author: 366 Technology
Author URI: https://www.366technology.com/
Description: Custom Theme for CG
Version: 1.0.1
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: canadian-geographic-challenge
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Canadian Geographic Challenge is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments
# Footer
# Universal
# Header
# Login
# Create a New Teacher Account
# My Account
# My Students
# Administer a Challenge

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
	line-height: 1.15;
	-webkit-text-size-adjust: 100%;
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */
main {
	display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: calc(1.35416667vw + 10px);
  font-weight: normal;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */
img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
	font-family: inherit;
	font-size: 100%;
	line-height: 1.15;
	margin: 0;
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
[hidden] {
	display: none;
}

/* Box sizing
--------------------------------------------- */

/* Inherit box-sizing to more easily change it's value on a component level.
@link http://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
*,
*::before,
*::after {
	box-sizing: inherit;
}

html {
	box-sizing: border-box;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Typography
--------------------------------------------- */
body,
button,
input,
select,
optgroup,
textarea {
	color: #000;
	font-family: "Open Sans", sans-serif;
	font-size: calc(10px + 0.41666667vw);
	line-height: 1.33333333;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
body {
	background: #fff;
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul,
ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */
a {
	color: #D42027;
    text-decoration: underline;
}

a:visited {
}

a:hover,
a:focus,
a:active {
	text-decoration: none;
}

a:focus {
	outline: 0;
}

a:hover,
a:active {
	outline: 0;
}

/* Forms
--------------------------------------------- */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	line-height: 1;
	padding: 0.6em 1em 0.4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
}

button:active,
button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: block;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
}

.main-navigation li {
	position: static;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {

	.menu-toggle {
		display: none;
	}

	.main-navigation ul {
		display: flex;
	}
}

.site-main .comment-navigation,
.site-main
.posts-navigation,
.site-main
.post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
    max-width: 60%;
    pointer-events: none;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

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

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}
/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#sponsorlogo {
    width: calc(150px + 7.5vw);
    margin-bottom: 1vw;
}
.site-info {
    position: absolute;
    left: -9999px;
    top: -9999px;
}
#mainfoot {
    column-gap: 5.20833333vw;
  width: 1500px;
  margin: auto;
    display: flex;
    max-width: 95%;
}
.mfsub {
    width: 20%;
}
#centrefoot {
    text-align: center;
}
#centrelogo{
   max-width: 234px;
}
#lfleftlogo img{
    max-width: 378px;
}
#colophon {
    margin: 2.08333333vw;
}
#lflefttext {
    margin-left: 22%;
  font-size: clamp(13px, 1.04166667vw, 20px);
}
#leftfoot {
    width: 40%;
}
#lfleftbutton {
  font-size: clamp(13px, 1.04166667vw, 20px);
    font-weight: bold;
    text-transform: uppercase;
    width: calc(8.4vw + 150px);
}
#lfleftbutton a{
  text-decoration: none;
  display: inline-block;
  border: 5px solid #D42027;
  text-align: center;
  margin-top: 20px;
  padding: 10px 20px;
}
#rightfoot {
    width: 40%;
    text-align: right;
}
#linksandsocial {
  display: inline-block;
}
#linkfoot {
    font-size: clamp(13px, 1.04166667vw, 20px);
}
#linkfoot a{
    color: #000;
}
#linkfoot div {
    margin-bottom: 10px;
}
#socialfoot a {
    display: inline-block;
    width: 30px;
    margin-left: 15px;
}
#socialfoot a:first-child {
    margin-left: 0;
}
#socialfoot a img{
    display: block;
}
#linkfoot {
    margin-top: 2.1vw;
    margin-bottom: 1.75vw;
}
@media screen and (max-width: 1499px) {
    #lflefttext {
        margin-left: 24%;
    }
    #lfleftbutton {
    }
}
@media screen and (max-width: 1399px) {
    #lflefttext {
        margin-left: 26%;
    }
    #lfleftbutton {
    }
}
@media screen and (max-width: 1299px) {
    #lflefttext {
        margin-left: 29%;
    }
    #lfleftbutton {
    }
}
@media screen and (max-width: 1199px) {
    #lflefttext {
        margin-left: 31%;
    }
    #lfleftbutton {
    }
}
@media screen and (max-width: 999px) {
    #sponsorlogo {
        width: 303px;
    }
    #mainfoot {
        display: block;
    }
    #leftfoot {
        width: 100%;
          max-width: 400px;
          margin: 40px auto;
        text-align: center;
    }
    #lfleftlogo img {
        max-width: 100%;
    }
    #lflefttext {
        margin-left: 0;
    }
    #lfleftbutton {
        margin: auto;
        width: 220px;
    }
    #centrefoot {
        width: 100%;
      text-align: center;
    }
    #rightfoot {
        width: 100%;
      text-align: center;
      margin-top: 40px;
    }
}
/*--------------------------------------------------------------
# Universal
--------------------------------------------------------------*/
.firstnav h2 {
	font-size:calc(10px + 0.72916667vw);
}
.challengebutton, .gform_next_button, .gform_button {
        border: 5px solid #D42027 !important;
    border-radius: 10px !important;
    color: #000 !important;
    background-color: #fff !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    padding: 0.32vw 1.9vw !important;
    font-size: clamp(12px, 0.9375vw, 18px) !important;
    text-decoration: none !important;
    display: inline-block !important;
}
h2 {
    font-size: calc(10px + 1.35416667vw);
}
.gf-entry {
    display: none;
    text-align: center;
}
.notopmargin {
    margin-top: 0;
    font-size: calc(10px + 0.72916667vw);
}
.nobottommargin {
    margin-bottom: 0;
    margin-top: 0;
}
.secondnav .gf-entry {
    display: block;
}
#page {
    background-color: #eaeaea;
    background-size: 100%;
    background-repeat: no-repeat;
    margin: 2.08333333vw;
    padding-bottom: calc(5px + 2.08333333vw);
    background-position: top center;
    position: relative;
}
#primary {
    background-color: rgba(255,255,255,0.92);
  width: 1500px;
    max-width: 95%;
  margin: auto;
  box-shadow: 0 3px 75px rgba(0, 0, 0, 0.3);
    padding: 2.08333333vw 4.16666667vw calc(2.08333333vw + 30px);
    min-height: 74vh;
    position: relative;
}
#closingstate {
    position: absolute;
  bottom: 15px;
  font-size: calc(10px + 0.20833333vw);
    display: none;
}
.secondnav #closingstate {
    display: block;
}
.grow, .gform_button, .gform_next_button { 
    transition: all .2s ease-in-out; 
}
.grow:hover, .gform_button:hover, .gform_next_button:hover { 
    transform: scale(1.1); 
}
@media screen and (max-width: 1999px){
    #page {
        background-size: calc(80% + 400px);
    }
}
/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.loggedin {
    display: none;
}
.logged-in .loggedin {
    display: list-item;
}
.alwaysred a{
    color: #D42027 !important;
}
.logged-in #unilog {
    display: none !important;
}
#unilogout {
    display: none !important;
}
.logged-in #unilogout {
    display: inline-block !important;
}
#mts {
    display: none;
}
.logged-in #mts {
    display: block;
}
#backtohome a {
    position: absolute;
  top: 0;
  text-indent: -9999px;
  background-color: #fff;
  width: calc(32.5px + 1.69270833vw);
  padding: 10px 0;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
  left: 2.08333333vw;
  background-image: url(/wp-content/uploads/2025/08/home.png);
  background-repeat: no-repeat;
  background-size: 40%;
  background-position: center;
    display: inline-block;
}
#mts a {
    background-color: #fff;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
  padding: 10px calc(10px + 0.78125vw);
  display: inline-block;
  transition: all .2s ease-in-out;
  line-height: inherit !important;
  margin-left: 5px;
  color: #000;
  text-decoration: none;
  position: absolute;
  top: 0;
  left: calc(42.5px + 1.69270833vw + 2.08333333vw);
}
#loginandlanguage {
    position: absolute;
  top: 0;
  right: 2.08333333vw;
}
#loginandlanguage a{
  background-color: #fff;
  border-bottom-right-radius: 6px;
  border-bottom-left-radius: 6px;
    padding: 10px calc(10px + 0.78125vw);
    display: inline-block;
    transition: all .2s ease-in-out; 
    text-decoration: underline !important;
    line-height: inherit !important;
    margin-left: 5px;
}
#loginandlanguage a:hover {
    transform: scale(1.1); 
}
#loginandlanguage a span {
    display: contents;
}
.wpml-ls-statics-shortcode_actions, .wpml-ls-statics-shortcode_actions ul, .wpml-ls-statics-shortcode_actions li {
    display: contents;
}
#site-navigation {
    border-bottom: 1px solid #B5B5B5;
    padding-bottom: 6px;
}
.page-parent .entry-title, .page-child .entry-title {
    padding-top: calc(37px + 0.41666667vw);
}
.entry-title {   
    margin-top: calc(10px + 2.60416667vw);
}
.sub-menu {
    display: none !important;
}
.current-menu-item a, .current-menu-parent a{
    border-bottom: 6px solid #D42027;
    margin-bottom: -6px;
}
#primary-menu a:hover, #logged-menu a:hover{
    border-bottom: 6px solid #D42027;
    margin-bottom: -6px;
}
#primary-menu ul a:hover, #logged-menu ul a:hover{
    border-bottom: 0;
}
.current-menu-item .sub-menu, .current-menu-parent .sub-menu {
    display: block !important;
  float: none;
  left: 0;
  bottom: calc(-43px + -0.41666667vw);
  top: auto;
  box-shadow: none;
  background-color: #EAEAEA;
    margin-left: -4.16666667vw;
  padding: 10px 4.16666667vw;
  width: calc(100% + 8.33333334vw);
}
.current-menu-item .sub-menu li, .current-menu-parent .sub-menu li{
    display: contents;
}
.current-menu-item .sub-menu a, .current-menu-parent .sub-menu a{
    border: none;
    display: inline-block;
    width: auto;
    font-weight: normal !important;
    text-transform: none !important;
    margin-right: 2vw;
}
.site-title {
    position: absolute;
    left: -9999px;
    top: -9999px;
}
.site-branding {
    text-align:center;
}
.custom-logo {
    width: calc(315px + 16.40625vw);
    margin-top: 40px;
}
#teacherlogincon {
    text-align: center;
}
.logged-in #teacherlogincon {
    display: none;
}
.logged-in .custom-logo-link {
  margin-bottom: 2.17391304vw;
}
.secondnav .custom-logo-link {
    width: 334px;  
  margin-top: 2.17391304vw;
    margin-bottom: 4.16666667vw;
}
#teacherlogin {
    border: calc(2.5px + 0.13020833vw) solid #D42027;
  background-color: #fff;
  display: inline-block;
  font-size: calc(10px + 0.72916667vw);
    padding: 0.8vw calc(10px + 1.65vw);
    cursor: pointer;
  margin-top: 4.6875vw;
    margin-bottom: 5.72916667vw;
  text-transform: uppercase;
}
.menu-menu-1-container, .menu-menu-2-container {
/*    margin-left: calc(-5px + -0.825vw);*/
    position: relative;
}
#primary-menu, #logged-menu {
    text-transform: uppercase;
    justify-content: space-between;
}
#primary-menu a, #logged-menu a{
   color: #000;
    font-weight: bold;
    padding-bottom: 3px;
    /*margin: 0 calc(5px + 0.825vw);*/
}
.secondnav #primary-menu {
    display: none;
}
#logged-menu {
    display: none;
    border-top: 1px solid #B5B5B5;
      padding-top: 10px;
}
.secondnav #logged-menu{
    display: flex;
}
@media screen and (max-width: 1369px) {
    .current-menu-item .sub-menu, .current-menu-parent .sub-menu {
        bottom: calc(-36px + -0.41666667vw);
    }
    .logged-in .custom-logo-link {
        margin-top: 2.17391304vw;
        margin-bottom: 4.16666667vw;
    }
}

/*--------------------------------------------------------------
# Login
--------------------------------------------------------------*/
/* === Backdrop === */
#teacher-login-modal.tlm-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8); /* requested */
  display: grid;
  place-items: center;
  z-index: 99999;
}
#teacher-login-modal[hidden] { display: none !important; }

/* === Dialog === */
#teacher-login-modal .tlm-dialog {
  background: #fff; /* inner modal is white */
  max-width: 520px;
  width: min(92vw, 520px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  position: relative;
  padding: 20px 40px;
}

/* Close button */
#teacher-login-modal .tlm-close, #gf-cqh-lightbox-close {
  position: absolute;
  top: -5px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #333;
}
#gf-cqh-lightbox-close {
         top: 0;
    right: 0;
    background-color: #fff;
    width: auto;
    height: auto;
    border-radius: 50px;
}
#gf-cqh-lightbox-inner {
    background-color: #fff;
}
#teacher-login-modal .tlm-close:hover, #gf-cqh-lightbox-close:hover { opacity: 0.8; }

/* Heading */
#teacher-login-modal .tlm-heading {
  margin: 0 0 12px;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
}

/* === Fields: 1px border #D42027 === */
#teacher-login-modal #tlm-login-form input[type="text"],
#teacher-login-modal #tlm-login-form input[type="password"],
#teacher-login-modal #tlm-login-form input[type="email"] {
  width: 100%;
  border: 1px solid #D42027;  /* requested border */
  border-radius: 0;
  padding: 10px 12px;
  box-sizing: border-box;
    margin-top: 3px;
}

/* Field spacing */
#teacher-login-modal .login-username,
#teacher-login-modal .login-password,
#teacher-login-modal .login-remember {
  margin-bottom: 12px;
}

/* Labels & links: font + color + underline behavior */
#teacher-login-modal label,
#teacher-login-modal .tlm-link {
  font-size: clamp(12px, 0.78125vw, 15px); /* requested */
}
#teacher-login-modal .tlm-link:hover {
  text-decoration: none; /* remove underline on hover */
}
.tlm-link {
    display: block;
}
.tlm-create {
    position: relative;
  top: -7px;
}
/* Login button: white, 5px border #D42027, uppercase bold */
#teacher-login-modal #tlm-submit {
  background: #fff;
  border: 5px solid #D42027;
  text-transform: uppercase; /* requested */
  font-weight: 700;          /* bold */
  padding: 9px 1.8vw;
  cursor: pointer;
    border-radius: 0;
}
#teacher-login-modal #tlm-submit:hover {
/*  filter: brightness(0.98);*/
}

/* Links row below the form */
#teacher-login-modal .tlm-links {
}
#tlm-title {
    display: none;
}

/*--------------------------------------------------------------
# Create a New Teacher Account
--------------------------------------------------------------*/
#gform_1 {
    width: 700px;
      max-width: 100%;
}
#gform_1 input, #gform_1 select{
    border: 1px solid #D42027;
    border-radius: 0;
}
 .chosen-container{
    border: 1px solid #D42027 !important;
    border-radius: 0;
}
.chosen-single {
    border: 0 !important;
}
#gform_1 #gform_submit_button_1 {
    border: 5px solid #D42027;
  border-radius: 10px;
  color: #000;
  background-color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  padding: 0.32vw 1.9vw;
  font-size: clamp(12px, 0.9375vw, 18px);
}
.afterform {
    font-style: italic;
      font-size: clamp(12px, 0.72916667vw, 14px);
      margin-top: 10px;
}
#gform_1 .gfield {
    margin-bottom: -20px !important;
}
#gform_1 .gform-footer {
    margin-top: calc(40px + 1.5625vw) !important;
}
#gform_1 .gfield--type-username {
    margin-top: calc(20px + 1.5625vw) !important;
}
#gform_1 .ginput_container_select {
  /*  float: left;
      margin-right: 10px;
      width: 342px;*/
}
#input_1_8_container {
    display: block;
}
#input_1_8_container span{
      width: 342px;
}
#input_1_8_container span:first-child{
      margin-bottom: 20px;
}
#field_1_4 .gform-field-label .gfield_required {
    display: none;
}
@media screen and (max-width: 849px){
    #gform_1 .ginput_container_select {
        float: none;
          margin-right: 0;
          width: inherit;
    }
    #input_1_7, #input_1_4  {
        width: 100% !important;
    }
    #input_1_8_container span{
          width: 100%;
    }
}
/*--------------------------------------------------------------
# My Account
--------------------------------------------------------------*/
#editmyinfo, #savemyinfo, #cancelmyinfo {
    font-weight: normal;
}
#accounttable {
    font-size: calc(10px + 0.20833333vw);
    width: auto;
}
#accounttable tr td:first-child{
    font-weight: bold;
    padding-right: 20px;
}

/*--------------------------------------------------------------
# My Students
--------------------------------------------------------------*/
.surroundbox {
    background-color: #fff;
  border: 1px solid #B5B5B5;
  padding: 1vw 1.5vw;
}
#gform_3 input, #gform_3 select{
    border: 1px solid #D42027;
    border-radius: 0;
}
#gform_submit_button_3, .cgc-upload-btn, .cgc-ss-submit, .cgc-ss-school-submit, .cgc-ss-tb-submit {
    display: inline-block;
    border: 5px solid #D42027 !important;
      border-radius: 10px !important;
      color: #000;
      background-color: #fff;
      font-weight: bold;
      text-transform: uppercase;
      padding: 0.32vw 1.9vw;
      font-size: clamp(12px, 0.9375vw, 18px);
}
#gform_3 {
    width: 1000px;
    max-width: 100%;
}
#gform_3 .gfield{
    margin-bottom: -20px;
}
#gform_3 .gform-footer {
    margin-top: 40px !important;
}
@media screen and (max-width: 639px){
    #input_3_4 {
        width: 100%;
    }
}
/*--------------------------------------------------------------
# Adminster a Challenge
--------------------------------------------------------------*/
