/* FONTS */

@font-face {
    font-family: 'Bai Jamjuree';
    src: url('../font/BaiJamjuree-Italic.woff2') format('woff2'),
        url('../font/BaiJamjuree-Italic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Bai Jamjuree';
    src: url('../font/BaiJamjuree-Bold.woff2') format('woff2'),
        url('../font/BaiJamjuree-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bai Jamjuree';
    src: url('../font/BaiJamjuree-Regular.woff2') format('woff2'),
        url('../font/BaiJamjuree-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bai Jamjuree';
    src: url('../font/BaiJamjuree-BoldItalic.woff2') format('woff2'),
        url('../font/BaiJamjuree-BoldItalic.woff') format('woff');
    font-weight: bold;
    font-style: italic;
    font-display: swap;
}

/* COLOR VARIABLES */

:root {
    --white: #ffffff;
    --whiteHover: #ffffff80;
    --caption: #b9816a;
    --orange: #ff7f31;
    --orangeHover: #ffae00;
    --brown: rgb(19, 3, 3);
    --black: #000;
  }

/* SETUP */

* {
    scroll-behavior: smooth;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow-x: hidden;
}

body {
    display: flex;
    margin: 0;
    font-family: 'Bai Jamjuree';
    background-color: var(--brown);
    background-image: url("../img/bg.png");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    /* background-color: #111; */
    color: var(--white);
}

main {
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right,rgba(0,0,0,0), rgb(19, 3, 3) 15%);
    width: 100%;
    height: 100%;
    /* top: 0; */
    transition: 0.5s;
    overflow-x: hidden;
    overflow-y: scroll;
    padding: 64px 92px 64px 46px;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: var(--orange) rgba(1,1,1,0);
}

/* Aside for menu tab */

aside {
    display: flex;
    flex-direction: column;
    padding: 64px 46px;
    overflow-y: scroll;
    height: 100%;
    width: 396px;
    box-sizing: border-box;
    scrollbar-width: none;
}

/* Scroll margin for id links */

* {
    scroll-margin-top: 64px;
}

/* Figure for image descriptions */

figure {
    margin: 0px 0px 32px;
    width: auto; 
}

figcaption {
    font-style: italic;
    color: var(--caption);
}

/* Select a learning outcome/project screen */

#select-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* SECTIONS */

section, .horizontal {
    display: flex;
    flex-direction: column;
}

.horizontal {
    width: 100%;
    gap: 32px;
    flex-direction: row;
}

/* Center both sides  */

.section-text, .section-image {
    display: flex;
    width: 50%;
    flex-direction: column;
    justify-content: center;
}

/* Secondary version of box to align text/image to top (chain selector) */

.section-text.top, .section-image.top {
    justify-content: flex-start;
}

/* image/video */

img, video {
    align-self: flex-start;
    filter: drop-shadow(0px 8px 24px var(--black));
    margin: 16px 0px;
}

.section-image > img, .section-image > figure, .section-image > video {
    align-self: flex-end;
}

video.center, img.center {
    align-self: center;
}

.image-full {
    width: 100%;
}

.image-fixed {
    width: 100%;
    max-width: 512px;
}

/* Video */

.video-h {
    width: 100%;
    max-width: 720px;
}

.video-v {
    width: 100%;
    max-width: 405px;
}

/* Divider */

hr {
    width: 100%;
    background: linear-gradient(to right, var(--orange), var(--orangeHover));
    height: 1px;
    border-width: 0px;
    box-shadow: 0px 0px 8px var(--orangeHover);
    margin: 32px 0px;
    flex-shrink: 0;
}

/* Text */

h1, h2, h3, p, a, li, span {
    z-index: 1;
}

h1, h2, h3  {
    font-style: italic;
    text-shadow: 0px 8px 24px var(--black);
}

h1 {
    font-size: 36px;
    margin: 32px 0px 0px;
}

h2 {
    font-size: 24px;
}

aside > h2 {
    margin: 24px 0px 8px;
}

h3 {
    font-size: 18px;
    transition: 0.15s;
    margin: 10px 0px;
}

p {
    max-width: 870px;
    text-align: justify;
    margin: 8px 0px;
}

li {
    margin: 8px 0px;
}

/* Links/buttons */

#logo {
    font-size: 36px;
    margin: 32px 0px;
}

.view-project {
    margin-bottom: 36px;
}

a, a:visited{
    color: var(--orange);
    font-style: italic;
    text-decoration: none;
    transition: 0.15s;
}

a:hover, a:hover > h3, a:hover > h2 {
    color: var(--orangeHover);
    text-shadow: 0px 0px 8px var(--orangeHover);
    transition: 0.15s;
}

span:hover {
    cursor: pointer;
}

a > h3, a > h2 {
    color: var(--orange);
    transition: 0.15s;
}