:root {
    --color-bg-page: #000000;
    --color-bg-topbar: #091540;
    --color-bg-header: #1B2CC1;
    --color-bg-navbar: #091540;
    --color-bg-sidebar: #303350;
    --color-bg-box: #091540;
    --color-bg-main: transparent;
    --color-bg-footer: #091540;

    /*--TEXT COLORS--*/
    --color-text: #ABD2FA;
    --color-text-main: #091540;
    --color-heading: #7692FF;
    --color-link: #7692FF;
    --color-link-hover: #ABD2FA;
    --color-border: #7692FF;
    --glow-color: #7692FF;

    /*--images--*/
    --header-image: url('img/images/blustar2.jpg');
    --page-bg-image: url('');


    /*--TYPHO--*/
  
    /*--display font for h1/h2/h3--*/
    --font-heading: 'UnifrakturCook', cursive;
    
    /*--font for the custom <p2> tag--*/
    --font-p2: 'Germania One', cursive;
    
    /*--readable gothic-style font for normal <p> text--*/
    --font-body: 'IM Fell English', serif;
    
    /*--everything else (nav, sidebars, footer) keeps the system font--*/
    --font-main: sans-serif;
    --h1-size: 32px;
    --h2-size: 22px;
    --h3-size: 18px;

    /*--sizing--*/
    --layout-max-width: 1400px;
    --sidebar-width: 300px;
    --space-lg: 20px;
    --space-sm: 10px;
    --border-radius: 0px;
    --corner-cut: 16px;

}

/*--RESET--*/

* {box-sizing: border-box;}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--color-bg-page);
    background-image: var(--page-bg-image);
    background-size: 65px;
    color: var(--color-text);
}

/*--PAGE WRAPPER--*/
/*--this wraps the whole site and centers it--*/

#container {
    max-width: var(--layout-max-width);
    margin: 0 auto;
}

/*--links inside the content (not the navbar)--*/
#container a {
    color: var(--color-link);
    font-weight: bold;
}

#container a:hover {
    color: var(--color-link-hover);
}

/*--TOP BAR--*/

#topBar {
    width: 100%;
    height: 100px;
    padding: var(--space-sm);
    font-size: smaller;
    background-color: var(--color-bg-topbar);
}

/*--HEADER + NAVBAR--*/

#header {
    width: 100%;
    height: 400px;
    background-color: var(--color-bg-header);
    background-image: var(--header-image);
    background-size: cover;
    background-position: center;
}

#navbar {
    width: 100%;
    height: 40px;
    margin-bottom: var(--space-sm);
    background-color: var(--color-bg-navbar);
}

#navbar ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#navbar li {
    padding-top: var(--space-sm);
}

#navbar li a {
    color: var(--color-link);
    font-weight: 800;
    text-decoration: none;
}

#navbar li a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

/*--MAIN LAYOUT (GRID)--*/
/*--this is the part that lets you move things around--*/
/*--to reorder the left sidebar, content and right sidebar,--*/
/*--just change the order of the words inside "grid-template-areas"--*/
/*--example: to show the right sidebar first, write--*/
/*--"sidebar-right content sidebar-left"--*/

#flex {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--sidebar-width);
    grid-template-areas: "sidebar-left content sidebar-right";
    gap: var(--space-sm);
}

#leftSidebar {
    grid-area: sidebar-left;
}

main {
    grid-area: content;
}

#rightSidebar {
    grid-area: sidebar-right;
}

/*--SIDEBARS--*/
/*--this colors BOTH sidebars at once--*/
/*--for different colors per side, write separate rules for--*/
/*--#leftSidebar and #rightSidebar instead--*/

aside {
    background-color: var(--color-bg-sidebar);
    padding: var(--space-lg);
    font-size: smaller;
    /*--flat cut corners instead of square ones, adjust size with --corner-cut--*/
    clip-path: polygon(
        var(--corner-cut) 0,
        calc(100% - var(--corner-cut)) 0,
        100% var(--corner-cut),
        100% calc(100% - var(--corner-cut)),
        calc(100% - var(--corner-cut)) 100%,
        var(--corner-cut) 100%,
        0 calc(100% - var(--corner-cut)),
        0 var(--corner-cut)
    );
}

/*--the inner card inside a sidebar (the "Updates" box)--*/
.box {
    background-color: var(--color-bg-box);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: var(--space-sm);
}

.box ul {
    padding-left: var(--space-sm);
}

/*--MAIN CONTENT--*/

main {
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    padding: var(--space-lg);
}

/*--TYPOGRAPHY--*/

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-heading);
}

h1 {
    font-size: var(--h1-size);
    /*--strong glow--*/
    text-shadow:
        0 0 6px var(--glow-color),
        0 0 16px var(--glow-color),
        0 0 32px var(--glow-color);
}

h2 {
    font-size: var(--h2-size);
    /*--soft glow, noticeably weaker than h1--*/
    text-shadow:
        0 0 3px var(--glow-color),
        0 0 7px var(--glow-color);
}

h3 {
    font-size: var(--h3-size);
    /*--no glow--*/
    text-shadow: none;
}

strong {
    color: var(--color-heading);
}

/*--regular paragraphs, a readable gothic-style serif--*/
p {
    font-family: var(--font-body);
}

/*--Germania One: <p2>text</p2>--*/
p2 {
    display: block;
    font-family: var(--font-p2);
    margin: 1em 0;
}

/*--FOOTER--*/
footer {
    width: 100%;
    margin-top: var(--space-sm);
    padding: var(--space-sm);
    text-align: center;
    background-color: var(--color-bg-footer);
}

/*--FRAMED IMAGE--*/
  .frame-wrap {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto;
}
 
.frame-photo {
  position: absolute;
  width: 210px;
  height: 210px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
 
.frame-img {
  position: absolute;
  width:  260px;
  height:  260px;
  top: 0;
  left: 0;
  pointer-events: none;
}

/*--BOXTRANS--*/
.boxtrans {
    background: rgba(9, 21, 64, 0.55);
    border: 1px solid rgba(118, 146, 255, 0.5);
    color: var(--color-text);
    padding: var(--space-lg);
    clip-path: polygon(
        var(--corner-cut) 0,
        calc(100% - var(--corner-cut)) 0,
        100% var(--corner-cut),
        100% calc(100% - var(--corner-cut)),
        calc(100% - var(--corner-cut)) 100%,
        var(--corner-cut) 100%,
        0 calc(100% - var(--corner-cut)),
        0 var(--corner-cut)
    );
}

/*--HEADER INNER LAYOUT--*/
#header {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
}

#header .frame-wrap {
    width: 340px;
    height: 340px;
    flex-shrink: 0;
}

#header .frame-photo {
    width: 280px;
    height: 280px;
}

#header .frame-img {
    width: 340px;
    height: 340px;
}

#header .header-text {
    flex: 1;
    height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}