/*
Theme Name: Laguna Five Cup
Theme URI: https://wordpress.org/themes/twentytwentyfive/
Author: Leo Advertising
Author URI: https://wordpress.org
Description: Custom theme realized by Lilia Zikrach for Leo Adv
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.2
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lfc
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, full-site-editing, block-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/

/*
 * IMPORTANT: This file is only served on the frontend when `SCRIPT_DEBUG` is enabled;
 * in most instances, the `style.min.css` file will be served. It is not recommended that you
 * use the Theme File Editor to modify this stylesheet. Instead, add the necessary style
 * overrides via "Additional CSS" in the Site Editor.
 */

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 0;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption, p {
	text-wrap: pretty;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

/*
 * Prevents unnecessary scrollbars while handling long lines of preformatted text.
 * https://core.trac.wordpress.org/ticket/63875
 */
:where(pre) {
	overflow-x: auto;
}


/* LFC theme */
a,
a:hover {
	text-decoration: none!important;
    text-decoration-thickness: 0px !important;
    text-underline-offset: 0px;
}
header {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 10000;
}
.header-block {
	height: 120px;
}
.header-block > .wp-block-group,
.header-block > .wp-block-group > .wp-block-group {
	height: inherit;
}
header .wp-block-site-logo {
	position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}
footer {
	margin-top:0;
}
footer .wp-block-social-links .wp-social-link svg {
    height: 20px;
    width: 20px;
}
.powered-by-text a {
	vertical-align: sub;
}
html,
body.home main {
	background-color: var(--wp--preset--color--dark-blue);
}
body:not(.home) main {
	background-color:#fff;
}
main {
	min-height: 75vh;
	overflow: hidden;
}
a.has-background.wp-element-button:hover {
  background-color: #C47E00!important;
}
.hero {
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
	    background:
      linear-gradient(to right, rgba(1, 23, 80, 0.9), rgba(1, 23, 80, 0.3)),
      linear-gradient(to top, rgba(1, 23, 80, 0.9), transparent 10%);
	z-index: 0;
}
.hero-content {
	position: relative;
	z-index: 1;
}
body:has(header) main {
	padding-top: 120px;
}

body.logged-in .not-logged-in-cta,
body.logged-in .menu-login,
body.logged-in .menu-register {
    display: none !important;
}
body:not(.logged-in) .logged-in-cta,
body:not(.logged-in) .menu-profile {
    display: none !important;
}
.leaderboard {
	display: flex;
	justify-content: center;
	align-items: center;
}
table {
  border-collapse: collapse;
  width: 100%;
  border-spacing: 0;
}
.predictions-closed,
table th {
	color: rgb(179, 179, 179);
	font-size: 16px;
	text-transform: lowercase;
}
.match-bets {
	padding: 0;
	background-color: #FFD988;
}
.buttons-container {
	display: flex;
}
.match-bets button {
	padding: 10px 15px;
	border: 0;
	background-color: #FFD988;
    font-family: inherit;
    font-size: 16px;
	cursor: pointer;
	color: var(--wp--preset--color--dark-blue)!important;
}
.match-bets button:hover {
    background-color: var(--wp--preset--color--orange);
}
.matches-list {
	display: flex;
	justify-content: center;
    flex-direction: column;
}
table td,
table th {
	text-align: center;
	padding: 10px;
	border: 1px solid var(--wp--preset--color--dark-blue);
}
.match-table td.matches-date {
	text-align: center;
	text-transform: uppercase;
	background-color: var(--wp--preset--color--orange);
	margin-bottom: 0;
	padding: 10px 10px 5px 10px;
}
.lfcbet-alert {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
}
#envirabox-title {
	display: none;
	opacity: 0;
	width: 0;
	height: 0;
}
#bet-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
	width: 80%;
}
.account-points,
.logout-button {
	text-align: center;
}
.account-points {
	margin-top: 40px;
	margin-bottom: 20px;
}
.um-form {
	margin-top: 20px;
}
.um-button {
	background-color: var(--wp--preset--color--orange)!important;
	color: #fff!important;
}
.um-button[type="submit"] {
	background-color: var(--wp--preset--color--dark-blue)!important;
	color: #fff!important;
}
input,
body .um .um-form input[type=text],
body .um .um-form input[type=password] {
	border: 1px solid rgba(1, 23, 79, 0.1)!important;
	background-color: #fff!important;
}
body input:-internal-autofill-selected,
body .um .um-form input[type=text]:-internal-autofill-selected,
body .um .um-form input[type=password]:-internal-autofill-selected {
	background-color: #fff!important;
}
.um-field-type_terms_conditions {
	display: flex!important;
	font-size: 12px;
}
.um-field-area:first-child {
	order: 1;
	padding-top: 12px;
    margin-left: 4px;
}
.um-field-area:last-child:has(.um-notice:not([style*="display: none"])) {
    min-height: 150px;
}
.um-notice.err {
	width: 100%;
	position: absolute;
}

