/****************************************** CSS Variables ****************************************/
:root {
    --yale-blue: #317EFB;
    --yale-blue-dark: #00356b;
    --yale-blue-hover: #2868d9;
    --max-content-width: 800px;
    --max-content-width-large: 2000px;
    --spacing-sm: 32px;
    --spacing-md: 64px;
    --color-text-light: #ffffff;
    --color-text-dark: #000000;
    --color-background-dark: #000000;
    --color-background-light: #f0f0f0;
}

/****************************************** Generic Classes ****************************************/

/* W3.CSS 4.12 November 2018 by Jan Egil and Borge Refsnes - Modified by Dylan Shah */
html {
    box-sizing: border-box;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/* Extract from normalize.css by Nicolas Gallagher and Jonathan Neal git.io/normalize */
body {
    margin: 0;
}

a {
    background-color: transparent;
    -webkit-text-decoration-skip: objects;
}

a:active,
a:hover {
    outline-width: 0;
}

img {
    border-style: none;
}
/* End extract */

html,
body {
    font-family: "Lato", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

h1 {
    font-size: 36px;
}

h2 {
    font-size: 30px;
}

h3 {
    font-size: 24px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Segoe UI", Arial, sans-serif;
    font-weight: 400;
    margin: 10px 0;
}

.w3-wide {
    letter-spacing: 4px;
}

img {
    vertical-align: middle;
}

a {
    color: inherit;
}

ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

/* Smooth focus transitions for accessibility */
*:focus {
    outline: 2px solid var(--yale-blue);
    outline-offset: 2px;
}

/****************************************** Video Container ****************************************/
.video-container {
    width: 100%;
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.video-container video {
    width: 100%;
    height: auto;
}

/****************************************** Details/Summary (Collapsible) ****************************************/
details summary {
    cursor: pointer;
    padding: 10px;
    background-color: var(--yale-blue);
    color: white;
    border-radius: 4px;
    margin: 10px 0;
    list-style: none;
    user-select: none;
    transition: background-color 0.3s ease;
}

details summary:hover {
    background-color: var(--yale-blue-hover);
}

details summary::-webkit-details-marker {
    display: none;
}

details[open] summary strong::before {
    content: "▼ ";
}

details:not([open]) summary strong::before {
    content: "▶ ";
}

/****************************************** Dark Mode Support ****************************************/
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    a {
        color: #6db3f2;
    }
    
    a:hover {
        color: #8dc5f5;
    }
}

/****************************************** General w3 Classes ****************************************/

/* w3-container ensures borders on mobile screens */
.w3-container {
    padding: 0.01em 16px;
}

.w3-btn,
.w3-button {
    border: none;
    display: inline-block;
    padding: 8px 16px;
    vertical-align: middle;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    background-color: inherit;
    text-align: center;
    cursor: pointer;
    white-space: nowrap;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.w3-button:hover {
    color: #000;
    background-color: #ccc;
}

.w3-bar {
    width: 100%;
    overflow: hidden;
}

.w3-bar .w3-bar-item {
    padding: 8px 16px;
    float: left;
    width: auto;
    border: none;
    display: block;
    outline: 0;
}

.w3-bar .w3-button {
    white-space: normal;
}

.w3-bar-block .w3-bar-item {
    width: 100%;
    display: block;
    padding: 8px 16px;
    text-align: left;
    border: none;
    white-space: normal;
    float: none;
    outline: 0;
}

.w3-row:after,
.w3-row:before,
.w3-bar:before,
.w3-bar:after {
    content: "";
    display: table;
    clear: both;
}

.w3-content {
    margin-left: auto;
    margin-right: auto;
}

.w3-hide {
    display: none !important;
}

/****************************************** Responsive Classes ****************************************/
/* Hide buttons on mobile screens */
@media (max-width:575px) {
    .w3-hide-small {
        display: none !important;
    }
}

/* Hide mobile menu on desktop screens */
@media (min-width:993px) {
    .w3-hide-large {
        display: none !important;
    }
}

/* Hide on medium screens */
@media (min-width:575px) {
    .dyl-hide-medium {
        display: none !important;
    }
}

/****************************************** Positioning & Layout ****************************************/
.w3-top {
    position: fixed;
    width: 100%;
    z-index: 1;
    top: 0;
}

.w3-round,
.w3-round-medium {
    border-radius: 4px;
}

.w3-card {
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
}

/****************************************** Text & Spacing ****************************************/
.w3-opacity {
    opacity: 0.50;
}

.w3-large {
    font-size: 18px;
}

.w3-justify {
    text-align: justify;
}

.w3-center {
    text-align: center;
}

.w3-padding {
    padding: 8px 16px !important;
}

.w3-padding-large {
    padding: 12px 24px !important;
}

.w3-padding-32 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
}

.w3-padding-64 {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
}

.w3-left {
    float: left;
}

.w3-right {
    float: right !important;
}

/****************************************** Color Classes ****************************************/
.w3-black {
    color: var(--color-text-dark);
    background-color: var(--color-background-light);
}

.w3-yaleBlue {
    color: var(--color-text-light);
    background-color: var(--yale-blue-dark);
}