/*Theme Name: Ohdera Lab*/

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

/**
 * Add border box sizing in all browsers (opinionated).
 */

*,
::before,
::after {
    box-sizing: border-box;
}

/**
 * 1. Add text decoration inheritance in all browsers (opinionated).
 * 2. Add vertical alignment inheritance in all browsers (opinionated).
 */

::before,
::after {
    text-decoration: inherit; /* 1 */
    vertical-align: inherit; /* 2 */
}

/**
 * 1. Use the default cursor in all browsers (opinionated).
 * 2. Change the line height in all browsers (opinionated).
 * 3. Use a 4-space tab width in all browsers (opinionated).
 * 4. Remove the grey highlight on links in iOS (opinionated).
 * 5. Prevent adjustments of font size after orientation changes in
 *    IE on Windows Phone and in iOS.
 * 6. Breaks words to prevent overflow in all browsers (opinionated).
 */

html {
    cursor: default; /* 1 */
    line-height: 1.5; /* 2 */
    -moz-tab-size: 4; /* 3 */
    -o-tab-size: 4;
    tab-size: 4; /* 3 */
    -webkit-tap-highlight-color: transparent /* 4 */;
    -ms-text-size-adjust: 100%; /* 5 */
    -webkit-text-size-adjust: 100%; /* 5 */
    word-break: break-word; /* 6 */
}

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

/**
 * Remove the margin in all browsers (opinionated).
 */

body {
    margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Edge, Firefox, and Safari.
 */

h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

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

/**
 * Remove the margin on nested lists in Chrome, Edge, IE, and Safari.
 */

dl dl,
dl ol,
dl ul,
ol dl,
ul dl {
    margin: 0;
}

/**
 * Remove the margin on nested lists in Edge 18- and IE.
 */

ol ol,
ol ul,
ul ol,
ul ul {
    margin: 0;
}

/**
 * 1. Add the correct sizing in Firefox.
 * 2. Show the overflow in Edge 18- and IE.
 */

hr {
    height: 0; /* 1 */
    overflow: visible; /* 2 */
}

/**
 * Add the correct display in IE.
 */

main {
    display: block;
}

/**
 * Remove the list style on navigation lists in all browsers (opinionated).
 */

nav ol,
nav ul {
    list-style: none;
    padding: 0;
}

/**
 * 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; /* 1 */
    font-size: 1em; /* 2 */
}

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

/**
 * Remove the gray background on active links in IE 10.
 */

a {
    background-color: transparent;
}

/**
 * Add the correct text decoration in Edge 18-, IE, and Safari.
 */

abbr[title] {
    text-decoration: underline;
    -webkit-text-decoration: underline dotted;
    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; /* 1 */
    font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
    font-size: 80%;
}

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

/*
 * Change the alignment on media elements in all browsers (opinionated).
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/**
 * Add the correct display in IE 9-.
 */

audio,
video {
    display: inline-block;
}

/**
 * Add the correct display in iOS 4-7.
 */

audio:not([controls]) {
    display: none;
    height: 0;
}

/**
 * Remove the border on iframes in all browsers (opinionated).
 */

iframe {
    border-style: none;
}

/**
 * Remove the border on images within links in IE 10-.
 */

img {
    border-style: none;
}

/**
 * Change the fill color to match the text color in all browsers (opinionated).
 */

svg:not([fill]) {
    fill: currentColor;
}

/**
 * Hide the overflow in IE.
 */

svg:not(:root) {
    overflow: hidden;
}

/* Tabular data
 * ========================================================================== */

/**
 * Collapse border spacing in all browsers (opinionated).
 */

table {
    border-collapse: collapse;
}

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

/**
 * Remove the margin on controls in Safari.
 */

button,
input,
select {
    margin: 0;
}

/**
 * 1. Show the overflow in IE.
 * 2. Remove the inheritance of text transform in Edge 18-, Firefox, and IE.
 */

button {
    overflow: visible; /* 1 */
    text-transform: none; /* 2 */
}

/**
 * Correct the inability to style buttons in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
    -webkit-appearance: button;
}

/**
 * 1. Change the inconsistent appearance in all browsers (opinionated).
 * 2. Correct the padding in Firefox.
 */

