:root {
    --english-flag-width: 50px;
    --slovakian-flag-width: 45px;
    --polish-flag-width: 51px;
    --hungarian-flag-width: 51px;
    --edit-button-color: #67e3e6;
    --success: #3bff3b;
    --error: #f84141;
    --important: #db6600;
    --background: #006085;
    --header: #67e3e6;
    --header3: #67e3e6;
    --paragraph: #67e3e6;
    --left-menu-button: #97caff;
    --left-menu-shadow: rgb(0 0 0 / 75%);
    --left-menu-organizator-button-bg: gold;
    --paragraph-howto: #97caff;
    --right-nav-icon: #3D94F6;
    --table-shadow-first: #d1caca;
    --table-shadow-second: white;
    --competition-link: #3366FF;
    --nav-wrapper-shadow: #000000;
    --nav-button-shadow: #000000;
    --nav-button-color: #4d2020;
    --nav-button-bg-top: #67e3e6;
    --nav-button-bg-bottom: #1E62D0;
    --nav-button-bg-top-hover: #1E62D0;
    --nav-button-bg-bottom-hover: #3D94F6;
    --first-line-bg: grey;
    --first-line-text: white;
    --flex-item-button-bg: #31325a;
    --flex-item-button-shadow: rgba(255, 255, 255, 0.75);
    --flex-item-female: #000000;
    --flex-item-male: #000000;
    --all-line-bg-hover: #67e3e6;
    --all-line-shadow: rgba(0, 0, 0, 0.75);
    --first-line-shadow: rgba(0, 0, 0, 0.75);
    --divider-howto: brown;
    --profile-button-shadow: rgba(255, 255, 255, 0.75);
    --profile-button-bg: #31325a;
    --profile-button-color: #67e3e6;
    --registered-highlighter: gold;
}

* {
    /* outline: 1px solid tomato; */
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.email-overflow {
    white-space: nowrap;
    overflow: hidden;
}

h1 {
    font-size: 1.6em;
}

ul {
    padding: 0;
}

li {
    list-style: none;
}

body {
    padding-top: 130px;
    padding-bottom: 30px;
    overflow-y: scroll;
    scrollbar-gutter: stable; /* keeps space for scrollbar even when not needed */
}

a {
    text-decoration: none;
    color: inherit;
}

.content {
    margin: auto;
    padding: 0 10px 0 10px;
    max-width: 1500px;
}

.paragraphcolor {
    color: var(--paragraph);
}

.headercolor {
    color: var(--header);
}

.header3color {
    color: var(--header3);
}

.row::after {
    content: "";
    clear: both;
    display: table;
}

[class*="col-"] {
    float: left;
    padding: 15px;
    width: 100%;
}

#judo-logo {
    width: 50px;
}

#nav-wrapper {
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    display: block;
    transition: top 0.5s;
    background: var(--background);
    z-index: 1000;
}

#right-nav-icon {
    font-size: 50px;
    color: var(--right-nav-icon);
    display: none;
    width: 15px;
    margin-left: calc(100% - 60px);
}

#navbar-hider {
    display: none;
}

#icon {
    margin: 0 !important;
}

#bg {
    /* -webkit-background-color: #3B3C70;
background-color: #3B3C70; */
    -webkit-background-color: var(--background);
    background-color: var(--background);
    /* background-color: #1f1f1f; */
}

#left-nav {
    padding: 0 0 0 15px;
}

#left-nav li {
    display: inline;
}

#right-nav {
    text-align: right;
    padding: 25px;
}

#right-nav li {
    display: inline;
}

#right-nav li:not(:first-child) {
    margin-left: 10px;
}

#nav-wrapper {
    justify-content: space-between;
    -webkit-box-shadow: 0 -94px 100px 100px var(--nav-wrapper-shadow);
    -moz-box-shadow: 0 -94px 100px 100px var(--nav-wrapper-shadow);
    box-shadow: 0 -94px 100px 100px var(--nav-wrapper-shadow);
    text-shadow: 0 0 100px #000000;
    align-items: center;
}

.button a {
    text-shadow: 0 0 100px #000000;
}

.button {
    padding: min(0.75vw, 12px) min(1.05vw, 18px);
    background: #3D94F6;
    background-image: -webkit-linear-gradient(top, var(--nav-button-bg-top), var(--nav-button-bg-bottom));
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    border-radius: 20px;
    color: var(--nav-button-color);
    font-family: Verdana;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.7px;
    -webkit-box-shadow: 0 0 5px 0 var(--nav-button-shadow);
    -moz-box-shadow: 0 0 5px 0 var(--nav-button-shadow);
    box-shadow: 0 0 5px 0 var(--nav-button-shadow);
}

.button:hover {
    border: inset #337FED 1px;
    margin: -1px;
    background: #3D94F6;
    background-image: -webkit-linear-gradient(top, var(--nav-button-bg-top-hover), var(--nav-button-bg-bottom-hover));
}

#judo-belt {
    width: 160px;
    margin: 4px 0 4px 0;
}

/* ########################### INTRO START HERE ######################### */

.image-wrapper {
    max-width: 1920px;
    position: relative;
    background-color: black;
    display: flex;
    justify-content: center;
    top: -10px;
}

#sdm-logo2 {
    display: block;
    max-width: 100%;
    height: auto;
}

.intro-content-container {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 10px;
}

.intro-sidebar {
    display: flex;
    flex-direction: column;
    width: 150px;
    margin-left: 10px;
}

.intro-sidebar .button {
    margin-bottom: 6px;
    cursor: pointer;
}

.intro-sidebar .button:hover {
    margin: 1px 1px 7px 1px;
}

.intro-main-content {
    flex-grow: 1;
    padding: 0 15px 15px 15px;
    border-radius: 8px;
    width: calc(100% - 35px);
}

/* Smooth transitions between sections */
.intro-content-section {
    display: none;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
    min-height: 600px;
}

.intro-content-section.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Gallery slider */
.gallery-slider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #222;
    padding: 20px;
    border-radius: 10px;
    max-width: 100%;
    overflow: hidden;
    height: auto;
}

.gallery-slider img {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    object-fit: contain;
}

#gallery-image {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: 8px;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 32px;
    padding: 0;              /* remove default padding */
    width: 48px;             /* fixed width and height for perfect circle */
    height: 48px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    z-index: 2;

    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-button:hover {
    background-color: #666;
}

.slider-button.left {
    left: 20px;
}

.slider-button.right {
    right: 20px;
}

/* Contact Grid */

.contact-grid {
    display: grid;
    gap: 16px 30px;
    background-color: rgba(20, 20, 20, 0.8); /* nearly black */
    padding: 25px 30px;
    border-radius: 12px;
    max-width: 700px;
    color: #88d1c0; /* muted teal */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.7);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    line-height: 1.7;
    grid-template-columns: 65% 35%;
    grid-template-rows: repeat(3, auto); /* 3 rows */
    grid-auto-flow: column;
}

.contact-grid div {
    color: #a6e1d9; /* lighter teal */
}

.contact-grid div strong {
    color: #39b3a6; /* bright teal accent */
    font-weight: 600;
}

.contact-grid div:hover {
    background-color: rgba(57, 179, 166, 0.15);
    border-radius: 6px;
    transition: background-color 0.1s ease;
}

/* About us */

