@charset "ISO-8859-1";
.mywebsite {
    background-color: #202742;
    color: #f5f5f5;
    padding: 50px 25px;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    z-index: 1;
}
.mywebsite h1 {
    font-size: 40px;
    font-weight: bolder;
    margin-bottom:15px;
 }


.container{
    padding-top: 15px;
    padding-left: 15px;
}

#insResTb > tbody > tr > td {
    vertical-align: middle;
}

.modal-content{
    min-width:fit-content;
}

.modal-dialog{
    min-width:fit-content;
}

.modal-title{
    font-weight: bold;
    font-size: 16px;
}
.modal-body{
    text-align: center;
}


.row-block{
    margin-bottom: 10px;
    margin-top: 20px;
}

.bg-grey {
    background-color: #e5e5e5;
}

.form-control {
    background: #f7f7f7 none repeat scroll 0 0;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    font-size: 14px;
    height: 50px;
    line-height: 50px;
}

.btn {
    color: #222;

    border-radius: 999px;

    text-decoration: none;

    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    align-items: center;
    font-weight: 600;
}
.div-submit {
    text-align: center;
}

.btn-submit {
    font-size: 1.5rem;
    width: 75%;
    height: 50px;
    line-height: 50px;
    padding: 0;
    margin-bottom: 20px;
    margin-top: 20px;
    outline-color: #f5f5f5 !important;
    valign: center;
}

.btn.btn-winter {
    background: #d1e8fd none repeat scroll 0 0;
}

.btn.btn-summer {
    background: #f0c983 none repeat scroll 0 0;
}

.btn:hover,.btn:active,.btn:focus,.btn:active:focus{
    #border-color: #000000 !important;
    outline: 0px;
}
.btn-winter:hover,.btn-winter:active,.btn-winter:focus {
    background-color: #aad6fe;
    color: #222;
}

.btn-summer:hover,.btn-summer:active,.btn-summer:focus{
    background-color: #eaa56c;
    color: #222;
}



.btn.btn-secondary{
    font-size: 1.5rem;
    height: 40px;
    line-height: 30px;
    padding: 2px;
    width: 208px;
    outline-color: #f5f5f5 !important;
    margin-top: 10px;
}


.div-btn-back {
    display: inline-flex;
}

.btn-back-big {
    gap: 10px;

    font-size: 1.3rem;

    padding: 8px 16px;
    transition: all 0.2s ease;
}

.btn-back-big .arrow {
    font-size: 1.6rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.btn-back-big:hover .arrow {
    transform: translateX(-4px);
}

.form-group{
    margin-top: 15px;
}

label {
    margin-right: 15px;
}

.athlete-option {
    display: flex;
    align-items: center;
}
.athlete-option img {
    margin-right: 10px;
    width: 20px;
    height: auto;
}
.label-as-badge {
    border-radius: 1em;
}
.label{
float: right;
margin-left: 3px;
}

img.flag {
    width: 40%;
}

.total-col {
    font-weight: bold;
    background-color: #ddd; /* Colore di sfondo personalizzato */
}

.ol-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom:10px
}

.ol-title img {
    height: 40px;
    width: auto;
}

.ol-title h3 {
    margin: 0;
}

.badge-success {
    background-color: #28a745; /* verde bootstrap success */
    color: #fff;
}
.badge-danger {
    background-color: #d9534f; /* verde bootstrap success */
    color: #fff;
}

.ol-season {
    font-size: 2rem;
    vertical-align: middle;
}


.ol-summer {
    background: linear-gradient(135deg, #f3db8f, #cf0707);
    color: #fff;
}
.ol-winter {
    background: linear-gradient(135deg, #f4f9fd, #8dc8ff);
    color: #000;
}

.head-logo {
    height: 40px;
    width: auto;
}
.user-bar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 10px 16px;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);

    box-shadow: 0 1px 5px rgba(0,0,0,0.12);
}

.user-name {
    font-weight: 600;
    color: #343a40;
}

.user-action {
    color: #007bff;
    text-decoration: none;
}

.user-action:hover {
    text-decoration: underline;
}


 @media screen and (max-width: 480px) {
     .mywebsite h1 {
        font-size: 25px;
     }
    .mywebsite {
    padding: 15px 12px;
    font-family: 'Montserrat', sans-serif;
}


.head-logo {
    height: 25px;
    width: auto;
}

    .container{
        padding: 20px;
    }

    .ol-title h3 {
    font-size: 22px;
    }
 }


@media (min-width: 768px) { /* desktop / tablet */
    #legendaCollapse {
        display: block !important;
        height: auto !important;
        visibility: visible !important;
    }
}

 .toggle-gare {
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
}

.toggle-gare .arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

.toggle-gare[aria-expanded="true"] .arrow {
    transform: rotate(180deg);
}

.back-bar {
    padding: 12px 16px;
}




#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #fff;
    text-align: center;
    line-height: 42px;
    border-radius: 50%;
    font-size: 20px;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, background-color 0.2s ease;
    z-index: 1000;
}

#scrollTopBtn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

#scrollTopBtn.show {
    opacity: 1;
    pointer-events: auto;
}

.user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    font-weight: 600;
    color: #222;
    text-decoration: none;
    cursor: pointer;
}

.user-trigger:hover {
    text-decoration: none;
}

.chevron {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
    fill: none;
}

@media (hover: hover) {
    .dropdown {
        position: relative;
    }

    .dropdown-menu {
        top: 100%;
        margin-top: 0;
    }

    .dropdown:hover .dropdown-menu {
        display: block;
    }
}

.dropdown-menu {
    min-width: 130px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border: none;
}

.dropdown-item {
    display: block;
    width: 100%;
    font-size: 1.3rem;
    padding: 10px 10px;
    text-decoration: none !important;
}

.drop-item-summer{
    color: #222;
}

.drop-item-summer:hover {
    background-color: #f0c983;
    color: #222;

}

.drop-item-winter:hover {
    background-color: #aad6fe;
}

.legenda-toggle {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.legenda-title {
    display: inline-block;
}

.legenda-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
}

.legenda-toggle[aria-expanded="true"] .legenda-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.page-title{
margin-top:0px;
}

.rules-div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 600;
}

.rules-div:hover {
    text-decoration: none;
    color: #000;
}

.rules-icon {
    font-size: 18px;
}

.rules-text {
    font-size: 15px;
}

a.isDisabled {
  color: currentColor;
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
}

.olympic-container {
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        max-width: 400px;
        background: #f4f4f9;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border: 1px solid #e0e0e0;
    }

    .progress-header {
        display: flex;
        justify-content: space-between;
        margin-bottom: 10px;
        font-weight: bold;
        color: #2c3e50;
    }

    .progress-bar-bg {
        background-color: #d1d8e0;
        border-radius: 10px;
        height: 20px;
        width: 100%;
        overflow: hidden;
    }

    .progress-bar-fill {
        height: 100%;
        width: 0%; /* Gestito via JS */
        transition: width 1s ease-in-out;
    }

    .progress-bar-fill-winter {
        background: linear-gradient(90deg, #e4f2fd, #8dc8ff);
    }


    .progress-bar-fill-summer {
        background: linear-gradient(90deg, #f3db8f, #cf0707);
    }

    .stats {
        margin-top: 10px;
        font-size: 0.85em;
        color: #7f8c8d;
        text-align: right;
    }