/* Animazioni tridenti */
.animazione-tridenti {
  position: relative;
  overflow: visible;
}
.animazione-tridenti .tridente {
  position: absolute;
  top: -50px;
  z-index: 2;
  will-change: transform;
}
.animazione-tridenti .tridente img {
  height: 400px;
}
.animazione-tridenti .tridente:first-of-type {
  left: -100px;

  transform:
    translateY(calc(-50% + 20px))
    rotate(calc(18deg + var(--r, 0deg)));

  transform-origin: bottom center;
}
.animazione-tridenti .tridente:last-of-type {
  right: -100px;

  transform:
    translateY(calc(-50% + 20px))
    rotate(calc(-18deg + var(--r, 0deg)));

  transform-origin: bottom center;
}
/* animazione calciatore */
.animazione-calciatore {
    position: relative;
    overflow: hidden;
    justify-content: center;
    align-items: flex-end;
}

.animazione-calciatore .calciatore {
    position: relative;
    z-index: 2;
    margin: 0;
    will-change: transform;
	transform: translateX(-100px);
}

.animazione-calciatore .pallone {
    position: absolute;
    left: 35%;
    bottom: 150px;
    z-index: 3;
    margin: 0;
    will-change: transform;
}

.animazione-calciatore .pallone img {
    width: 70px;
    height: auto;
}

.um-meta-text,
.um-profile-nav,
.um-cover,
.um-faicon-check {
	display: none!important;
	pointer-events: none;
}
.um-13.um .um-profile-photo a.um-profile-photo-img {
	top:0px!important;
}
.um-header {
	border-bottom: none!important;
}

/* Sponsor */
.sponsor img {
    /*filter: grayscale(100%);*/
    /*transition: filter 0.3s ease;*/
    display: inline-block;
    max-width: 150px;
    max-height: 100px;
    object-fit: contain;
    padding: 10px;
}
.sponsor figure {
    display: flex;
    align-items: center;
    justify-content: center;
}
.leaderboard-user {
	display: flex;
	justify-content: center;
	align-items: center;
}
.leaderboard-user img {
	border-radius: 20px;
	margin-right: 10px;
	width: 40px;
    height: 40px;
    object-fit: cover;
}
body:not(.admin-bar) .logout-button {
    display: none !important;
}

@media screen and (min-width:640px) {
	.match-bets button{
		height: 50px;
		width: calc(100%/3);
	}
	.match-bets button:not(:last-child) {
		border-right: 1px solid var(--wp--preset--color--dark-blue);
	}
	footer .wp-block-columns {
		justify-content: center;
	}
	footer a:hover,
	.wp-block-navigation__container a:hover {
		text-decoration: none;
		color: var(--wp--preset--color--orange)!important;
	}
	/* helpers */
	.lg-hidden {
		display: none!important;
	}
	.um-header {
		margin-top: 100px!important;
		/*margin-bottom: 100px!important;*/
	}
}
@media screen and (max-width:640px) {
	header .wp-block-site-title a {
		word-break: break-word;
        display: block;
        width: 70px;
	}
	.buttons-container {
		flex-direction: column;
	}
	.um-form .um-center .um-button {
		width: 100%!important;
	}
	.match-bets button:not(:last-child) {
		border-bottom: 1px solid var(--wp--preset--color--dark-blue);
	}
	.wp-block-buttons,
	.wp-block-buttons * {
		width: 100%;
	}
	.wp-block-navigation__container a {
		color: var(--wp--preset--color--dark-blue)!important;
		font-size: 20px;
	}
	footer .wp-block-navigation__container a {
		color: #fff!important;
	}
	.wp-block-navigation__responsive-container-close svg path {
		fill: var(--wp--preset--color--dark-blue);
	}
	footer p,
	footer .wp-block-navigation__container,
	footer .wp-block-social-links  {
		text-align: center!important;
		justify-content: center;
	}
	.lfc-shield img {
		position: absolute;
    	top: -100px;
		width: 300px;
		z-index: 1;
		left: 50%;
		transform: translateX(-50%);
	}
	.wp-block-navigation__overlay-container .has-background {
		background-size: 150%!important;
		background-repeat: no-repeat;
	}
	.sponsor .wp-block-group-is-layout-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .um-form {
    	margin-top: 100px!important;
	}
		/* helpers */
	.sm-hidden {
		display: none!important;
	}
}