/*
Theme Name: AEI Convention (Con Base Theme)
Template: con-theme-base
Author: Degu Web Dev
Author URI: https://deguweb.dev
Version: 1.11
*/

html {
    scroll-behavior: smooth;
}

.wp-block-button__link {
	font-weight: bold;
	color: #FFF!important;
	transition: all 0.3s ease;
	min-width: 230px;
	font-size: 1.1rem;
  	padding: 1em 2em;
}
.wp-block-button__link:hover {
	background: #222!important;
}

.sociallist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
}
.sociallist a {
    display: block;
}
.sociallist a svg {
    width: 40px;
    height: 35px;
    fill: blue;
    transition: all 0.3s ease;
}
.sociallist a:hover svg {
    fill: #222;
}




header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em 0;
    gap: 1em;
}
header .logo {
    order: 2;
    display: block;
    flex-basis: 300px;
    flex-shrink: 0;
}
header .logo img {
    display: block;
    width: 300px;
    margin: 0 auto;
}

header .top {
    order: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em 1em;
    font-weight: bold;
    width: 30%;
    flex-shrink: 1;
}
header .sociallist {
    order: 3;
    width: 30%;
    justify-content: flex-end;
    flex-shrink: 1;
}
header .menuwrap {
    order: 10;
    width: 100%;
}
header .menuwrap #topnav {
    margin: 0 -1em;
    background: blue;
    border-radius: 0.5em;
    position: relative;
    z-index: 80;
}
#topnav .innernav {
    display: none;
}
#topnav .menu > li > a {
    color: #FFF;
    padding: 1.25em 0;
    min-width: 230px;
}
#topnav .menu > li > a::after {
    filter: brightness(0) invert(1);
}
#topnav .menu > li .sub-menu {
    background: blue;
    padding-top: 1em;
}
#topnav .menu > li .sub-menu li a {
    color: #FFF;
    transition: background-color 0.3s ease;
}
#topnav .menu > li .sub-menu li.current-menu-item a,
#topnav .menu > li .sub-menu li a:hover {
    color: #FFF;
    background: #222;
}

.headline {
    margin-top: -34px;
    padding: 7em 2em 6em;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
.headline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.5);
    z-index: 2;
}
.headline h1 {
    position: relative;
    z-index: 3;
    color: blue;
    text-shadow: 0 0 5px #FFF, 0 0 10px #FFF, 0 0 20px #FFF;
}
.darktheme .headline::after {
    background: rgba(0,0,0,0.5);
}
.darktheme .headline h1 {
    color: #FFF!important;
    text-shadow: 0 0 5px #000, 0 0 10px #000, 0 0 20px #000;
}


main > .homepagebuttons {
    padding: 0 1em;
    margin: -1.5em 0 2.5em;
    position: relative;
    z-index: 10;
}
main > .homepagebuttons .button {
    box-shadow: 0 0 0 3px #FFF;
}
main > .homepagebuttons .button svg {
	height: 1.25em;
	width: 1.25em;
	fill: #FFF;
	vertical-align: text-bottom;
}


h1 {
    font-size: 2.5rem;
    letter-spacing: 1px;
}
h2 {
    font-size: 2rem;
    letter-spacing: 1px;
}
h3, h4, h5, h6 {
    font-size: 1.75rem;
    letter-spacing: 1px;
}


.main {
    padding: 2em;
}
.main.mainhome {
	padding: 0 2em 1em;
    display: flex;
    justify-content: space-between;
    gap: 1.5em;
}
.homecolL {
    width: 25%;
    text-align: center;
}
.homecolC {
    width: 45%;
    flex-grow: 1;
}
.homecolR {
    width: 30%;
}
.bskycol {
    border-width: 1px;
}


.wp-block-columns.is-layout-flex {
    margin-bottom: 0!important;
	gap: 0 2em!important;
}


.fulliframe, .fullimage {
    border-top: 0.5em solid blue;
    margin-top: -0.5em;
    height: Calc(100vh - 185px);
    padding: 0;
}
.fulliframe iframe {
    border: none!important;
}
.fullimage img {
    padding: 1em;
    max-width: Calc(100% - 2em);
}

#sortable-table {
    width: Calc(100% - 1em)!important;
}

.wp-block-table table {
    border-color: #FFF;
}
.wp-block-table tr th {
    color: #FFF;
}
.wp-block-table tr th:first-of-type {
    border-top-left-radius: 0.5em;
}
.wp-block-table tr th:last-of-type {
    border-top-right-radius: 0.5em;
}
.wp-block-table table,
.wp-block-table thead,
.wp-block-table tbody,
.wp-block-table tr,
.wp-block-table tr th,
.wp-block-table tr td {
    border-width: 2px;
    border-color: #FFF!important;
}
.wp-block-table tr:nth-of-type(odd) td {
    background: #f9f9f9;
}
.wp-block-table tr:nth-of-type(even) td {
    background: #eee;
}