.about-us-wrapper {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    flex-wrap: wrap; /* in case screen is small */
}

.about-us-text {
    flex: 2;
    font-size: 17;
    color: white; /* or suitable for your background */
    line-height: 1.5;
}

.about-us-text  h2 {
    font-size: 35;
    margin-bottom: 0.5rem;
    text-align: center;
}

.about-us-text h3 {
    font-size: 25;
    margin: 0px 0px 15px 3px;
}

.about-us-text ul li {
    display: flex;
    align-items: center;
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 8px;
    padding-left: 0px;
}

.about-us-text ul li i {
    width: 25px; /* fixed width for icon */
    text-align: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.about-us-judogi-icon {
    display: flex;
    align-items: center;
    font-size: 20px;
    margin-left: 0;
}

.about-us-judogi-icon::before {
    content: "🥋";
    display: inline-block;
    width: 25px;
    margin-right: 10px;
    text-align: center;
    flex-shrink: 0;
}

.about-us-bordered-box {
    border: 1px solid rgba(255, 255, 255, 0.3); /* subtle white border */
    border-radius: 8px;
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.03); /* optional light overlay */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* soft shadow for depth */
}

.about-us-image {
    flex: 1;
    min-width: 600px;
}

.about-us-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

/* ########################### INTRO END HERE ######################### */

.flex-item {
    width: 400px;
    height: 40px;
    border-radius: 8px;
}

.flex-item:first-child {
    text-align: center;
}

.flex-item:last-child {
    font-size: 1.3em;
    font-weight: 700;
}

.edit-form,
.registration-form,
.create-new-password-form,
.reset-password-form,
.signup-form,
.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: auto;
}

input {
    font-size: 1.3em;
    padding-left: 10px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.login.flex-item {
    font-size: 1.3em;
    font-weight: 700;
}

.results-wrapper {
    text-align: center;
}

.index-wrapper p {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.7px;
    margin-bottom: 20px;
    margin-top: -45px;
}

.index-wrapper a {
    color: var(--important);
}

.text-font {
    font-family: Verdana;
}

.inserted-data-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    margin: auto;
    text-align: center;
    padding: 0 8px;
    margin: 0 22px;
}

.inserted-data-wrapper:hover {
    background: var(--all-line-bg-hover);
    border-radius: 8px;
}

.flex-item-insertion {
    display: flex;
    box-shadow: 0px 0px 4px 1px var(--all-line-shadow);
    -webkit-box-shadow: 0px 0px 4px 1px var(--all-line-shadow);
    -moz-box-shadow: 0px 0px 4px 1px var(--all-line-shadow);
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    margin: 5px 0;
    background: var(--table-shadow-second);
    font-size: 1.3em;
    width: 400px;
    height: 33px;
}

.flex-item-insertion.first-line.profile-picture {
    box-shadow: 0px 0px 4px 1px var(--all-line-shadow);
    -webkit-box-shadow: 0px 0px 4px 1px var(--all-line-shadow);
    -moz-box-shadow: 0px 0px 4px 1px var(--all-line-shadow);
    font-size: 1.3em;
    height: 33px;
    background: var(--first-line-bg);
}

.flex-item-insertion.profile-picture {
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    background: transparent;
    min-width: 36px;
    max-width: 36px;
}

.flex-item-insertion.first-line.edit-button-signed-competitor {
    box-shadow: 0px 0px 4px 1px var(--all-line-shadow);
    -webkit-box-shadow: 0px 0px 4px 1px var(--all-line-shadow);
    -moz-box-shadow: 0px 0px 4px 1px var(--all-line-shadow);
    background: var(--first-line-bg);
    color: var(--first-line-text);
}

.flex-item-insertion.edit-button-signed-competitor {
    box-shadow: 0px 0px 4px 1px var(--flex-item-button-shadow);
    -webkit-box-shadow: 0px 0px 4px 1px var(--flex-item-button-shadow);
    -moz-box-shadow: 0px 0px 4px 1px var(--flex-item-button-shadow);
    min-width: 42px;
    max-width: 42px;
    background: var(--flex-item-button-bg);
    color: #a6e22e;
}

.profile-picture-photo {
    height: 36px;
    width: 40px;
    border-radius: 6px;
}

.edit-data-wrapper,
.registration-data-wrapper {
    display: flex;
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 4px;
    margin: auto;
}

.flex-item-edit,
.flex-item-registration {
    width: 400px;
    height: 40px;
    border-radius: 8px;
}

.flex-item-edit:first-child,
.flex-item-registration:first-child {
    width: 100%;
    height: auto;
    margin: auto;
}

/* .flex-item-edit:last-child,
.flex-item-registration:last-child {
    font-size: 1.3em;
    font-weight: 700;
} */

.flex-item-registration.registration-header {
    font-size: 1.6em;
    font-weight: 700;
}

.flex-item-edit.choose {
    font-size: 1.3em;
    font-weight: 700;
}

#edit-header,
#registration-header {
    text-align: center;
    padding: 20px;
    width: 90%;
    margin: auto;
}


.registration-header-container {
    width: auto;
    text-align: center;
}

.registration-flex-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;

    gap: 20px;

}
.registration-data-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.image-upload-container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
}

.registration-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 800px;
    gap: 40px;
}

.button-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

.flex-item-camp-registration-inline {
    display: flex;
    align-items: center;
    /* Align label and select vertically */
    gap: 20px;
    /* Adjust spacing between label and select */
    font-weight: 600;
}

.flex-item-camp-registration-inline label {
    white-space: nowrap;
    /* Prevent label from wrapping to the next line */
    font-size: 1.6em;
    font-weight: 800;
    color: #ffd639;
}

#competitors-camp-registration {
    font-weight: 500;
    width: 172px;
    text-align: center;
}

#competitors-camp-registration2 {
    font-weight: 500;
    width: 185px;
    text-align: center;
}

#competitors-camp-registration option {
    font-size: 1.0em;
}

#competitors-camp-registration2 option {
    font-size: 1.0em;
}

#competitors-camp-registration-form {
    font-weight: 700;
    font-size: 1.5em;
    width: 180px;
    text-align: center;
    margin: 0 auto -15px;
    display: block;
}

select#competitors-camp-registration-form {
    padding: 0;
}

#competitors-camp-registration-form option {
    font-size: 0.9em;
}

#competitors-add-popup-container {
    display: flex;
    justify-content: space-around;
}

#competitors-weight-input-container,
#competitors-camp-selection-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#competitors-weight-input-header,
#competitors-camp-selection-header {
    font-size: 1.5em;
    font-weight: 600;
    margin: 7px;
}

input#competitors-weight-input {
    text-align: center;
}

.shadow {
    background: var(--table-shadow-first);
}

.first-line {
    box-shadow: 0px 0px 4px 1px var(--first-line-shadow);
    -webkit-box-shadow: 0px 0px 4px 1px var(--first-line-shadow);
    -moz-box-shadow: 0px 0px 4px 1px var(--first-line-shadow);
    background: var(--first-line-bg);
    color: var(--first-line-text);
    font-weight: 600;
    justify-content: center !important;
}

