@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&display=swap');
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.2/font/bootstrap-icons.min.css");

* {
	box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;

    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    flex-shrink: 0;
}

button:focus {
	box-shadow: none;
	outline: none;
}

button:hover {
	cursor: pointer;
}

table {
	border-collapse: collapse;
}

:root {
	--australian-navy-blue: #262661;
	--scouts-medium-blue: #3d5c92;
	--scouts-dark-blue: #1a416f;
	--scouts-dark-green: #00664a;
	--scouts-teal: #008f88;
	--light-grey: #ebebeb;
	--light-mid-grey: #d6d6d6;
	--medium-grey: #808080;
	--dark-grey: #575756;
	--scouts-joeys: #b65518;
	--scouts-cubs: #ffc82e;
	--scouts-scouts: #00ae42;
	--scouts-venturer: #9e1b32;
	--scouts-rover: #dc291e;
	--scouts-international: #622599;

	--white: #fff;
	--default-background: #fafafa;
	--text-default: #16222b;

	--forest-green: #103C22;
	--christmas-red: #B8101C;
	--btn-green: #185D23;
	--warm-cream: #FCF7F0;
	--soft-sand: #F2E9D8;
	--card-white: #FFFBF5;
	--light-warm-grey: #DDD6CC;
	--soft-grey: #F7F7F7;
	--soft-green: #E9F7E6;

	--charcoal: #333;

	--bs-primary-text-emphasis: #052c65;
	--bs-secondary-text-emphasis: #2b2f32;
	--bs-success-text-emphasis: #0a3622;
	--bs-warning-text-emphasis: #664d03;
	--bs-danger-text-emphasis: #58151c;
	--bs-primary-bg-subtle: #cfe2ff;
	--bs-secondary-bg-subtle: #e2e3e5;
	--bs-success-bg-subtle: #d1e7dd;
	--bs-warning-bg-subtle: #fff3cd;
	--bs-danger-bg-subtle: #f8d7da;
	--bs-primary-border-subtle: #9ec5fe;
	--bs-secondary-border-subtle: #c4c8cb;
	--bs-success-border-subtle: #a3cfbb;
	--bs-warning-border-subtle: #ffe69c;
	--bs-danger-border-subtle: #f1aeb5;
}

/*******************************************************************************
                               FONTS
*******************************************************************************/
p,
a,
button,
input,
select,
textarea,
label,
li,
th,
td,
div,
span {
	font-family: 'Nunito Sans', Arial, sans-serif;
	color: var(--text-default);
	line-height: 1.4;
	font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Nunito Sans', Arial, sans-serif;
	color: var(--text-default);
	line-height: 1.1;
}

input,
textarea,
select {
	border: 2px solid var(--light-warm-grey);
	background-color: var(--white);
	border-radius: 8px;
	width: 100%;
	padding: 6px 12px;
	width: 100%;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
	display: block;
	resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
	outline: none;
    border-color: #185D23;
    box-shadow: 0 0 0 3px rgba(24, 93, 35, 0.15);
}

.text-center {
	text-align: center;
}

body {
	background-color: var(--white);
}

.container {
	max-width: 1200px;
	margin: 0px auto;
	padding-left: 20px;
	padding-right: 20px;
}


/*******************************************************************************
                               		HEADER
*******************************************************************************/
header {
	background-color: var(--australian-navy-blue);
}

.header-frame {
	padding: 20px;
	display: flex;
	justify-content: space-between;
}

header .logo-title {
	display: flex;
	gap: 20px;
}

header .logo {
	border-right: 1px solid var(--white);
	padding-right: 20px;
}

header .logo img {
	height: 70px;
}

header .logo-vertical {
	display: none;
}

header .title {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
}

header .title .scouts {
	margin: 0px;
	color: var(--white);
	font-size: 19px;
}

header .title .trees {
	margin: 0px;
	color: #9DD742;
	font-size: 30px;
}

header .actions {
	display: flex;
	align-items: center;
	gap: 20px;
}

header .actions a {
	color: var(--white);
	text-decoration: none;
	font-weight: 600;
}

header .actions a:not(.btn-green):hover {
	text-decoration: underline;
}

.btn-green {
	background-color: var(--btn-green);
	border: 2px solid var(--btn-green);
	color: var(--white);
	font-weight: 800;
	border-radius: 7px;
	padding: 10px 20px;
	line-height: 1.1;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
}

.btn-green-light {
	background-color: var(--white);
	border: 2px solid var(--btn-green);
	color: var(--btn-green);
	font-weight: 800;
	border-radius: 7px;
	padding: 10px 20px;
	line-height: 1.1;
	text-decoration: none;
}

@media only screen and (max-width: 991px) {
	header .logo img {
		height: 50px;
	}
}

@media only screen and (max-width: 767px) {
    .header-frame {
		flex-direction: column;
		gap: 20px;
	}
	header .actions {
		justify-content: center;
	}
}

@media only screen and (max-width: 500px) {
	header .title .scouts {
		font-size: 16px;
	}
	header .title .trees {
		font-size: 26px;
	}
}

@media only screen and (max-width: 420px) {
	header .logo-vertical {
		display: inline;
	}
	header .logo-horizontal {
		display: none;
	}
}

/*******************************************************************************
                               		FOOTER
*******************************************************************************/
footer {
	background-color: var(--australian-navy-blue);
	padding-top: 20px;
}

footer .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 30px;
	padding-bottom: 20px;
}

footer .organisations {
	display: flex;
	gap: 30px;
}

footer .scouts-vic {
	border-right: 2px solid var(--white);
	padding-right: 20px;
	display: flex;
	align-items: center;
}

footer .scouts-vic-logo,
footer .scouts-vic-logo-vertical,
footer .merri-bek-barebin-logo {
	height: 70px;
}

