* {padding: 0; margin: 0; box-sizing: border-box;}
html {font-size: 16px; line-height: 1.5; min-height: 100%; scroll-behavior: smooth; position: relative;}
body {font-size: 1rem; color: white; background: url(/img/sena.jpg) center center / cover no-repeat fixed; font-family: 'Roboto', sans-serif; min-height: 100%;}
img {max-width: 100%;}
input, textarea {font-size: 1rem; font-family: 'Roboto', sans-serif; color: rgba(0,0,0,0.75); border: 1px solid rgba(0,0,0,0.5); border-radius: 0; background: white; padding: 0.5rem;}
textarea {resize: vertical;}
label {padding-bottom: 0.15rem; display: block;}
.container {max-width: 107.35em; margin: 0 auto; padding: 0 3rem;}
section {display: flex; flex-direction: row-reverse; gap: 3rem; align-items: flex-start; margin-bottom: 8rem;}
header > div:first-child {width: 33rem; max-width: 100%; text-align: center;}
aside, main {min-width: 32rem; width: 32rem; padding: 2.75rem 3.5rem; border-radius: 3.5rem; backdrop-filter: blur(2rem); background: rgba(0,0,0,0.2);}
aside {text-align: center; padding-left: 3rem; padding-right: 3rem;}
aside ul, aside h3 {font-size: 1.1rem; font-weight: bold;}
aside h3 {margin-bottom: 0.15rem;}
aside a {color: white; text-decoration: none;}
aside div.slogan {font-size: 1.4rem; line-height: 1.3; font-weight: 700;}
main {flex-grow: 1; flex-shrink: 1; background: rgba(255,255,255,0.6);}
main, main a {color: rgba(0,0,0,0.5);}
main a {color: #1d4fb3;}
main > ol, main > ul, main p, main table {margin-bottom: 1.5rem;}
p.userdata {margin-bottom: 3rem; columns: 18.45rem; gap: 2rem;}
p.boardonly {display: none;}
main table {border-collapse: collapse; border: 1px solid rgba(0,0,0,0.2);}
main table td, main table th {text-align: left; padding: 0.25rem 0.5rem; vertical-align: top; border-right: 1px solid rgba(0,0,0,0.2); font-size: 0.9rem;}
main table td {border-top: 1px solid rgba(0,0,0,0.2);}
main table td:last-child, main table th:last-child {border-right: 0;}
main ol {margin-left: 2rem;} 
main ul {margin-left: 1rem;}
nav > ul {display: flex; gap: 0 2.5rem; align-items: center; font-size: 1.125rem; position: relative; z-index: 9;}
nav > ul ul {display: none; position: absolute; backdrop-filter: blur(2rem); background: rgba(255,255,255,0.6); text-align: left; z-index: 9;}
nav > ul ul li a {color: rgba(0,0,0,0.75); padding: 0.65rem 1.1rem; display: block; font-size: 0.9rem; font-weight: normal;}
nav > ul ul li:hover a, nav > ul ul li.active a {background: rgba(0,0,0,0.6); color: white; font-weight: bold;}
nav > ul li {list-style: none; position: relative;}
nav > ul > li:hover > a:not(.button)::before, nav > ul > li.active > a::before {width: 100%;}
nav > ul li.haschildren > a::after {
    content: "";
    display: inline-block;
    border-top: 0.4rem solid white;
    border-left: 0.4rem solid transparent;
    border-right: 0.4rem solid transparent;
    margin-left: 0.4rem;
    position: relative;
    bottom: 0.15rem;
}
nav > ul li.hover ul, nav > ul li:hover ul {display: block;}
aside nav > ul {flex-direction: column; align-items: flex-start; margin-top: -0.5rem;}
aside hr:first-child {margin-top: 0.65rem;}
footer a, nav ul li a {color: white; text-decoration: none; font-weight: bold; padding: 0.5rem 0; font-size: 1.125rem; display: inline-block; white-space: nowrap; position: relative;}
nav > ul > li > a:before {
    content: "";
    position: absolute;
    background: white;
    left: 50%;
    bottom: 0.45rem;
    height: 1px;
    width: 0%;
    transform: translateX(-50%);
    transition: width 0.12s ease-in-out;
}
footer, header {display: flex; justify-content: space-between; align-items: center; padding: 2rem 0 1.5rem;}
footer {justify-content: flex-start; gap: 3rem; position: absolute; bottom: 0; padding: 2rem 0; font-size: 0.9rem;}
footer > div:first-child {font-style: italic;}
#togglemenu {display: none;}
.button {border: 0.2rem solid white; display: inline-block; padding: 0.45rem 1rem; transition: all 0.2s ease-in-out;}
h1 {font-size: 2rem; margin-bottom: 1.5rem; line-height: 1.2;}
h2 {font-size: 1.1rem; line-height: 1.2; margin-bottom: 0.15rem; margin-top: 2rem;}
h3 {font-size: 1.1rem; line-height: 1.2;}
hr {height: 2px; background: white; border: 0; margin: 1.75rem auto;}
main hr {background: rgba(0,0,0,0.25);}

aside nav > ul ul > li > a::before {
    content: "";
    position: absolute;
    background: white;
    left: 50%;
    bottom: 0;
    height: 1px;
    width: 0%;
    transform: translateX(-50%);
    transition: width 0.12s ease-in-out;
}
aside nav > ul li {text-align: left;}
aside nav > ul li:hover ul {display: none;}
aside nav > ul li.active ul {display: block!important; position: relative;}
aside nav > ul li ul {background: none; backdrop-filter: none; padding-bottom: 1rem;}
aside nav > ul li ul li.active a, aside nav > ul li ul li:hover a {font-weight: normal; background: none;}
aside nav > ul ul li a {color: white; padding: 0; margin: 0.5rem 1rem; display: inline-block;}
aside nav > ul ul > li:hover > a:not(.button)::before, 
aside nav > ul ul > li.active > a::before {width: 100%;}


table.calendar {text-align: left; margin: 0.75rem auto 1.5rem; border-collapse: collapse;}
table.calendar td {vertical-align: top; padding: 1.25rem 2rem 0 0; line-height: 1.3;}
table.calendar td:nth-child(1), table.calendar td:nth-child(2) {white-space: nowrap;}
table.calendar td:first-child {padding-right: 1rem;}
table.calendar td:first-child, table.calendar td:first-child img {width: 1.2rem; min-width: 1.2rem; height: 1.2rem;}
table.calendar td:last-child {padding-right: 0;}

ul.listsection {margin: 0 0 3rem!important; display: grid; grid-template-columns: repeat(auto-fill, minmax(10.25rem, 1fr)); grid-gap: 2rem;}
ul.listsection li {list-style: none; text-align: center;}
ul.listsection li img {display: block; width: 100%; margin: 0 0 0.5rem;}
ul.listsection li a {color: inherit; text-decoration: none;}

ul.listsection.magazines {grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr))!important;}
ul.listsection.boardmembers {grid-template-columns: repeat(auto-fill, minmax(13.32rem, 1fr));}
ul.listsection.posts {grid-template-columns: repeat(auto-fill, minmax(19.5rem, 1fr));}
ul.listsection.posts li {text-align: left; font-size: 0.9rem;}
ul.listsection.posts li h3 {padding-top: 0.5rem;}
ul.listsection.posts li .date {padding: 0.25rem 0 1rem; opacity: 0.75;}
ul.listsection.posts li .summary {margin-bottom: 1rem;}
ul.listsection.posts li .link {color: #1d4fb3; text-decoration: underline;}

h2 + hr {margin-top: 0.65rem;}
ul.listsection.shortcode {margin-top: 1rem!important;}

p > img {max-width: 35rem; display: block; width: 100%;}

img.avatar {display: block; width: 13rem;}
.profile {display: flex; gap: 2rem;}

form > div {display: flex; flex-direction: column; margin-bottom: 0.75rem; max-width: 40rem;}
input[type="submit"], .button.primary {
    border: 0.2rem solid transparent;
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
    background: rgba(0,0,0,0.55);
    cursor: pointer;
    margin: 1rem 0 1.5rem;
    text-decoration: none;
    transition: background-color 0.2s ease-in-out;
}
input[type="submit"]:hover, .button.primary:hover {
    border: 0.2rem solid transparent;
    background: #1d4fb3;
}
.author {
    font-style: italic; 
    border-top: 0.15rem solid rgba(0,0,0,0.25); 
    border-bottom: 0.15rem solid rgba(0,0,0,0.25);
    padding: 1rem 0; 
    margin-bottom: 1.75rem; 
}
h2 > a.viewall {
    float: right; 
    font-weight: normal; 
    font-size: 0.9rem;
}
.font-resizer {display: flex; padding: 0 2rem; filter: invert(1);}
.font-resizer button {border: 0; background: url(/img/text-size.svg) center bottom / contain no-repeat; padding: 1.5rem 0 0 1.5rem; overflow: hidden; width: 1.5rem; height: 1.5rem; cursor: pointer;}
.font-resizer button:nth-child(1) {background-size: auto 50%; background-position: 80% bottom;}
.font-resizer button:nth-child(2) {background-size: auto 70%; background-position: 40% bottom;}
.font-resizer button:nth-child(3) {background-size: auto 100; background-position: left bottom;}


#scrolltotop {
    position: fixed;
    right: 2rem; 
    bottom: 2.2rem; 
    background: rgba(0,0,0,0.5) url(/img/chevron-up.svg) center 45% / 65% auto no-repeat; 
    width: 2.5rem; 
    height: 2.5rem; 
    overflow: hidden; 
    padding: 2.5rem 0 0 2.5rem;
    border-radius: 0.2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
}
body.hasscrolled #scrolltotop {
    opacity: 1;
    pointer-events: all;
}
.hidden {display: none;}

