/*
Theme Name: Gerh. Voldnes AS
Theme URI: http://www.osberget.no/
Author: Magne Grimstad at Osberget, Maxim Kukulinsky at RASAMAX SIA
Author URI: http://www.osberget.no/
Description: Gerh. Voldnes AS Wordpress theme
Version: 1.0.4
Tags: voldnes osberget rasamax
Text Domain: voldnes
*/
/**
 * Reset CSS instead of Normalize inside of Bootstrap
 */

/* Page commons */
html {
  scroll-behavior: smooth;
}

body {
	font-family: 'Roboto', sans-serif;
	font-size: 20px;
}

* > p:first-child {
	margin-top: 0;
}

* > p:last-child {
	margin-bottom: 0;
}

.alignleft {
	float: left;
	margin: 0 20px 10px 0;
}

.alignright {
	float: right;
	margin: 0 0 10px 20px;
}

.aligncenter {
	margin: 0 auto 10px auto;
	display: block;
}

.bg-cover {
	background: center no-repeat;
	background-size: cover;
}

.bg-contain {
	background: center no-repeat;
	background-size: contain;
}

.object-fit-cover {
	object-fit: cover;
}

.object-fit-contain {
	object-fit: contain;
}

/* Fixed aspect ratio images */
.ratio-16x10 {
	--bs-aspect-ratio: calc(10 / 16 * 100%);
}

.ratio-21x5 {
	--bs-aspect-ratio: calc(5 / 21 * 100%);
}

.ratio-21x7 {
	--bs-aspect-ratio: calc(7 / 21 * 100%);
}

/* Typogrtaphy */
.text-strong-yellow strong {
	font-weight: inherit;
	color: #ffc30d;
}
/* 14, 16, 20, 24, 38, 60 */
.text-14 {
	font-size: 14px;
}
.text-16 {
	font-size: 16px;
}
.text-20 {
	font-size: 20px;
}
.text-24 {
	font-size: 24px;
}
.text-38 {
	font-size: 38px;
}
.text-60 {
	font-size: 60px;
}

@media(min-width: 768px) {
	.text-md-14 {
		font-size: 14px;
	}
	.text-md-16 {
		font-size: 16px;
	}
	.text-md-20 {
		font-size: 20px;
	}
	.text-md-24 {
		font-size: 24px;
	}
	.text-md-38 {
		font-size: 38px;
	}
	.text-md-60 {
		font-size: 60px;
	}
}

@media(min-width: 992px) {
	.text-lg-14 {
		font-size: 14px;
	}
	.text-lg-16 {
		font-size: 16px;
	}
	.text-lg-20 {
		font-size: 20px;
	}
	.text-lg-24 {
		font-size: 24px;
	}
	.text-lg-38 {
		font-size: 38px;
	}
	.text-lg-60 {
		font-size: 60px;
	}
}

@media(min-width: 1200px) {
	.text-xl-14 {
		font-size: 14px;
	}
	.text-xl-16 {
		font-size: 16px;
	}
	.text-xl-20 {
		font-size: 20px;
	}
	.text-xl-24 {
		font-size: 24px;
	}
	.text-xl-38 {
		font-size: 38px;
	}
	.text-xl-60 {
		font-size: 60px;
	}
}

.fw-500 {
	font-weight: 500;
}

.accessible-hidden {
	-ms-appearance: none;
	-o-appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
	display: inline;
	width: 0;
	height: 0;
	border: 0 solid transparent;
	color: transparent;
	background: transparent;
	box-shadow: none;
}

.cursor-pointer {
	cursor: pointer;
}

.opacity-30 {
	opacity: 0.3;
}

.opacity-70 {
	opacity: 0.7;
}


/* Header */
/* .header-logo {
	max-width: 145px;
}

img.header-logo[src*=".svg"] {
	width: 100%;
} */

/* Hover menu */
#main-navigation-container input + label {
	display: none;
}

#main-navigation-container .sub-menu {
	list-style: none;
}

#main-navigation-container li {
	position: relative;
}

#menu-primary-menu li a {
	color: inherit;
	text-decoration: none;
}

#menu-primary-menu li.current-menu-item a,
#menu-primary-menu li a:hover,
#menu-primary-menu li.current-menu-parent a {
	text-decoration: underline;
	text-underline-offset: 5px;
}

#menu-primary-menu li .sub-menu a,
#menu-primary-menu li .sub-menu a:hover {
	text-decoration: none;
}