table .first-line {
    box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

.surname {
    font-size: 1.4em;
    font-weight: 900;
}

.f {
    /* color: #c300ac; */
    color: var(--flex-item-female);
}

.m {
    /* color: #0040ff; */
    color: var(--flex-item-male);
}

.profile-menu-item.organizator-button {
    background: var(--left-menu-organizator-button-bg);
}

.first-line.edit-button,
.first-line.delete-button,
.first-line.add-button,
.first-line.remove-button,
.first-line.double-button,
.first-line.camp-button,
.first-line.weight-button {
    box-shadow: 0px 0px 4px 1px var(--first-line-shadow);
    -webkit-box-shadow: 0px 0px 4px 1px var(--first-line-shadow);
    -moz-box-shadow: 0px 0px 4px 1px var(--first-line-shadow);
    background: var(--first-line-bg);
    font-weight: normal;
    color: var(--first-line-text);
}

.edit-button,
.delete-button,
.remove-button,
.add-button,
.double-button,
.camp-button,
.weight-button {
    box-shadow: 0px 0px 4px 1px var(--flex-item-button-shadow);
    -webkit-box-shadow: 0px 0px 4px 1px var(--flex-item-button-shadow);
    -moz-box-shadow: 0px 0px 4px 1px var(--flex-item-button-shadow);
    background: var(--flex-item-button-bg);
    font-weight: 600;
}

input.weight {
    width: 250px;
    margin-top: 6px;
    margin-bottom: 4px;
    margin-left: calc(50% - 125px);
}

input.weight2 {
    width: 220px;
}

.double-button,
.camp-button,
.weight-button {
    font-weight: 500;
    color: white;
}

.delete-button {
    color: var(--error);
}

.remove-button {
    color: var(--error);
}

.edit-button {
    color: var(--edit-button-color);
    margin: 0 5px;
}

.add-button {
    color: var(--success);
}

li.edit-button,
li.delete-button,
li.add-button {
    min-width: 100px;
    max-width: 100px;
    display: flex;
}
li.edit-button-signed-competitor {
    font-size: 1.4em !important;
}
li.remove-button {
    min-width: 41px;
    max-width: 41px;
    font-size: 1.4em !important;
    display: flex;
}

li.double-button {
    min-width: 125px;
    max-width: 125px;
    display: flex;
}

li.camp-button {
    min-width: 44px;
    max-width: 80px;
    display: flex;
}

li.weight-button {
    padding: 0 2px;
    min-width: 83px;
    max-width: 83px;
    display: flex;
}


/* li.double-button {
    width: 155px;
    display: flex;
} */


/* li.double {
    width: 105px;
    display: flex;
} */


/* button.button-double {
    padding: 5px;
    width: 105px;
    border-radius: 8px;
    background: var(--flex-item-button-bg);
    border: 0;
    font-size: 18px;
    font-weight: 500;
    color: white;
    font-family: 'Times New Roman', Times, serif;
} */


/* button.button-double:hover {
    cursor: pointer;
} */

li.first-line.edit-button,
li.first-line.delete-button,
li.first-line.add-button,
li.first-line.remove-button,
li.first-line.double-button,
li.first-line.weight-button {
    width: 95px;
    padding: 4px 20px;
}

li.first-line.double-button {
    width: 105px;
}


/* li.first-line.double {
    width: 105px;
    padding: 4px 20px;
} */

option {
    font-size: 1.2em;
    padding-left: 7px;
}

select {
    font-size: 1.3em;
    padding-left: 7px;
}

input#phone.flex-item {
    font-weight: 500;
}

#button-padding {
    padding: 4px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.flex-item-insertion #button-padding {
    padding: 4px 1px;
}

#button {
    cursor: pointer;
}

#button.flex-item-registration {
    font-size: 1.3em;
    font-weight: 700;
}

.error-message,
.success-message {
    font-size: 26px;
    font-weight: 600;
    padding: 15px 0 5px 0;
    text-align: center;
    letter-spacing: 0.6px;
    margin: 0 auto 10px;
    width: 60%;
}

.error-message {
    color: var(--error);
}

.success-message {
    color: var(--success);
}

.flex-item-insertion.surname {
    min-width: 180px;
}

.flex-item-insertion.name {
    min-width: 140px;
}

.flex-item-insertion.year {
    min-width: 50px;
}

.flex-item-insertion.club {
    min-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    justify-content: flex-start;
    padding-left: 5px;
}

.flex-item-insertion.country {
    min-width: 70px;
}

.flex-item-insertion.gender {
    min-width: 80px;
}

#profile-menu-wrapper li {
    margin: 20px 0 0 15px;
}

#profile-menu-wrapper2 li {
    margin: 20px 0 0 15px;
}

#profile-menu-wrapper4 li {
    margin: 20px 0 0 15px;
}

#left-profile-menu {
    width: 0;
    float: left;
}

.profile-menu-item {
    box-shadow: 0px 0px 4px 1px var(--left-menu-shadow);
    -webkit-box-shadow: 0px 0px 4px 1px var(--left-menu-shadow);
    -moz-box-shadow: 0px 0px 4px 1px var(--left-menu-shadow);
    background: var(--left-menu-button);
    margin-right: 10px;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 25px;
    letter-spacing: 0.6px;
}

.profile-menu-item.offset {
    padding: 5px 8px 5px 7px;
    font-size: max(16px, min(1.8vw, 21px));
}

.example-table {
    margin: auto;
    font-size: 22px;
}

#profile-intro-wrapper {
    margin-left: 280px;
}

#competition-intro-wrapper {
    margin-left: 280px;
}

table {
    border-radius: 8px;
}

td,
th,
table {
    border: 5px solid var(--background);
    border-radius: 12px;
    border-collapse: collapse;
}

.example-table td {
    padding: 3px 25px 3px 6px;
}

.shadow-table tr:nth-child(2n) {
    background: var(--table-shadow-first);
}

.shadow-table tr:nth-child(2n-1) {
    background: var(--table-shadow-second);
}

.first-column {
    background: var(--first-line-bg);
    color: var(--first-line-text);
    font-weight: 600;
    justify-content: center !important;
}

.first-column.club-name {
    font-weight: 500;
}

button.flex-item-edit.profile {
    display: block;
    margin: 10px auto;
}

.example-table input {
    width: 820px;
}

#profile-button-wrapper {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin: 0 20px;
}

#profile-button-wrapper li {
    margin: 20px 0 3px 15px;
    font-size: 23px;
}

.profile-button-item {
    box-shadow: 0px 0px 4px 1px var(--profile-button-shadow);
    -webkit-box-shadow: 0px 0px 4px 1px var(--profile-button-shadow);
    -moz-box-shadow: 0px 0px 4px 1px var(--profile-button-shadow);
    background: var(--profile-button-bg);
    color: var(--profile-button-color);
    font-weight: 600;
    margin: 0 5px;
    padding: 7px 20px;
    border-radius: 8px;
    letter-spacing: 0.6px;
}

.official {
    width: 650px;
}

.logsType {
    width: 150px;
}

.logsUserIpAddress {
    width: 220px;
}

.logsTimestamp {
    width: 250px;
}

.activity-table {
    margin: -5px auto;
    font-size: 22px;
}

.activity-table td {
    padding: 3px 6px 3px 6px;
}

.activity-table tr {
    background: var(--table-shadow-first);
}

.competition-wrapper {
    margin: -5px auto;
    font-size: 22px;
    max-width: 1470px;
}

.competition-wrapper td,
.competition-wrapper th {
    text-align: center;
    padding: 3px 10px 3px 10px;
}