fieldset {
    border: 1px solid #a0a0a0; /* 1 */
    padding: 0.35em 0.75em 0.625em; /* 2 */
}

/**
 * Show the overflow in Edge 18- and IE.
 */

input {
    overflow: visible;
}

/**
 * 1. Correct the text wrapping in Edge 18- and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 */

legend {
    color: inherit; /* 2 */
    display: table; /* 1 */
    max-width: 100%; /* 1 */
    white-space: normal; /* 1 */
}

/**
 * 1. Add the correct display in Edge 18- and IE.
 * 2. Add the correct vertical alignment in Chrome, Edge, and Firefox.
 */

progress {
    display: inline-block; /* 1 */
    vertical-align: baseline; /* 2 */
}

/**
 * Remove the inheritance of text transform in Firefox.
 */

select {
    text-transform: none;
}

/**
 * 1. Remove the margin in Firefox and Safari.
 * 2. Remove the default vertical scrollbar in IE.
 * 3. Change the resize direction in all browsers (opinionated).
 */

textarea {
    margin: 0; /* 1 */
    overflow: auto; /* 2 */
    resize: vertical; /* 3 */
}

/**
 * Remove the padding in IE 10-.
 */

[type="checkbox"],
[type="radio"] {
    padding: 0;
}

/**
 * 1. Correct the odd appearance in Chrome, Edge, and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
    -webkit-appearance: textfield; /* 1 */
    outline-offset: -2px; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Safari.
 */

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
    height: auto;
}

/**
 * Correct the text style of placeholders in Chrome, Edge, and Safari.
 */

::-webkit-input-placeholder {
    color: inherit;
    opacity: 0.54;
}

/**
 * Remove the inner padding in Chrome, Edge, and Safari on macOS.
 */

::-webkit-search-decoration {
    -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style upload buttons in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
    -webkit-appearance: button; /* 1 */
    font: inherit; /* 2 */
}

/**
 * Remove the inner border and padding of focus outlines in Firefox.
 */

::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

/**
 * Restore the focus outline styles unset by the previous rule in Firefox.
 */

:-moz-focusring {
    outline: 1px dotted ButtonText;
}

/**
 * Remove the additional :invalid styles in Firefox.
 */

:-moz-ui-invalid {
    box-shadow: none;
}

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

/*
 * Add the correct display in Edge 18- and IE.
 */

details {
    display: block;
}

/*
 * Add the correct styles in Edge 18-, IE, and Safari.
 */

dialog {
    background-color: white;
    border: solid;
    color: black;
    display: block;
    height: -moz-fit-content;
    height: -webkit-fit-content;
    height: fit-content;
    left: 0;
    margin: auto;
    padding: 1em;
    position: absolute;
    right: 0;
    width: -moz-fit-content;
    width: -webkit-fit-content;
    width: fit-content;
}

dialog:not([open]) {
    display: none;
}

/*
 * Add the correct display in all browsers.
 */

summary {
    display: list-item;
}

/* Scripting
 * ========================================================================== */

/**
 * Add the correct display in IE 9-.
 */

canvas {
    display: inline-block;
}

/**
 * Add the correct display in IE.
 */

template {
    display: none;
}

/* User interaction
 * ========================================================================== */

/*
 * 1. Remove the tapping delay in IE 10.
 * 2. Remove the tapping delay on clickable elements
      in all browsers (opinionated).
 */

a,
area,
button,
input,
label,
select,
summary,
textarea,
[tabindex] {
    /* 1 */
    touch-action: manipulation; /* 2 */
}

/**
 * Add the correct display in IE 10-.
 */

[hidden] {
    display: none;
}

/* Accessibility
 * ========================================================================== */

/**
 * Change the cursor on busy elements in all browsers (opinionated).
 */

[aria-busy="true"] {
    cursor: progress;
}

/*
 * Change the cursor on control elements in all browsers (opinionated).
 */

[aria-controls] {
    cursor: pointer;
}

/*
 * Change the cursor on disabled, not-editable, or otherwise
 * inoperable elements in all browsers (opinionated).
 */

[aria-disabled="true"],
[disabled] {
    cursor: not-allowed;
}