@media (min-width: 1200px) {
	#main-navigation-container .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		list-style: none;
		margin: 0;
		padding: 10px 20px;
		background: white;
	}

	#main-navigation-container li:hover > .sub-menu,
	#main-navigation-container .sub-menu:hover {
		display: block;
		z-index: 100;
	}
}

@media (max-width: 1199px) {
	#main-navigation-container .menu-item-has-children > input {
		display: block;
		position: absolute;
		right: 30px;
		top: -5px;
		-ms-appearance: none;
		-o-appearance: none;
		-moz-appearance: none;
		-webkit-appearance: none;
		appearance: none;
		width: 20px;
		height: 20px;
		margin: 8px -30px 0 10px;
		order: 1;
	}
	#main-navigation-container .menu-item-has-children > input:before,
	#main-navigation-container .menu-item-has-children > input:after {
		content: "";
		position: absolute;
		top: 50%;
		width: 100%;
		height: 2px;
		background: white;
		transition: transform 0.5s;
	}
	#main-navigation-container .menu-item-has-children > input:before,
	#main-navigation-container .menu-item-has-children > input:checked:after {
		transform: translate(0, -50%);
	}
	#main-navigation-container .menu-item-has-children > input:after {
		transform: translate(0, -50%) rotate(90deg);
	}
	#main-navigation-container .menu-item-has-children > .sub-menu {
		display: block;
		flex-direction: column;
		align-items: center;
		width: 100%;
		max-height: 0;
		overflow: hidden;
		list-style: none;
		padding: 0;
		order: 2;
		-webkit-transition: max-height .5s cubic-bezier(0, 1, 0, 1);
		-moz-transition: max-height .5s cubic-bezier(0, 1, 0, 1);
		-ms-transition: max-height .5s cubic-bezier(0, 1, 0, 1);
		transition: max-height .5s cubic-bezier(0, 1, 0, 1);
	}
	#main-navigation-container .menu-item-has-children > .sub-menu > li {
		margin: 30px 0 0 30px;
	}

	#main-navigation-container .menu-item-has-children > input:checked ~ .sub-menu {
		max-height: 1000px;
		-webkit-transition: max-height .5s cubic-bezier(1, 0, 1, 0);
		-moz-transition: max-height .5s cubic-bezier(1, 0, 1, 0);
		-ms-transition: max-height .5s cubic-bezier(1, 0, 1, 0);
		transition: max-height .5s cubic-bezier(1, 0, 1, 0);
	}
}

/* Mobile menu - overlay menu */
@media(max-width: 992px) {
	#menu-primary-menu li.current-menu-item a,
	#menu-primary-menu li a:hover {
		text-underline-offset: 12px;
	}

	#main-navigation-container {
		position: fixed;
		top: 0;
		right: 0;
		background: var(--bs-primary);
		color: white;
		padding: 50px 30px;
		width: 100vw;
		max-width: 320px;
		height: 100vh;
		z-index: 1001;
		transform: translate(100%, 0);
		transition: transform 0.5s;
		box-shadow: 0;
	}
	body.admin-bar #main-navigation-container {
		top: 32px;
	}

	#main-navigation-overlay {
		position: fixed;
		top: 0;
		left: 0;
		opacity: 0;
		width: 100vw;
		height: 0;
		background: #00000070;
		transition: opacity 0.5s, height 0s 0.5s;
		z-index: 1000;
	}

	#menu-checkbox:checked ~ #main-navigation-container {
		transform: translate(0, 0);
		box-shadow: 0 0 10px 0 black;
	}
	#menu-checkbox:checked ~ #main-navigation-overlay {
		opacity: 1;
		height: 100vh;
		transition: opacity 0.5s, height 0s;
	}

	.close-button {
		position: relative;
		width: 20px;
		height: 20px;
	}
	.close-button:before,
	.close-button:after {
		content: "";
		position: absolute;
		top: 50%;
		left: 50%;
		width: 125%;
		height: 2px;
		background: white;
		transform: translate(-50%, -50%) rotate(45deg);
	}
	.close-button:after {
		transform: translate(-50%, -50%) rotate(-45deg);
	}

}
@media(max-width: 782px) {
	body.admin-bar #main-navigation-container {
		top: 46px;
	}
}


/* Menu button - static hamburger */
#menu-button {
	font-size: 0;
	cursor: pointer;
	width: 30px;
	height: 20px;
}

#menu-button > div {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

#menu-button > div > div {
	height: 3px;
	background: var(--bs-blue);
}