.competition-wrapper tr {
    background: var(--table-shadow-first);
}

.competition-name {
    /* width: 230px; */
}

.competition-place {
    /* width: 230px; */
}

.competition-date {
    /* width: 158px; */
}

.competition-category {
    /* width: 450px; */
}

.competition-edit {
    /* width: 110px; */
}

.year-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.year-toggle {
    font-size: 16;
    padding: 8px 16px;
    background-color: #eee;
    border: none;
    cursor: pointer;
    font-weight: bold;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.year-toggle.active {
    background-color: #484444;
    color: #ebe6e6;
}

.year-content-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.year-content-wrapper.active {
    max-height: 1000px; /* Adjust as needed */
}

.year-toggle:hover {
    background-color: #484444;
    color: #ebe6e6;
}

.competitions-height {
    min-height: 1400px;
}

#competitions-header {
    text-align-last: center;
    padding: 20px;
}

#competitions-organizator-club-selector,
.organizator-club-button {
    display: block;
    margin: 15px auto;
}

#competitions-organizator-club-selector {
    margin-top: 0;
}

.export-button {
    /* padding: 4px; */
    width: 400px;
    height: 40px;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: 700;
}

.competitors-info-wrapper p {
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.7px;
    margin-bottom: 20px;
}

.competitors-info-wrapper {
    margin-left: 270px;
}

a.competition-link {
    color: var(--competition-link);
}

#iframe-wrapper {
    margin-left: 280px;
    margin-right: 40px;
}

iframe#results {
    display: block;
    height: 1000px;
    width: 100%;
    margin: 0 auto;
}

.flag {
    margin-top: -10px;
    margin-bottom: -8px;
    margin-left: -6px;
    border-radius: 8px;
    -webkit-box-shadow: 0 0 5px 0 var(--nav-button-shadow);
    -moz-box-shadow: 0 0 5px 0 var(--nav-button-shadow);
    box-shadow: 0 0 5px 0 var(--nav-button-shadow);
}

#english-flag {
    margin-left: 8px;
    width: var(--english-flag-width);
}

#slovakian-flag {
    width: var(--slovakian-flag-width);
}

#polish-flag {
    width: var(--polish-flag-width);
}

#hungarian-flag {
    width: var(--hungarian-flag-width);
}

.importante {
    color: var(--important) !important;
}

hr {
    border: 0;
    border-top: 3px solid var(--divider-howto);
    margin: 40px 0 50px 0;
}

#howto-intro hr:first-child {
    margin: 0 0 50px 0;
}

button.howto-item {
    margin: 0;
    border: 0;
    cursor: pointer;
    font-family: "Times New Roman", Times, serif;
}

button.offset {
    margin-left: 15px;
}

#howto-content-wrapper {
    margin: 0 100px 0 285px;
}

#howto-menu-wrapper,
#registered-menu-wrapper {
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
    height: 100%;
    width: 280px;
    position: fixed;
    z-index: 1;
    top: 140px;
    left: calc((100% - 1500) / 2);
    overflow-x: hidden;
    overflow-y: auto;
}
#registered-menu-wrapper {
    position: initial;
}

#howto-menu-wrapper li,
#registered-menu-wrapper li {
    margin: 9px 0 0 15px;
}

#registered-menu-wrapper {
    margin: 0 0 0 285px;
    width: 1200px;
}

#registered-menu-wrapper li {
    text-align: center;
}

#sex-wrapper,
#female-wrapper,
#male-wrapper,
#weights-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#sex-wrapper li,
#female-wrapper li,
#male-wrapper li,
#weights-wrapper li {
    text-align: center;
    display: inline-block;
}

#weights-wrapper li {
    margin: 25px 0 0 -3px;
}

#registered-menu-wrapper li .M-hider,
#registered-menu-wrapper li .F-hider {
    text-align: center;
    display: inline-block;
}

#profile-menu-wrapper {
    height: 100%;
    width: 280px;
    position: fixed;
    z-index: 1;
    top: 140px;
    left: calc((100% - 1500) / 2);
    overflow-x: hidden;
}

#profile-menu-wrapper li {
    margin: 20px 0 0 15px;
}

#profile-menu-wrapper2 {
    height: auto;
    width: 345px;
    position: initial;
    overflow-x: initial;
}

#profile-menu-wrapper2 li {
    margin: 20px 0 0 15px;
}

#profile-menu-wrapper3 {
    height: 100%;
    width: 280px;
    position: fixed;
    z-index: 1;
    top: 140px;
    left: calc((100% - 1500) / 2);
    overflow-x: hidden;
}

#profile-menu-wrapper3 li {
    margin: 20px 0 0 15px;
}

#profile-menu-wrapper4 {
    height: 100%;
    width: 242px;
    position: fixed;
    z-index: 1;
    top: 140px;
    left: calc((100% - 1500) / 2);
    overflow-x: hidden;
}

#profile-menu-wrapper4 li {
    margin: 20px 0 0 15px;
}

#howto-content-wrapper p {
    margin: auto;
    margin-top: 15px;
    text-align: center;
    font-size: 22px;
    color: var(--paragraph-howto);
    font-family: Arial;
    width: max(460px, 60%);
}

#howto-content-wrapper h2 {
    color: var(--important);
    margin: 0 0 50px 20px;
}

#howto-content-wrapper h3 {
    color: var(--important);
    text-align: center;
}

.howto-item {
    font-size: max(18px, min(2vw, 23px));
}

.howto-img {
    display: block;
    margin: auto;
    margin-top: 15px;
    margin-bottom: 35px;
    border-radius: 15px;
}

#howto-menu-hider,
#profile-menu-hider {
    display: none;
}

.width900 {
    width: min(110%, 900px);
}

.width500 {
    width: min(70%, 500px);
}

html {
    scroll-padding-top: 160px;
}

.menu-hide {
    display: none !important;
    visibility: hidden;
}

.ul-wrapper ul:nth-child(2n) li:not(:last-child) {
    background: var(--table-shadow-first);
}

.ul-wrapper ul:nth-child(2n-1) li:not(:last-child) {
    background: var(--table-shadow-second);
}

#profile-menu-hider2 {
    margin: 0;
    display: initial;
    position: fixed;
    top: 16px;
    left: calc((100% / 2) - 400px);
    padding-left: 5px;
    padding-right: 5px;
}

.form-popup {
    position: fixed;
    top: 150px;
    left: calc(50% - 250px);
    border: 3px solid #f1f1f1;
    border-radius: 5px;
    z-index: 9;
}

.form-popup2 {
    position: fixed;
    top: 150px;
    left: calc(50% - 250px);
    border: 3px solid #f1f1f1;
    border-radius: 5px;
    z-index: 9;
}

.form-container {
    min-width: 500px;
    max-width: 500px;
    padding: 10px;
    background-color: green;
}

.form-container2 {
    min-width: 500px;
    max-width: 500px;
    padding: 10px;
    background-color: green;
}

#doublestart-wrapper h1,
#doublestart-wrapper h2 {
    text-align: center;
}

#doublestart-wrapper2 h1,
#doublestart-wrapper2 h2 {
    text-align: center;
}

#doublestart-name {
    margin-top: 15px;
}

#doublestart-name2 {
    font-size: 1.7em;
    margin: 10px 0;
}