footer .scouts-vic-logo-vertical {
	display: none;
}

footer .merri-bek-barebin {
	display: flex;
	gap: 20px;
	align-items: center;
}

footer .merri-bek-barebin-text p {
	margin: 0px;
	color: var(--white);
	line-height: 1.4;
	max-width: 500px;
}

footer .merri-bek-barebin-text p:first-child {
	font-weight: 700;
	font-size: 20px;
}

footer .links {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
	display: flex;
	gap: 20px;
}

footer .links li {
	margin: 0px;
}

footer .links li a {
	color: var(--white);
	text-decoration: none;
}

footer .links li a:hover {
	text-decoration: underline;
}

footer .copy {
	background-color: var(--charcoal);
	color: var(--white);
	text-align: center;
	padding: 5px;
}

@media only screen and (max-width: 1199px) {
	footer .container {
		flex-direction: column;
		align-items: stretch;
	}
	footer .links {
		justify-content: center;
	}
}

@media only screen and (max-width: 767px) {
    footer .scouts-vic-logo {
		display: none;
	}
	footer .scouts-vic-logo-vertical {
		display: inline;
	}
}

@media only screen and (max-width: 575px) {
	footer .organisations {
		flex-direction: column;
	}
    footer .scouts-vic-logo {
		display: inline;
	}
	footer .scouts-vic-logo-vertical {
		display: none;
	}
	footer .scouts-vic {
		border-right: none;
		padding-right: 0px;
		justify-content: center;
		padding-bottom: 20px;
	}
	footer .merri-bek-barebin {
		flex-direction: column;
		justify-content: center;
		gap: 5px;
	}
	footer .merri-bek-barebin-text p {
		text-align: center;
	}
}


/*******************************************************************************
                               		MODAL
*******************************************************************************/
.modal-overlay {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: rgba(0, 0, 0, 0.4);
	z-index: 100;
}

.modal-flex {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 101;
	display: flex;
	justify-content: center;
	align-items: center;
}

.modal-content {
	background-color: #fff;
	border-radius: 16px;
	max-width: 500px;
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.modal-header {
	padding: 20px 20px 0px 20px;
}

.modal-header h2 {
	margin-top: 0px;
	margin-bottom: 0px;
	line-height: 1.1;
}

.modal-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.modal-footer {
	border-top: 1px solid var(--light-grey);
	padding: 20px;
	display: flex;
	justify-content: space-between;
}

.modal-cancel-btn {
	border: 1px solid var(--light-mid-grey);
	border-radius: 4px;
	padding: 3px 10px;
	background-color: var(--white);
	color: var(--dark-grey);
}

.modal-cancel-btn:hover {
	background-color: var(--light-grey);
}

.modal-ok-btn {
	border: 1px solid var(--scouts-dark-blue);
	border-radius: 4px;
	padding: 3px 10px;
	background-color: var(--scouts-dark-blue);
	color: var(--white);
}

.modal-ok-btn:hover {
	background-color: var(--scouts-medium-blue);
	border-color: var(--scouts-medium-blue);
}

.modal-secondary-btn {
	border: 1px solid var(--scouts-dark-blue);
	border-radius: 4px;
	padding: 3px 10px;
	background-color: var(--white);
	color: var(--scouts-dark-blue);
}

.modal-secondary-btn:hover {
	background-color: color-mix(in srgb, white 80%, var(--scouts-dark-blue) 20%);
}


/*******************************************************************************
                               BOOTSTRAP ICONS
*******************************************************************************/
.bi {
	display: inline-block;
	padding: 0;
	margin: 0;
	position: relative;
	top: 1px;
}


/*******************************************************************************
                               CUSTOM CHECKBOXES
		https://www.w3schools.com/howto/howto_css_custom_checkbox.asp
*******************************************************************************/

.custom-cb {
	display: block;
	position: relative;
	margin-bottom: 12px;
	padding-left: 35px;
	cursor: pointer;
	font-size: 22px;
	user-select: none;
}

.custom-cb input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.custom-cb .checkmark {
	position: absolute;
	top: 0;
	left: 0;
	height: 25px;
	width: 25px;
	background-color: #eee;
}

.custom-cb:hover input~.checkmark {
	background-color: #ccc;
}

.custom-cb input:checked~.checkmark {
	background-color: #2196F3;
}

.custom-cb .checkmark:after {
	content: "";
	position: absolute;
	display: none;
}

.custom-cb input:checked~.checkmark:after {
	display: block;
}

.custom-cb .checkmark:after {
	left: 9px;
	top: 5px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 3px 3px 0;
	-webkit-transform: rotate(45deg);
	-ms-transform: rotate(45deg);
	transform: rotate(45deg);
}

.custom-radio {
	display: block;
	position: relative;
	padding-left: 25px;
	margin-bottom: 0px;
	cursor: pointer;
	user-select: none;
}

.custom-radio input {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.custom-radio .checkmark {
	position: absolute;
	top: 0;
	left: 0;
	height: 25px;
	width: 25px;
	border: 2px solid var(--btn-green);
	background-color: var(--white);
	border-radius: 50%;
}

.custom-radio:hover input~.checkmark {
	background-color: var(--soft-green);
}

.custom-radio .checkmark:after {
	content: "";
	position: absolute;
	display: none;
}

.custom-radio input:checked~.checkmark:after {
	display: block;
}

.custom-radio .checkmark:after {
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--btn-green);
}

.custom-radio.sm {
	padding-left: 25px;
}

.custom-radio.sm .checkmark {
	height: 20px;
	width: 20px;
}

.custom-radio.sm .checkmark:after {
	top: 2.5px;
	left: 2.5px;
	width: 12px;
	height: 12px;
}