/* Blocks */
/* YouTube embed block */
.wp-block-embed iframe {
	width: 100%;
}

/* Image block */
.wp-block-image img {
	height: auto;
}

.wp-block-image figcaption {
	font-size: 14px;
	margin-top: 10px;
	line-height: 1;
}

/* Columns */
@media (max-width: 599px) {
	.wp-block-column + .wp-block-column {
		margin-top: 20px
	}
}

/* Post styles */
.post-content h2 {
	font-size: 20px;
	font-weight: 500;
	margin-bottom: 0px;
}

.share-icons img {
	width: 35px;
}

.share-icons a + a {
	margin-left: 14px;
}

/* Hide Google reCaptcha after 1s */
@keyframes hide_after_1s {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(100px);
	}
}

.grecaptcha-badge {
	animation-name: hide_after_1s;
	animation-delay: 3s;
	animation-duration: 1s;
	animation-fill-mode: forwards;
}


/* Contact Form 7 */
/* Headings and table */
.wp-block-contact-form-7-contact-form-selector {
	margin-top: 60px
}

.wpcf7 h2 {
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 30px;
}

.wpcf7 table {
	font-size: 18px;
	margin-bottom: 40px;
	width: 100%;
}

.wpcf7 table th {
	font-weight: 500;
}

.wpcf7 table td {
	padding-bottom: 20px;
}

.wpcf7 table th + th,
.wpcf7 table td + td {
	width: 70px;
	padding-left: 10px;
}

.wpcf7 table h3 {
	font-size: 18px;
	margin-bottom: 0;
}

/* Text, Email & Number */
.wpcf7-form-control-wrap input[type="text"],
.wpcf7-form-control-wrap input[type="email"],
.wpcf7-form-control-wrap textarea,
.wpcf7-form-control-wrap input[type="number"],
.wpcf7-submit {
	padding: 10px 20px;
	border-radius: 10px;
	border: 1px solid #275a8b;
	width: 100%;
	background-color: transparent;
	color: black;
}

.wpcf7-form-control-wrap input[type="text"]::-webkit-input-placeholder,
.wpcf7-form-control-wrap input[type="email"]::-webkit-input-placeholder,
.wpcf7-form-control-wrap textarea::-webkit-input-placeholder,
.wpcf7-form-control-wrap input[type="number"]::-webkit-input-placeholder {
  color: black;
}

.wpcf7-form-control-wrap input[type="text"]::-moz-placeholder,
.wpcf7-form-control-wrap input[type="email"]::-moz-placeholder,
.wpcf7-form-control-wrap textarea::-webkit-input-placeholder,
.wpcf7-form-control-wrap input[type="number"]::-moz-placeholder {
  color: black;
}

.wpcf7-form-control-wrap input[type="text"]::-ms-input-placeholder,
.wpcf7-form-control-wrap input[type="email"]::-ms-input-placeholder,
.wpcf7-form-control-wrap textarea::-webkit-input-placeholder,
.wpcf7-form-control-wrap input[type="number"]::-ms-input-placeholder {
  color: black;
}

/* Select */
.wpcf7-form-control-wrap select {
	text-align: left;
	padding: 10px 10px;
	border-radius: 10px;
	border: 1px solid #275a8b;
	width: 75px;
}

/* Submit button */
.wpcf7-form-control-wrap input[type="number"] {
	text-align: center;
	padding: 10px 10px;
	border-radius: 10px;
	border: 1px solid #275a8b;
	width: 100%;

}

.wpcf7 .wpcf7-submit:disabled {
	opacity: 0.5;
}

/* Acceptance & Checkbox */
.wpcf7-form-control.wpcf7-checkbox input,
.wpcf7-form-control.wpcf7-acceptance input {
	width: 59px;
	height: 49px;
	flex-shrink: 0;
	appearance: none;
	border: 1px solid #275a8b;
	border-radius: 10px;
	position: relative;
	margin: 0
}

.wpcf7-form-control.wpcf7-checkbox input:before,
.wpcf7-form-control.wpcf7-acceptance input:before {
	content: '';
	position: absolute;
	width: 15px;
	height: 30px;
	border: 2px solid transparent;
	border-bottom-color: #275a8b;
	border-right-color: #275a8b;
	transform: rotate(45deg) translate(17px,-12px);
	opacity: 0;
	transition: opacity .25s;
}