#doublestart-wrapper #button {
    width: 49%;
    font-size: 1.3em;
    font-weight: 700;
    margin-top: 15px;
}

#doublestart-wrapper2 #button {
    width: 49%;
    font-size: 1.3em;
    font-weight: 700;
    margin-top: 15px;
}

#form-inputs {
    padding: 10px 30px;
}

#form-inputs input {
    margin: 5px;
}

#form-inputs label {
    font-size: 22px;
}

input.rounder {
    clip-path: circle(46% at 50% 50%);
    width: 17px;
    height: 17px;
}

.registered-highlighter {
    background: var(--registered-highlighter);
}

#livestream-menu {
    background-color: red;
    color: white;
}

#competition-livestream-wrapper {
    margin: 0 20px 0 200px;
    /* display: flex; */
    flex-direction: row;
    flex-wrap: wrap;
}

.competition-livestream-day-wrapper {
    margin: 0 20px 50px 0;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.livestream-window {
    display: block;
    /* width: calc(100% - 50px); */
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border: 4px solid white;
    width: 90%;
    /* padding: 100px 20px 15px 20px; */
    /* border-width: 8px;
    border-style: solid;
    border-image: linear-gradient(to right, darkblue, darkorchid) 1; */
}

.livestream-iframe-wrapper {
    flex: 1 0 32%;
    /* border: 1px solid black; */
    margin: 0 5px 30px 5px;
    /* width: calc(100% / 3); */
}

.livestream-tatami-header {
    text-align: center;
    margin: 5px 0 0 0;
    color: var(--header);
    font-size: 30;
}

.livestream-tatami-day-header {
    text-align: center;
    color: var(--header);
    margin: 0 20px 0 0;
    font-size: 35;
}

.livestream-tatami-header:nth-child(1) {
    margin-top: 0;
}




/* LIVESTREAM NEW */

.swiper {
    width: 100%;
    max-width: 1180px;
    aspect-ratio: 16 / 9;
    margin: 9px auto;
    position: relative;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Swiper slide */
.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Placeholder for lazy iframe loading */
.iframe-placeholder {
    width: 100%;
    height: 100%;
}

/* Iframe style */
.swiper-slide iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
}

/* Livestream label */
.livestream-label {
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 12px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
    border-radius: 5px;
    position: absolute;
    bottom: 10px;
    margin: 0 auto -7px auto;
}

/* Day toggle buttons */
.livestream-day-toggle {
    padding: 7px 19px;
    margin: 10px 5px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    background-color: #ddd;
    color: #333;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.livestream-day-toggle:hover {
    background-color: #bbb;
}

.livestream-day-toggle.active {
    background-color: #333;
    color: #fff;
}

/* Swiper navigation buttons */
.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    transition: transform 0.2s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    transform: scale(1.2);
}

.livestream-button-container {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.livestream-tatami-buttons {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.livestream-tatami-buttons .tatami-btn {
  padding: 7px 11px;
  margin: 3px;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  background-color: #eee;
  color: #333;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.livestream-tatami-buttons .tatami-btn:hover {
  background-color: #ccc;
}

.livestream-tatami-buttons .tatami-btn.active {
  background-color: #333;
  color: #fff;
}

.livestream-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
    position: relative;
}

.livestream-back-btn {
    padding: 6px 13px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    background-color: #fa5050;
    color: #000000;
    border-radius: 10px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.livestream-back-btn:hover {
    background-color: #e60000; /* darker red on hover */
}

.livestream-wrapper {
    max-width: 1180px;
    margin: 0 auto;
    padding: 10px;
}

.livestream-day-bar {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	max-width: 1180px;
	margin: -30px auto 3px auto;
}

.livestream-day-buttons {
	display: flex;
	flex-wrap: wrap; 
    margin: 0px 0 -50px -588px;
}

.livestream-tatami-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 1180px;
	margin: 0 auto 0 auto;
}


.tatami-dropdown {
    display: none;
    width: 100%;
    padding: 8px 12px;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    background: #f9f9f9;
}

















#export-download-button {
    display: block;
    width: 500px;
    margin: 0px auto;
    text-align: center;
    font-size: 24px;
}

#index-news-box {
    max-width: 900px;
    margin: 10px auto 50px;
    border: 5px black;
    padding: 10px;
    border-style: outset;
}

#index-news-box p {
    color: #dba400;
}

#doublestart-wrapper #button.addweight {
    margin-left: calc(50% - 117px);
}

#doublestart-wrapper2 #button.addweight {
    margin-left: calc(50% - 117px);
}


/* IMAGE MAIN FROM HERE*/

.image-upload-container {
    width: 150px;
    height: 170px;
    border: 2px dashed #007bff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: auto;
    max-width: 150px;
    padding: 2px;
    overflow: hidden;
}

.image-upload-container label {
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
}

.image-upload-container img {
    width: 98%;
    height: 98%;
    object-fit: cover;
    border-radius: 8px;
}

.image-upload-container input {
    position: absolute;
    width: 98%;
    height: 98%;
    opacity: 0;
    /* Hide the input but keep it functional */
    cursor: pointer;
}

#fileSizeError.error-message {
    padding: 5px 2px 1px 2px;
    width: 95%;
    font-size: 14px;
    margin: 0 auto;
}

input#competitorsPhoto {
    padding: 0;
}

input#coachesPhoto {
    padding: 0;
}


/* IMAGE MAIN TO HERE */


/* IMAGE POPUP FROM HERE*/

.image-upload-container-popup {
    width: 150px;
    height: 170px;
    border: 2px dashed #007bff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px auto;
    overflow: hidden;
    /* Ensures input does not go outside */
}

.image-upload-container-popup label {
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
}

.image-upload-container-popup img {
    width: 98%;
    height: 98%;
    object-fit: cover;
    border-radius: 8px;
}

.image-upload-container-popup input {
    position: absolute;
    width: 98%;
    height: 98%;
    opacity: 0;
    /* Hide the input but keep it functional */
    cursor: pointer;
}

#fileSizeErrorPopup.error-message-popup {
    padding: 5px 2px 1px 2px;
    width: 95%;
    font-size: 14px;
    margin: 0 auto;
}

input#competitorsPhotoPopup {
    padding: 0;
}

input#coachesPhotoPopup {
    padding: 0;
}


/* IMAGE POPUP TO HERE */



/* EDIT CATEGORIES START HERE */

.dropdown-checkbox-wrapper {
	width: 310px;
	position: relative;
	font-size: 1.3em;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
	text-align: left;
	background-color: white;
	cursor: pointer;
}

.dropdown-checkbox-button {
	padding: 6px 6px 6px 11px;
	border-radius: 8px;
	background-color: white;
    font-size: 1.0em;
    font-family: Arial, Helvetica, sans-serif;
	/* user-select: none; */
}

.dropdown-checkbox-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: #fff;
	color: #000;
	border: 1px solid #ccc;
	border-radius: 8px;
	z-index: 10;
	max-height: 250px;
	overflow-y: auto;
	padding: 10px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.dropdown-checkbox-menu label {
	display: block;
	margin: 4px 0;
	cursor: pointer;
	font-size: 0.95em;
}

.dropdown-checkbox-menu input[type="checkbox"] {
	transform: scale(1.2);
	margin-right: 8px;
}

.age-category-wrapper {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-start;
	gap: 10px;
	width: 100%;
	max-width: 500px;
}