/*
 * Change the display on visually hidden accessible elements
 * in all browsers (opinionated).
 */

[aria-hidden="false"][hidden] {
    display: initial;
}

[aria-hidden="false"][hidden]:not(:focus) {
    clip: rect(0, 0, 0, 0);
    position: absolute;
}

.primary-color {
    color: #ff8263;
}

/* Font scheme : 1.2 minor third */

/* Media Queries */

/* Theme Name: Ohdera Lab */

/* General */

h1,
h2,
h3,
h4,
h5 {
    margin: 1rem 0 1rem;
    font-family: "Open Sans";
    font-weight: 600;
    line-height: 1.15;
}

h1 {
    font-size: 2.488em;
}

h2 {
    font-size: 2.074em;
}

h3 {
    font-size: 1.728em;
}

h4 {
    font-size: 1.44em;
}

h5 {
    font-size: 1.2em;
}

.small {
    font-size: 0.833em;
}

a,
a:visited,
a:hover,
a:active {
    color: inherit;
    /* text-decoration: none; */
}

body {
    font-family: "Open Sans", sans-serif;
    color: #000;
    font-weight: 300;
}

html {
    height: 100%;
}

body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    margin: 0 1rem;
    flex: 1;
}

hr {
    border-style: none;
    background-color: #ebebeb;
    height: 1px;
    width: 50%;
    max-width: 300px;
}

figure {
    -webkit-margin-before: 0;
    margin-block-start: 0;
    -webkit-margin-after: 0;
    margin-block-end: 0;

    -webkit-margin-start: 0;

    margin-inline-start: 0;
    -webkit-margin-end: 0px;
    margin-inline-end: 0px;
}

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

.indent {
    margin-left: 2rem !important;
}

.bold,
strong {
    font-weight: 600;
}

.semi-bold {
    font-weight: 400;
}

.italic {
    font-style: italic;
}

/* Caret */

.caret.down {
    display: inline-block;
    position: relative;
    width: 18px;
    height: 8px;
    top: 4px;
    transition: top 250ms cubic-bezier(0.86, 0, 0.07, 1);
}

.caret.down:before {
    content: "";
    display: inline;
    position: absolute;
    background: white;
    width: 9px;
    height: 2px;
    transition: transform 250ms cubic-bezier(0.86, 0, 0.07, 1), transform-origin 200ms cubic-bezier(0.86, 0, 0.07, 1);
    transform-origin: 100% 30%;
    transform: rotate(-45deg);
    left: 0;
    transform-origin: 100% 70%;
    transform: rotate(45deg);
}

.caret.down:after {
    content: "";
    display: inline;
    position: absolute;
    background: white;
    width: 9px;
    height: 2px;
    transition: transform 250ms cubic-bezier(0.86, 0, 0.07, 1), transform-origin 200ms cubic-bezier(0.86, 0, 0.07, 1);
    transform-origin: 0% 30%;
    transform: rotate(45deg);
    right: 0;
    transform-origin: 0% 70%;
    transform: rotate(-45deg);
}

.caret.up {
    display: inline-block;
    position: relative;
    width: 18px;
    height: 8px;
    top: -4px;
    transition: top 250ms cubic-bezier(0.86, 0, 0.07, 1) 0s;
}

.caret.up:before {
    content: "";
    display: inline;
    position: absolute;
    width: 9px;
    height: 2px;
    transform-origin: 100% 30%;
    transform: rotate(-45deg);
    left: 0px;
    background: white;
    transition: transform 250ms cubic-bezier(0.86, 0, 0.07, 1) 0s,
        transform-origin 200ms cubic-bezier(0.86, 0, 0.07, 1) 0s;
}

.caret.up:after {
    content: "";
    display: inline;
    position: absolute;
    width: 9px;
    height: 2px;
    transform-origin: 0% 30%;
    transform: rotate(45deg);
    right: 0px;
    background: white;
    transition: transform 250ms cubic-bezier(0.86, 0, 0.07, 1) 0s,
        transform-origin 200ms cubic-bezier(0.86, 0, 0.07, 1) 0s;
}

#main a {
    color: blue;
    text-decoration: none;
}