.reg-table {
    margin: 2em 0;
}
.reg-table tr th:first-of-type,
.reg-table tr th:last-of-type{
    text-align: left;
}
.reg-table tr td:first-of-type {
    width: 200px;
}
.reg-table tr td:nth-of-type(2) {
    text-align: center;
    width: 100px;
}
.reg-table tr td:last-of-type {
    text-align: left;
}



h2#application {
	text-align: center;
}
.applicationframe {
    min-height: 85vh;
    margin: 0 auto 1em;
    max-width: 800px;
    border: 1px solid #CCC;
}
.applicationframe iframe {
    height: 85vh;
}


hr {
    margin: 3em auto;
    background: blue;
    border-radius: 3px;
    height: 3px;
    border: none!important;
}
hr.half {
    margin: 2em;
    background: #EEE!important;
}



footer {
    background: linear-gradient(0deg, #FFF 0%, #EEE 100%);
    padding: 2em 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 2rem;
    font-size: 0.9rem;
}
footer .copyright,
footer .menu {
    font-size: 0.8rem;
}
footer img {
    display: none;
    margin: 1rem auto;
}
footer p {
    margin: 0.5rem 0;
}
footer a:hover, footer a {
    text-decoration: none;
}


@media (max-width: 1200px) {
    .main.mainhome, footer { display: block; }
    .homecolL { width: auto; }
    .homecolC { width: auto; }
    .homecolR { width: auto; }
    .homecolL img { display: none; }
    footer .sociallist { margin-bottom: 1rem; }
    footer img { display: block; }
}

@media (max-width: 986px) {
    header .top, header > .sociallist {
        display: none;
    }
    header {
        display: block;
        position: relative;
        padding: 1em 3em 0!important;
        border-bottom: 3px solid blue;
    }
    header .logo {
        width: 230px;
        margin: 0 auto 1em;
    }
    header #togglenav {
        position: absolute;
        top: 25px;
        right: 1em;
        z-index: 98;
    }
    header .menuwrap #topnav {
        margin: 0 -3em;
        border-radius: 0;
    }
    header #topnav .innernav {
        display: block;
        color: #FFF;
        text-align: center;
        font-weight: bold;
        padding: 1em;
    }
    header #topnav .innernav .sociallist {
        width: auto;
        justify-content: center;
        margin-top: 1em;
    }
    header #topnav .innernav .sociallist a svg {
        fill: #FFF!important;
    }
    header #topnav .menu {
        justify-content: stretch;
        align-items: stretch;
        padding-bottom: 1em;
    }
    header #topnav .menu > li > a {
        padding: 0.75em;
        min-width: 0;
    }
    header #topnav .menu > li .sub-menu {
        border-radius: 0;
        padding: 0 0 1em;
    }
    header #topnav .menu > li .sub-menu li a {
        padding: 0.75em 1em;
    }
    main > .homepagebuttons {
        margin: 1em 0;
    }
    .headline {
        margin-top: 0;
        border-bottom: 3px solid blue;
        padding: 4em 1em;
    }
    .main {
        padding: 1em;
    }
    .fulliframe, .fullimage {
        border-top: none;
        margin-top: 0;
        height: Calc(100vh - 101px);
    }
    .break {
        display: block;
    }
}

@media (max-width: 768px) {
	.main {
		padding: 2em 1em;
	}
	.main.mainhome {
		padding: 0 1em 1em; 
	}
    .headline {
        padding: 2.5em 1em;
    }
    .reg-table thead {
        display: none;
    }
    .reg-table {
        border: 1px solid #222!important;
        border-radius: 0.25em;
        overflow: hidden;
    }
    .reg-table table,
    .reg-table tr, .reg-table td {
        display: block;
        border: none;
        width: auto!important;
        text-align: center!important;
    }
    .wp-block-table tr:nth-of-type(odd) td {
        background: #FFF;
    }
    .reg-table tr {
        border: 1px solid #222!important;
    }
    .reg-table td.badgeprice {
        padding: 0 0.5em;
        font-weight: bold;
    }
    .reg-table tr td small {
        font-size: 0.75em;
    }
    .reg-table tr td:last-of-type {
        font-size: 0.9em;
    }
    hr {
        margin-top: 2em;
        margin-bottom: 2em;
    }
}