.age-category-label {
	font-size: 1.2em;
	color: var(--paragraph, #67e3e6);
	width: 80px; /* fixed width for alignment */
	text-align: right;
}

 /* EDIT CATEGORIES END HERE */



.index-welcome {
    margin: auto;
    width: 98%;
}


@media only screen and (max-width: 1500px) {
    #registered-menu-wrapper {
        margin: 0 0 0 285px;
        width: calc(100% - 350px);
    }
}

@media only screen and (max-width: 1400px) {
    .about-us-text {
        min-width: 500px;
    }
    .about-us-image {
        min-width: 500px;
    }
    .intro-content-container {
        gap: 0px;
    }
}

@media only screen and (max-width: 1300px) {
    .flex-item-edit,
    .flex-item-registration {
        width: 300px;
    }
    .registration-content{
        gap: 20px;
    }
    .flex-item-camp-registration-inline {
        gap: 15px;
        font-size: 0.8em;
    }
    .dropdown-checkbox-wrapper {
        width: 210px;
    }

    .about-us-text {
        min-width: 400px;
    }
    .about-us-text h2 {
        font-size: 32;
    }
    .about-us-text h3 {
        font-size: 22;
    }
    .about-us-text ul li {
        font-size: 17px;
        line-height: 1.3;
    }
}

@media only screen and (max-width: 1200px) {
    
    .registration-flex-container{
        margin-left: 100px;
    }
    .official {
        width: 500px;
    }
    .club {
        display: none;
    }
    #profile-menu-hider2 {
        margin: 0;
        display: initial;
        position: fixed;
        top: 16px;
        left: calc((100% / 2) - 423px);
    }
    .profile-intro-special input {
        width: 300px;
    }
    td.profile-intro {
        padding-right: 20px;
    }
    td.profile-intro-special {
        padding-right: 6px;
    }
    .profile-intro-special2 input {
        width: 300px;
        font-size: 20px;
    }
    td.profile-intro-special2 {
        padding-right: 6px;
    }
    #howto-content-wrapper {
        margin-left: 24vw;
    }
    .hide-m {
        display: none;
    }
    .flex-item-insertion.gender {
        min-width: 45px;
    }
    .flex-item-insertion {
        font-size: 1.2em;
    }

    .about-us-image {
        min-width: calc(100% - 500px);
    }
}

@media only screen and (max-width: 1100px) {
    .registration-flex-container{
        margin-left: 200px;
    }

    .about-us-wrapper{
        margin-top: -15px;
    }
    .about-us-text{
        max-width: 99%;
        min-width: 99%;
    }
    .about-us-image {
        min-width: 98%;
    }
    .intro-sidebar .button {
        padding: calc(min(0.75vw, 12px) + 2px) calc(min(1.05vw, 18px) + 2px);
    }
    

}

@media only screen and (max-width: 999px) {
    .country {
        display: none;
    }

    .livestream-day-buttons {
        margin: -10px 0 0 0;
    }
}

@media only screen and (max-width: 899px) {
    .registration-flex-container{
        margin-left: 0px;
    }
    #competition-organizator-wrapper {
        margin-top: 0px;
    }
    .official {
        width: 90%;
    }
    .competitors-info-wrapper {
        margin: 180px auto 0;
    }
    #iframe-wrapper {
        width: 94%;
        margin: 30px auto 0;
    }
    #profile-menu-wrapper3 {
        top: 80px;
        width: 100%;
        height: 200px;
    }
    #competition-intro-wrapper {
        margin: 0 auto 0;
    }
    .competition-wrapper {
        font-size: 19px;
    }
    .year {
        display: none;
    }
    .registration-form,
    .edit-form {
        margin-top: 0px;
    }
    #registered-menu-wrapper {
        margin: 0;
        width: 100%;
        margin-top: 0px;
    }
    #profile-menu-hider {
        margin: 0;
        display: initial;
        position: fixed;
        top: 20px;
        left: calc((100% / 2) - 54px);
    }
    #profile-menu-hider.hide {
        display: none;
    }
    #profile-menu-hider2 {
        margin: 0;
        display: initial;
        position: fixed;
        top: 20px;
        left: calc((100% / 2) - 41px);
    }
    #profile-menu-hider2.hide {
        display: none;
    }
    #profile-menu-wrapper {
        top: 80px;
        width: 100%;
        height: 200px;
    }
    #profile-menu-wrapper.hide {
        display: none;
    }
    #profile-menu-wrapper li {
        text-align: center;
        margin: 15px auto;
    }
    #profile-menu-wrapper2 {
        position: static;
        top: 80px;
        width: 100%;
        height: 305px;
        margin: -40px 0 0 0;
    }
    #profile-menu-wrapper2.hide {
        display: none;
    }
    #profile-menu-wrapper2 li {
        text-align: center;
        margin: 15px auto;
    }
    #profile-menu-wrapper2 li .profile-menu-item {
        margin: 0;
    }
    #profile-intro-wrapper {
        margin: 200px auto 0;
    }
    #howto-content-wrapper p {
        font-size: 20px;
    }
    #howto-content-wrapper {
        margin-left: 28vw;
    }
    .width900 {
        width: 120%;
    }
    #navbar-hider {
        display: block;
        position: fixed;
        top: 320px;
        left: calc((100% / 2) - 190px);
        border-radius: 8px;
        padding: 11px 190px !important;
    }
    .navbar-bottom-margin {
        margin-bottom: 120px !important;
    }
    #left-nav {
        display: block;
        width: 60px;
        position: fixed;
    }
    #right-nav li:not(:last-child) {
        display: none;
    }
    #right-nav-icon {
        display: block;
        padding: 10px;
    }
    #left-nav.hide-left {
        display: none;
    }
    #right-nav.hide li:not(:last-child) {
        text-align: center;
        padding: 0;
        margin: 15px 0 0 0;
    }
    #right-nav.hide li:last-child {
        display: none !important;
    }
    #right-nav.hide li:nth-child(-n+5) {
        display: flex;
    }
    .button:hover {
        border: 0;
    }
    .intro-sidebar .button:hover {
        border: inset #337FED 1px;
    }
    #right-nav.hide li:first-child {
        margin-top: 20px;
    }
    #right-nav li:nth-child(n+6):nth-child(-n+8) {
        position: fixed;
        top: -9999px;
    }
    .navbar-flag {
        position: fixed;
        top: -9999px;
    }
    #right-nav.hide a:nth-child(-n+5) {
        padding: 10px 25px;
        margin: -3px auto;
    }
    #right-nav {
        padding: 0 25px;
    }
    #nav-wrapper {
        background: var(--background);
    }
    #right-nav.hide li:nth-child(n+6) {
        display: inline;
    }
    #english-flag {
        position: fixed;
        top: 270px;
        left: calc((100% / 2) - 142px);
        width: calc( var(--english-flag-width) + 12px);
    }
    #slovakian-flag {
        position: fixed;
        top: 270px;
        left: calc((100% / 2) - 56px);
        width: calc( var(--english-flag-width) + 6px);
    }
    #polish-flag {
        position: fixed;
        top: 270px;
        left: calc((100% / 2) + 10px);
        width: calc( var(--english-flag-width) + 13px);
    }
    #hungarian-flag {
        position: fixed;
        top: 270px;
        left: calc((100% / 2) + 83px);
        width: calc( var(--english-flag-width) + 13px);
    }
    li.first-line.weight-button,
    li.weight-button {
        min-width: 55px;
        max-width: 55px;
    }
    li.first-line.double-button,
    li.double-button {
        min-width: 100px;
        max-width: 100px;
    }
    li.edit-button,
    li.delete-button,
    li.add-button {
        min-width: 65px;
        max-width: 65px;
    }
    .flex-item-insertion.gender {
        display: none;
    }
    
    .contact-grid {
        display: grid;
        font-size: 17px;
        line-height: 1.6;
        grid-template-columns: 100%;
        grid-template-rows: repeat(6, auto); /* 3 rows */
        grid-auto-flow: column;
    }

    .detail-outlines-sidebar-btn {
        display: none;
    }
    .detail-results-sidebar-btn {
        display: none;
    }
    
    #left-profile-menu.competitions-left-profile-menu {
        width: 100%;
        float: none;
    }

    #profile-menu-wrapper2 {
        height: auto;
        width: 100%;
        overflow-x: initial;
    }

    #sex-wrapper #FemaleID,
    #sex-wrapper #MaleID {
        margin: 2px;
    }
}