.wpcf7-form-control.wpcf7-checkbox input:checked:before,
.wpcf7-form-control.wpcf7-acceptance input:checked:before {
	opacity: 1
}

.wpcf7-submit {
	display: block;
	width: auto;
	padding: 10px 40px;
	background-color: #275a8b;
	color: white;
	text-transform: uppercase;
}

.wpcf7-list-item {
	margin: 0;
}

.wpcf7-form label {
	width: 100%;
}

.wpcf7-list-item label,
.accept-policy-wrapper {
	display: flex;
	align-items: center;
	align-content: center;
	}

.wpcf7-list-item-label,
.accept-policy-wrapper label {
	margin-left: 15px;
	flex-grow: 1;
	text-align: left;
}

.wpcf7-form-control.wpcf7-acceptance {
	display: block;
	margin-top: 40px;
}

/* Footer */
#footer-banners img {
	filter: grayscale(1);
	transition: filter .5s;
}

#footer-banners a:hover img {
	filter: grayscale(0);
}

#footer a {
	color: white;
}

/* Front page - social section */
.social-item-image:after {
    content: '';
    position: absolute;
    z-index: 1;
    top: 10px;
    right: 15px;
    width: 22px;
    height: 22px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100%;
}

.social-item-image.facebook:after {
    background-image: url('images/facebook.svg'); 
}

.social-item-image.instagram:after {
    background-image: url('images/instagram.svg'); 
}

.front-page-news-text {
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
}

/* Contact form 7 Apply for tournament */



#wpcf7-f240-o1 .wpcf7-form-control-wrap input[type="number"],
#wpcf7-f240-o1 .wpcf7-form-control-wrap input[type="text"],
#wpcf7-f240-o1 .wpcf7-form-control-wrap input[type="date"] 
{
    text-align: left !important;
    border-radius: 10px;
    border: 1px solid #275a8b;
    padding: 10px 20px;
}

#wpcf7-f240-o1 .wpcf7-list-item.first {
    padding-right: 15px;
}
    

#wpcf7-f240-o1 .team-registration-table h2{
    padding: 10px 0;
}

#wpcf7-f240-o1 .licence-status {
    padding-bottom: 5rem !important;
}

#wpcf7-f240-o1 .licence-status .wpcf7-list-item{
    padding-right: 10px;
}

#wpcf7-f240-o1 .file-upload-text {
    padding: 0.5rem 0;
    font-size: 16pt;
    font-weight: 450;
}

#wpcf7-f240-o1 table {
    font-size: 16pt !important;
    font-weight: 500 !important;
}
/* Counter */
.table-label-1:before {
	counter-increment: playercounter;
	content: counter(playercounter) ". ";
  }
body{
	counter-reset: playercounter;
}

/* End Counter */

/* Input, button and radio styling in application form */
.add-players-btn,
.wpcf7 input[type="file"] {
	border: none;
	border-radius: 10px;
	background-color: #275a8b;
	color: white;
	padding: 10px 40px;
	text-transform: uppercase;
	text-align: center;
}

::-webkit-file-upload-button {
	display: none;
}

#wpcf7-f240-o1 input[type="radio"] {
	transform: scale(2);
	background-color: transparent !important;
	color: transparent !important;
	border: 1px solid #275a8b !important;
}
#wpcf7-f240-o1 input[type="date"] {
	background: transparent;
	color: black;
}
::-webkit-calendar-picker-indicator {
	width:  90%;
    height: 90%;
    display: block;
    position:  absolute;
    top:  0;
    left:  0;
    margin:  0;
	background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNSIgdmlld0JveD0iMCAwIDI0IDI0Ij48cGF0aCBmaWxsPSJXaW5kb3dUZXh0IiBkPSJNMjAgM2gtMVYxaC0ydjJIN1YxSDV2Mkg0Yy0xLjEgMC0yIC45LTIgMnYxNmMwIDEuMS45IDIgMiAyaDE2YzEuMSAwIDItLjkgMi0yVjVjMC0xLjEtLjktMi0yLTJ6bTAgMThINFY4aDE2djEzeiIvPjxwYXRoIGZpbGw9Im5vbmUiIGQ9Ik0wIDBoMjR2MjRIMHoiLz48L3N2Zz4=);
	background-repeat: no-repeat;
	background-position: right top;
	background-origin: content-box;

}


.btn-primary {
	border-radius: 10px;
	text-decoration: none;
}


/* Container */
.container.container-narrow {
	max-width: 600px;
}

.bg-f1 {
	background-color: #f1f1f1;
}