@media screen and (min-width: 1500px) {
    ul.listsection.posts {grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));}
}
@media screen and (min-width: 1601px) {
    ul.listsection.posts {grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));}
}
@media screen and (max-width: 1600px) {
    aside {min-width: 25rem; width: 25rem;}
    header > div:first-child {width: 25rem;}
    header > div:first-child img {width: 20rem; height: auto;}
    ul.listsection.shortcode li:nth-child(3) {display: none;}
}
@media screen and (max-width: 1250px) {
    ul.listsection.members {grid-template-columns: 1fr 1fr 1fr;}
}

@media screen and (max-width: 1200px) {
    header, section {flex-direction: column;}
    aside, main {width: 100%; min-width: 100%;}
    nav {padding: 1rem 0.5rem 0;}
    nav > ul li a.button {padding: inherit; border: inherit!important; padding: 0.5rem 0;}
    nav > ul li.active a.button::before, nav > ul li:hover a.button::before {width: 100%;}
    nav > ul li a.button:hover {background: inherit;}
    header nav > ul {flex-wrap: wrap; justify-content: center; padding-top: 1rem; border-top: 2px solid white;}
    footer {justify-content: center; width: calc(100% - 6rem);}
    .font-resizer {display: none;}
}

@media screen and (max-width: 650px) {
    .container {padding: 0 3vw;}
    aside, main {padding-left: 8vw; padding-right: 8vw; border-radius: 8vw;}
    footer {justify-content: center; width: 94%;}
    nav > ul {gap: 0 1.5rem;}
    footer {gap: 0 2rem;}
}
@media screen and (max-width: 500px) {
    table.calendar td:nth-child(1) {display: none;}
    h2 > a.viewall {display: none;}
    ul.listsection.magazines,
    ul.listsection.members {grid-gap: 1.25rem;}
    #scrolltotop {right: 0; bottom: 0; border-radius: 0; border-top-left-radius: 0.25rem;}
    ul.listsection.posts {grid-template-columns: 1fr;}
    ul.listsection.members {grid-template-columns: 1fr 1fr;}
}