@media only screen and (max-width: 768px) {
    .registration-data-wrapper {
        max-width: 300px;
    }
    .form-popup {
        position: fixed;
        top: 150px;
        left: calc(50% - 200px);
        border: 3px solid #f1f1f1;
        border-radius: 5px;
        z-index: 9;
    }
    .form-popup2 {
        position: fixed;
        top: 150px;
        left: calc(50% - 200px);
        border: 3px solid #f1f1f1;
        border-radius: 5px;
        z-index: 9;
    }
    .form-container {
        min-width: 400px;
        max-width: 400px;
    }
    .form-container2 {
        min-width: 400px;
        max-width: 400px;
    }
    #doublestart-wrapper #button.addweight {
        margin-left: calc(50% - 93px);
    }
    input.weight2 {
        width: 160px;
    }
    .add-button #button-padding {
        padding: 4px 17px;
    }
    .competition-category {
        display: none;
    }
    .flex-item-insertion.name {
        min-width: 110px;
    }
    .flex-item-insertion.surname {
        min-width: 140px;
    }
    .inserted-data-wrapper .flex-item-insertion {
        font-size: 18px;
    }
    .gender {
        display: none;
    }
    .width900 {
        width: 100%;
    }
    #howto-content-wrapper {
        margin: 240px 5px 0 5px;
    }
    #howto-menu-wrapper {
        top: 80px;
        width: 100%;
        height: 300px;
    }
    #registered-menu-wrapper {
        width: 100%;
        height: auto;
    }
    #howto-menu-wrapper li,
    #registered-menu-wrapper li {
        text-align: center;
        /* margin: 9px auto; */
    }
    #howto-menu-hider {
        margin: 0;
        display: initial;
        position: fixed;
        top: 20px;
        left: calc((100% / 2) - 50px);
    }
    #howto-menu-hider.hide {
        display: none;
    }
    #howto-menu-wrapper.hide,
    #registered-menu-wrapper.hide {
        display: none;
    }
    .hide-s {
        display: none;
    }
    .column {
        flex: 90%;
        max-width: 90%;
        margin: auto;
    }
    li.weight-button {
        display: none;
    }
    /* li.double-button {
        min-width: 115px;
        max-width: 115px;
    } */
    li.edit-button,
    li.delete-button,
    li.add-button {
        min-width: 60px;
        max-width: 60px;
    }
    #profile-menu-wrapper4 {
        width: 220px;
    }
    #doublestart-wrapper2 #button.addweight {
        margin-left: calc(50% - 94px);
    }

    .about-us-text h2 {
        font-size: 30;
    }
    .about-us-text h3 {
        font-size: 21;
    }
    .about-us-text ul li {
        font-size: 16px;
        line-height: 1.25;
    }

    .livestream-tatami-buttons .tatami-btn {
        padding: 6px 10px;
        margin: 2.5px;
        font-size: 0.9rem;
        border-radius: 5px;
    }
    .livestream-back-btn {
        padding: 7px 12px;
        margin-bottom: 5px;
    }
    .livestream-tatami-bar {
        gap: 5px;
    }
}

@media (max-width: 700px) {
    .livestream-tatami-buttons {
        display: none !important; /* override inline display: flex */
    }
    .tatami-dropdown {
        display: none;
        width: 108px;
        padding: 6px 8px;
        font-size: 1.1rem;
        font-weight: 600;
        border-radius: 5px;
        border: 1px solid #ccc;
        margin-bottom: 6px;
        background: #f9f9f9;
    }
    .tatami-dropdown[data-day="1"]:not([hidden]),
    .tatami-dropdown[data-day="2"]:not([hidden]) {
        display: block;
    }
    .livestream-day-buttons {
        margin: 0px 0 -49px -68px;
    }
}

@media only screen and (max-width: 600px) {
    .official {
        font-size: 22px;
    }
    .competitors-info-wrapper p {
        font-size: 17px;
    }
    .add-button #button-padding {
        padding: 4px 10px;
    }
    #competitions-header {
        font-size: 22px;
    }
    .competition-date {
        display: none;
    }
    .flex-item-registration.registration-header,
    .registration-form h1,
    #registration-header {
        font-size: 20px;
    }
    .inserted-data-wrapper {
        margin: 0;
        padding: 0;
    }
    .edit-button,
    .delete-button {
        width: 65px !important;
    }
    .flex-item-insertion.name {
        min-width: 80px;
    }
    .flex-item-insertion.surname {
        min-width: 100px;
    }
    .inserted-data-wrapper .flex-item-insertion {
        font-size: 16px;
    }
    #profile-button-wrapper li {
        font-size: 18px;
    }
    #profile-intro-wrapper td {
        font-size: 16px;
    }
    #competition-intro-wrapper td {
        font-size: 16px;
    }
    #howto-menu-hider {
        left: calc((100% / 2) - 46px);
    }
    #left-nav {
        padding: 0;
    }
    #howto-age td,
    #howto-age th,
    #howto-age tr {
        padding-left: 2px;
        padding-right: 2px;
        font-size: 17px;
    }
    #howto-content-wrapper p {
        font-size: 18px;
        width: 100%;
    }
    .width900 {
        width: 100%;
    }
    a#navbar-hider {
        left: calc((100% / 2) - 150px);
        padding: 11px 150px !important;
    }
    .hide-xs {
        display: none;
    }
    .index-wrapper p {
        font-size: 17px;
    }
    li.weight-button {
        min-width: 55px;
        max-width: 55px;
    }
    li.first-line.double-button,
    li.double-button {
        min-width: 80px;
        max-width: 80px;
    }
    li.edit-button,
    li.delete-button,
    li.add-button,
    li.remove-button {
        min-width: 45px;
        max-width: 45px;
    }
    #profile-menu-wrapper4 {
        width: 205px;
    }
    .flex-item-edit:first-child,
    .flex-item-registration:first-child {
        margin: 0 0 13px 0;
    }
    .flex-item-edit:first-child,
    .flex-item-registration:first-child {
        width: 90%;
        height: auto;
        margin: auto;
    }

    .intro-content-container {
        flex-direction: column;
        align-items: center;
    }

    .intro-sidebar {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        margin-bottom: 15px;
        margin-left: 0px;
        margin-top: -10px;
        width: 95%;
    }

    .intro-sidebar .button {
        padding: 10px;
        margin: 0 3px;
    }
    .intro-sidebar .button:hover {
        /* padding: 5px; */
        margin: 1px 4px 1px 4px;
    }

    .intro-main-content {
        width: 100%;
    }

    .livestream-label {
        display: none;
    }
    .registration-flex-container {
        align-items: initial;
    }
}