/* Header */

#header {
    display: grid;
    grid-template-columns: 3fr 1fr;
}

#social-container {
    grid-area: 1 / 2 / 1 / 3;
    justify-self: end;
    align-self: center;
    margin-right: 1rem;
}

.social-icon {
    display: inline-block;
    width: 2rem;
}

.social-link {
    text-decoration: none;
}

#toggle-menu {
    width: 2rem;
    align-self: center;
    margin-right: 1rem;
}

@media (min-width: 600px) {
    #toggle-menu {
        display: none;
    }
}

#primary-nav {
    grid-area: 1 / 1 / 1 / 3;
    padding: 1rem;
    display: flex;
    height: 3.5rem;
    border-bottom: 1px solid #ebebeb;
}

@media (min-width: 600px) {
    #primary-nav {
        justify-content: center;
        align-items: center;
    }
}

.logo {
    align-self: center;
}

.logo > h3 {
    margin: 0;
    line-height: 1;
}

#header-logotype {
    width: 142px;
}

@media (max-width: 600px) {
    .menu-wrapper {
        width: 100%;
        position: absolute;
        margin-top: 2.5rem;
        margin-left: -1rem;
        /* padding: 1rem; */
    }
}

@media (max-width: 600px) {
    #menu-main {
        display: none;
        width: 100%;
        background: white;
        border-bottom: 1px solid #ebebeb;
        padding: 1rem;
        -webkit-margin-before: 0;
        margin-block-start: 0;
    }
}

@media (min-width: 600px) {
    #menu-main {
        padding-top: 10px;
    }
}

@media (min-width: 600px) {
    #menu-main > .menu-item {
        margin-left: 1rem;
        display: inline-block;
        line-height: 3.5rem;
    }
    #menu-main > .menu-item .caret {
        display: none;
    }
}

.menu-item:nth-last-child(1) {
    border-bottom: none;
}

.menu-item > a {
    font-weight: 600;
    text-decoration: none;
}

@media (max-width: 600px) {
    .menu-item {
        line-height: 2;
        border-bottom: 1px solid #ebebeb;
    }
    .menu-item a {
        font-size: 1.2em;
    }
}

.menu-item .caret {
    float: right;
    margin-right: 0.5rem;
}

.menu-item .caret.up:after,
.menu-item .caret.up:before,
.menu-item .caret.down:before,
.menu-item .caret.down:after {
    background: black;
    top: 18px;
}

/* Sub Menu */

.sub-menu {
    margin-top: -10px;
    display: none;
    background: white;
    line-height: 1;
    padding-left: 0.5rem;
    padding-top: 0.5rem;
}

@media (min-width: 600px) {
    .sub-menu {
        padding: 1rem;
        position: absolute;
        z-index: 9999;
        background: #fff;
        box-shadow: -0px 4px 4px rgba(0, 0, 0, 0.16);
        transition: max-height 0.5s ease 0s;
        -moz-transition: max-height 0.5s ease 0s;
        -ms-transition: max-height 0.5s ease 0s;
        -o-transition: max-height 0.5s ease 0s;
        -webkit-transition: max-height 0.5s ease 0s;
    }
}

.sub-menu > .menu-item a {
    line-height: 2;
    font-weight: 300;
}

@media (min-width: 600px) {
    .sub-menu:hover,
    .menu-item:hover .sub-menu {
        display: block;
        max-height: 800px;
    }
}

/* Wordpress Core */

.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
    /* Above WP toolbar. */
}

/* Footer */

#footer {
    font-size: 0.833em;
    padding: 0.5rem 1rem;
    border-top: 1px solid #ebebeb;
    display: flex;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    #footer {
        flex-direction: column-reverse;
    }
}

@media (min-width: 600px) {
    #footer {
        justify-content: space-between;
    }
}

/* Pages */

/* Front Page */

#personal-statement {
    margin: 2rem;
}

.topic-container {
    margin: 1rem auto;
    max-width: 800px;
    border-radius: 2px;
    overflow: hidden;
}

@media (min-width: 600px) {
    .topic-container {
        display: flex;
    }
}

.topic-fig {
    display: grid;
    color: white;
    flex: 4;
}