@media only screen and (max-width: 478px) {
    li.camp-button {
        display: none;
    }
    .about-us-bordered-box {
        padding: 10px 14px;
    }
    
    .contact-grid {
        gap: 9px 30px;
        padding: 15px 20px;
        font-size: 16px;
    }

}

@media only screen and (max-width: 450px) {
    .form-popup {
        position: fixed;
        top: 150px;
        left: calc(50% - 150px);
        border: 3px solid #f1f1f1;
        border-radius: 5px;
        z-index: 9;
    }
    .form-popup2 {
        position: fixed;
        top: 150px;
        left: calc(50% - 170px);
        border: 3px solid #f1f1f1;
        border-radius: 5px;
        z-index: 9;
    }
    .form-container {
        min-width: 300px;
        max-width: 300px;
    }
    .form-container2 {
        min-width: 340px;
        max-width: 340px;
    }
    input.weight2 {
        width: 140px;
        margin: 0;
    }
    #competitors-camp-registration2 {
        width: 155px;
        margin: 0;
    }
    #doublestart-wrapper2 #button.addweight {
        margin-left: calc(50% - 79px);
    }
    .error-message,
    .success-message {
        font-size: 20px;
    }
    .competition-name {
        font-size: 22px;
        letter-spacing: 1px;
    }
    #competitions-header {
        font-size: 19px;
    }
    .competition-place {
        display: none;
    }
    .flex-item-insertion.name {
        min-width: 70px;
    }
    li.flex-item-insertion.edit-button {
        margin: 0;
    }
    li.flex-item-insertion.delete-button,
    li.flex-item-insertion.edit-button {
        padding: 4px 7px;
    }
    li.flex-item-insertion #button-padding {
        padding: 4px 1px;
    }
    .inserted-data-wrapper {
        gap: 1px;
    }
    .flex-item-edit,
    .flex-item-registration {
        width: 300px;
        height: 40px;
        border-radius: 8px;
    }
    .registration-form h1,
    #registration-header {
        font-size: 18px;
    }
    .flex-item-edit.profile {
        width: 220px;
    }
    td.profile-intro-special {
        padding-right: 6px;
        width: 200px !important;
    }
    .profile-intro-special input {
        width: 180px;
        font-size: 16px;
    }
    td.profile-intro-special2 {
        padding-right: 6px;
    }
    .profile-intro-special2 input {
        width: 220px;
        font-size: 16px;
    }
    #profile-intro-wrapper td.first-column {
        padding-right: 4px;
    }
    #profile-intro-wrapper td {
        padding-right: 8px;
    }
    #competition-intro-wrapper td.first-column {
        padding-right: 4px;
    }
    #competition-intro-wrapper td {
        padding-right: 8px;
    }
    #howto-menu-hider {
        left: calc((100% / 2) - 37px);
        padding-left: 4px;
        padding-right: 4px;
    }
    #howto-age td,
    #howto-age th,
    #howto-age tr {
        font-size: 15px;
    }
    #index-mail {
        font-size: 16px;
    }
    .reset-password-form {
        font-size: 14px;
    }
    .reset-password-form .flex-item,
    .login-form .flex-item,
    .signup-form .flex-item {
        width: 280px;
    }
    .flex-item-camp-registration-inline {
        gap: 15px;
        font-size: 0.8em;
    }

    .livestream-day-toggle {
        padding: 6px 16px;
        margin: 10px 3px;
        font-size: 1.0rem;
    }
    .tatami-dropdown {
        padding: 4px 8px;
        font-size: 1.05rem;
        margin-bottom: -2px;
    }
    .livestream-back-btn {
        padding: 5px 12px;
        margin-bottom: 0px;
    }
    .livestream-day-buttons {
        margin: 0px 0 -43px -68px;
    }
}


/* Small devices, 600px and up */

@media only screen and (min-width: 601px) {
    .col-s-1 {
        width: 8.33%;
    }
    .col-s-2 {
        width: 16.66%;
    }
    .col-s-3 {
        width: 25%;
    }
    .col-s-4 {
        width: 33.33%;
    }
    .col-s-5 {
        width: 41.66%;
    }
    .col-s-6 {
        width: 50%;
    }
    .col-s-7 {
        width: 58.33%;
    }
    .col-s-8 {
        width: 66.66%;
    }
    .col-s-9 {
        width: 75%;
    }
    .col-s-10 {
        width: 83.33%;
    }
    .col-s-11 {
        width: 91.66%;
    }
    .col-s-12 {
        width: 100%;
    }
}


/* Medium devices, 768px and up */

@media only screen and (min-width: 769px) {
    .col-m-1 {
        width: 8.33%;
    }
    .col-m-2 {
        width: 16.66%;
    }
    .col-m-3 {
        width: 25%;
    }
    .col-m-4 {
        width: 33.33%;
    }
    .col-m-5 {
        width: 41.66%;
    }
    .col-m-6 {
        width: 50%;
    }
    .col-m-7 {
        width: 58.33%;
    }
    .col-m-8 {
        width: 66.66%;
    }
    .col-m-9 {
        width: 75%;
    }
    .col-m-10 {
        width: 83.33%;
    }
    .col-m-11 {
        width: 91.66%;
    }
    .col-m-12 {
        width: 100%;
    }
}

@media only screen and (min-width: 900px) {
    /*  */
}


/* Large devices, 1200px and up */

@media only screen and (min-width: 1201px) {
    .col-l-1 {
        width: 8.33%;
    }
    .col-l-2 {
        width: 16.66%;
    }
    .col-l-3 {
        width: 25%;
    }
    .col-l-4 {
        width: 33.33%;
    }
    .col-l-5 {
        width: 41.66%;
    }
    .col-l-6 {
        width: 50%;
    }
    .col-l-7 {
        width: 58.33%;
    }
    .col-l-8 {
        width: 66.66%;
    }
    .col-l-9 {
        width: 75%;
    }
    .col-l-10 {
        width: 83.33%;
    }
    .col-l-11 {
        width: 91.66%;
    }
    .col-l-12 {
        width: 100%;
    }
}

@media only screen and (max-height: 750px) {
    #howto-menu-wrapper,
    #registered-menu-wrapper {
        top: 80px;
    }
    #howto-menu-wrapper .profile-menu-item,
    #registered-menu-wrapper .profile-menu-item {
        padding: 3px 12px;
    }
    #howto-menu-wrapper .howto-item,
    #registered-menu-wrapper .howto-item {
        font-size: 21px;
    }
    #howto-menu-wrapper .profile-menu-item.offset,
    #registered-menu-wrapper .profile-menu-item.offset {
        padding: 2px 10px;
        font-size: 20px;
    }
}

@media only screen and (max-height: 600px) {
    #howto-menu-wrapper .howto-item,
    #registered-menu-wrapper .howto-item {
        font-size: 20px;
    }
}