.topic-fig > figcaption,
.topic-fig .caret,
.topic-fig img {
    grid-row-start: 1;
    grid-column-start: 1;
}

.topic-fig > img {
    width: 100%;
    height: auto;
}

@media (min-width: 600px) {
    .topic-fig > img {
        height: 100%;
        -o-object-fit: cover;
        object-fit: cover;
    }
}

.topic-fig > figcaption {
    font-size: 1.728em;
    font-weight: 400;
    margin: 0 1rem;
    align-self: center;
    line-height: 1.1;
    padding-right: 1rem;
}

.topic-fig span.caret {
    justify-self: end;
    align-self: center;
    margin-right: 1rem;
}

@media (min-width: 600px) {
    .topic-fig span.caret {
        display: none;
    }
}

.topic-dropdown {
    background-color: #ebebeb;
    flex: 5;
}

.topic-dropdown > p {
    margin: 0;
    padding: 1rem;
}

@media (max-width: 600px) {
    .topic-dropdown {
        display: none;
    }
}

@media (min-width: 600px) {
    .topic-dropdown {
        display: block !important;
        min-height: 6rem;
    }
}

/* CV */

.page-cv #main {
    margin: 1rem auto;
}

@media (min-width: 600px) {
    .page-cv #main {
        display: grid;
        max-width: 1100px;
        grid-template:
            "personal title" auto
            "personal cv" 1fr
            / 250px 1fr;
        grid-gap: 0.5rem;
    }
}

#cv-title {
    grid-area: title;
}

.cv-photo-container {
    grid-area: personal;
    margin: 2rem auto;
}

@media (min-width: 600px) {
    .cv-photo-container {
        margin: 1rem auto;
    }
}

.cv-photo-container > figcaption {
    margin: 0.5rem 0;
}

#cv-content {
    grid-area: cv;
}

#cv-content p {
    margin: 0;
}

.position-container {
    margin: 2rem 1rem;
}

@media (min-width: 600px) {
    .position-container .teaching-item {
        grid-template-columns: 140px 1fr;
    }
}

.position-items-container {
    margin: 1rem 0;
}

#education .teaching-item {
    margin: 0;
}

#teaching-experience {
    background: #ebebeb;
    padding: 1rem;
}

.teaching-item {
    margin: 1rem 0;
    display: grid;
    grid-template:
        "date"
        "info";
}

@media (min-width: 600px) {
    .teaching-item {
        grid-template-areas: "date info";
        grid-template-columns: 180px 1fr;
        grid-column-gap: 2rem;
    }
}

.teaching-date {
    grid-area: date;
}

@media (max-width: 600px) {
    .teaching-date {
        margin-bottom: 0;
    }
}

.teaching-info {
    grid-area: info;
}

@media (max-width: 600px) {
    .teaching-location {
        padding-left: 1rem;
    }
}

.cv-photo-container > .wp-post-image,
.cv-photo-container {
    width: 200px;
    height: auto;
    border-radius: 50%;
}

.cv-header {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .cv-header {
        text-align: center;
    }
}

@media (min-width: 600px) {
    .cv-row {
        width: 70%;
        -webkit-margin-start: 0;
        margin-inline-start: 0;
        max-width: unset;
        padding-right: 25%;
    }
}

/* Publications */

.page-publications #main {
    margin: 0;
}

#publications-content {
    margin: 1rem auto;
    max-width: 800px;
}

#publications-content p {
    margin-left: 2rem;
    text-indent: -2rem;
    padding: 1rem;
}

.title {
    margin: 2rem;
}

.publications-section {
    margin-bottom: 3rem;
}

.publications-section .publication-container:nth-child(even) {
    background-color: #fafafa;
}

/* Research Page */

.page-template-research #main {
    max-width: 900px;
}

@media (min-width: 600px) {
    .page-template-research #main {
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .page-template-research img {
        display: block;
        margin: 2rem auto;
        float: none;
    }
}

@media (max-width: 600px) {
    .page-template-research h5 {
        clear: both;
        text-align: center;
    }
}

.page-template-research h3 {
    text-align: center;
    margin: 2rem;
}

/*# sourceMappingURL=style.css.map */
