html {
    scroll-behavior: smooth;
}

body {
    max-width: 1024px;
    margin: auto; 
}

:root {
    --bulma-scheme-main: rgba(100, 195, 212, 0.8);
    --bulma-body-background-color: #fff5d9;
    --bulma-size-3: 4rem;
    --bulma-navbar-burger-color: #fff5d9;
    --bulma-family-primary: "GeistM";
    --bulma-button-disabled-background-color: white;
    --bulma-modal-card-head-background-color: rgba(100, 195, 212, 1);
    --bulma-navbar-item-img-max-height: 2.5rem;
}

h1 {
    scroll-margin-top: 5rem;
}

blockquote p {
    font-style: italic;
}

cite {
    color: gray;
}

.fs08 {
    font-size: 0.8rem;
}

.table {
    --bulma-table-cell-border-style: none;
}

.bg-w {
    background-color: white;
}

.box-crsl {
    font-size: 0.6rem;
    margin: 0px 10px 25px 10px;
    padding: 0.5rem 0.5rem 0.5rem 0rem;
    white-space: nowrap;
    overflow: hidden; 
}

.map-fp-text {
    border-radius: var(--bulma-box-radius) var(--bulma-box-radius) 0 0;
}

.map-fp {
    border-radius: 0 0 var(--bulma-box-radius) var(--bulma-box-radius);
}

.img-fp {
    border-radius: var(--bulma-box-radius) var(--bulma-box-radius) 0 0;
    width: 100%;
    max-height: 350px;
    object-fit: cover;
}

.earlier {
    text-align: center;
    color: white;
    background-position: center;

    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    background-size: cover;
}

.colhead {
    font-size: 1.3rem;
    font-weight: bold;
    
    text-decoration: wavy underline 0.08rem;
    text-underline-offset: 0.3rem;
}

.slider-navigation-next, .slider-navigation-previous {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 30px;
    height: 30px;
    background: none;
    bottom: -100%;
    margin-top: 40px;
    left: calc(50% - 50px);
    cursor: pointer;
    box-shadow: none;
    border:none;
    transition: opacity .3s,-webkit-transform .3s;
    transition: transform .3s,opacity .3s;
    transition: transform .3s,opacity .3s,-webkit-transform .3s;
}

.slider-navigation-next {
    left: auto;
    right: calc(50% - 50px);
    background: none;
}

.slider-pagination {
    display: none;
}

.slider-item {
    max-width: 220px !important;
    min-width: 220px !important;
}

.navbar {
    margin: 10px;
    top: 10px !important;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: var(--bulma-shadow);

    max-width: 1024px;
    margin: auto;
}

.navbar-menu {
    border-radius: 0 0 10px 10px;
    background: none;
}

a.navbar-item:hover {
    background: none;
    text-decoration: var(--bulma-body-background-color) wavy underline 0.08rem;
    text-underline-offset: 0.25rem;
}

.navbar-burger {
    color: black !important;
}

.title {
    font-family: "Rubik";
    text-shadow: -3px 0px 0 rgba(255,130,0,1), 3px 0 0 rgba(229,83,129,1);
    color: var(--bulma-body-background-color);
    padding-top: 0.2rem;
}

.title2 {
    text-shadow: -1.5px 0px 0 rgba(255,130,0,1), 1.5px 0 0 rgba(229,83,129,1);
}

@media screen and (min-width:1024px) {
    .head-sm {
        display:none;
    }
}

@media screen and (max-width:1023px) {
    .head-lg, .bullet {
        display:none;
    }

    .navbar {
        margin-left: 10px;
        margin-right: 10px;
    }
}

.modal-card-head {
    background-color: rgba(100, 195, 212, 1);
}

.modal-card-body {
    padding: 0.5rem 1.5rem 0.5rem 1.5rem;

}

.modal-card-body p {
    margin-top: 1rem;

}

.modal-card-body input {
    height: 2rem;
    width: 100%
}

.modal-card-body select{
    height: 2rem;
    width: 100%
}

#id_check {
    height: 2rem;
    width: 10%;
    vertical-align: middle;
}
.modal-card-body label {
    margin-bottom:0.4rem
}

.table.is-truncated { 
  width: 100%;
  table-layout: fixed;
  white-space: nowrap;
}

.table.res {
    border: none;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.8rem;
}

.mth th:nth-child(2) {
    width: 40% !important;
    text-align: left;
}
.mth td:nth-child(2) {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 40% !important;
}

.table.is-truncated th:nth-child(n+8) {
    width: 5%;
    border-left: 1px solid lightgray
}

.table.is-truncated td:nth-child(n+8) {
    border-left: 1px solid lightgray;
}

.pos1g tbody tr:nth-child(1){
    border-bottom: 1px solid rgb(58, 200, 0);
}
.pos2g tbody tr:nth-child(2){
    border-bottom: 1px solid rgb(58, 200, 0);
}
.pos3g tbody tr:nth-child(3){
    border-bottom: 1px solid rgb(58, 200, 0);
}
.pos4g tbody tr:nth-child(4){
    border-bottom: 1px solid rgb(58, 200, 0);
}
.pos5g tbody tr:nth-child(5){
    border-bottom: 1px solid rgb(58, 200, 0);
}
.pos6g tbody tr:nth-child(6){
    border-bottom: 1px solid rgb(58, 200, 0);
}
.pos7g tbody tr:nth-child(7){
    border-bottom: 1px solid rgb(58, 200, 0);
}
.pos8g tbody tr:nth-child(8){
    border-bottom: 1px solid rgb(58, 200, 0);
}

.pos1y tbody tr:nth-child(1){
    border-bottom: 1px solid rgb(255, 182, 0);
}
.pos2y tbody tr:nth-child(2){
    border-bottom: 1px solid rgb(255, 182, 0);
}
.pos3y tbody tr:nth-child(3){
    border-bottom: 1px solid rgb(255, 182, 0);
}
.pos4y tbody tr:nth-child(4){
    border-bottom: 1px solid rgb(255, 182, 0);
}
.pos5y tbody tr:nth-child(5){
    border-bottom: 1px solid rgb(255, 182, 0);
}
.pos6y tbody tr:nth-child(6){
    border-bottom: 1px solid rgb(255, 182, 0);
}
.pos7y tbody tr:nth-child(7){
    border-bottom: 1px solid rgb(255, 182, 0);
}
.pos8y tbody tr:nth-child(8){
    border-bottom: 1px solid rgb(255, 182, 0);
}
.res tbody tr:last-child{
    border-bottom: none;
}

.table.is-truncated th {
    text-align: center
}

.table.is-truncated th:nth-child(1) {
    width: 5%
}

.table.is-truncated th:nth-child(2) {
    width: 50%;
    text-align: left;
}
.table.is-truncated td:nth-child(2) {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    max-width: 100px;
}

.schema th:nth-child(2) {
    text-align: center;
}

.schema th:nth-child(3) {
    width: 50%;
    text-align: left;
}

.schema th:nth-child(4) {
    width: 50%;
    text-align: left;
}

.schema td:nth-child(3) {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;

    max-width: 100px;
}

.schema td:nth-child(4) {
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;

    max-width: 100px;
}

.schema {
    width: 100%;
    table-layout: fixed;
    white-space: nowrap;

    font-size: 0.68rem;
    padding: 0rem 0.1rem;
    border: none;
    max-height: 400px;
    overflow-y: scroll;
    max-width: 100%;

}

.schema :nth-child(2 of td) {
    text-align: center;
}

.schema :nth-child(3 of td) {
    text-align: right;
}

.schema th:nth-child(6), .schema td:nth-child(6), .schema th:nth-child(1), .schema td:nth-child(5) {
    text-align: center;
}

.schema :nth-child(2 of th), .schema :nth-child(2 of td) {
    padding-left: 0;
}

.schema :nth-child(5 of th), .schema :nth-child(5 of td) {
    padding-left: 0;
    padding-right: 0.3em;
}

.schema th {
  background-color: white;
  position: sticky;
  top: 0;
}

.sp {
    align-items: center;
    font-size: 0.8rem;
}

.ac-c {
    align-content: center;
}

.plan-box {
    padding-top:0;
    padding-bottom:0;
    align-items: center;
    white-space: nowrap;
}

.plan-nr {
    font-size: 2rem;
    text-align: center;
    p {
        font-size: 0.8rem;
        padding-top: 8px;
        margin-bottom: -10px;
    }
}

.plan-top {
    font-size: 0.8rem;
}

.plan-bottom {
    font-size: 0.8rem;
}

.p-0 {
    padding: 0;
}

.weather {
    text-align: center;
}

.w-symbol {
    font-size: 1.5rem;
}

.w-str {
    font-size: 0.8rem;
    align-content: center;
}

.w-col-f {
    color:lightgray;
}

.w-col {
    border-left: 1px solid lightgray;
}

.weather .column {
    padding:5px 3px 5px 8px;
}

.weather .column:nth-child(1) {
    padding:5px 0px 5px 8px;
}

.weather .column:nth-child(4) {
    padding:5px;
    margin-right: -5px;
}

.grid .is-col-span-4:nth-child(odd of .is-col-span-4){
    margin-bottom: -3px;
}
.grid .is-col-span-4:nth-child(even of .is-col-span-4){
    margin-top: -3px;
}

.teamContainer {
    font-family: var(--bulma-family-primary);
    box-shadow: var(--bulma-shadow);
    border-radius: 1rem;
}

.teamContainer, .label {
    font-size: 0.8rem;
    font-weight: 100;
}
.team {
   padding-left: 0.5rem;
}

.teamContainer :nth-child(odd of .team) {
    border-radius: 10px 10px 0 0;
        box-shadow: var(--bulma-box-shadow);
}
.teamContainer :nth-child(even of .team) {
    border-radius: 0 0 10px 10px

}

.team.lose {
    background-color: rgb(231, 231, 231) !important;

}

.team.lose .label {
    color: rgb(140, 140, 140) !important;
    text-decoration: line-through;
}

.team.na {
    background-color: rgb(231, 231, 231) !important;
}

.team.win {
   background-color: rgb(255, 255, 255) !important;
}

.team.win::after {
   content: "➜";
   position:absolute;
   right: 10px;
   top: 9%;
    
   color: rgb(152, 152, 152)
}

.round:last-child .team::after {
    content: ""
}

.team.highlightWinner .label, .team.highlight .label {
    background: linear-gradient(45deg, rgba(255,130,0,1) 0%, rgba(229,83,129,1) 100%);
    color: transparent;
    background-clip: text;
    font-weight: bold;
}

.score {
    visibility: hidden;
}

#plbr {
    width: 100%;
    overflow-x: scroll;
}

.sound-wave {
    display: flex;
    align-items: center;
    gap: 1px;
    height: 24px;
    background-color: transparent;
}

.sound-wave span {
  display: block;
  width: 100%;
  height: 10px;
  background: linear-gradient(45deg, rgba(255,130,0,1) 0%, rgba(229,83,129,1) 100%); /* Ändra till valfri färg på vågen */
  border-radius: 0px;
  animation: pulse 0.8s infinite ease-in-out;
}

/* Skapar den animerade effekten och fördröjer staplarna */
.sound-wave span:nth-child(1) { animation-delay: 0.1s; }
.sound-wave span:nth-child(2) { animation-delay: 0.3s; }
.sound-wave span:nth-child(3) { animation-delay: 0.6s; }
.sound-wave span:nth-child(4) { animation-delay: 0.2s; }
.sound-wave span:nth-child(5) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 100% { height: 10px; }
  50% { height: 20px; }
}

@media screen and (max-width: 515px) {
    .schema {
        font-size: 2vw;
    }
}

@media screen and (max-width: 400px) {
    .earlier {
        font-size: 8vw !important;
    }

    .colhead {
        font-size: 5vw;
    }

    .table.res {
        font-size: 3vw;
    }

    .sp {
        font-size: 3vw;
    }
    
    .weather {
        font-size: 4vw;
    }
    
    .w-symbol {
        font-size: 5vw;
    }
    
    .w-str {
        font-size: 3vw;
    }
}

@media screen and (max-width: 450px) {
    .mth td, .mth th{
        font-size: 2.5vw;
    }
}

.rubik {
    font-family: 'Rubik';
}

.bracket {
    float: left !important;
}

.bubble {
    height: 25px !important;
    line-height: 25px !important;
    width: 27px !important;
    right: 0 !important;
}

:nth-child(odd of .team) .bubble {
    border-radius: 0 0.5rem 0 0
}

:nth-child(even of .team) .bubble {
    border-radius: 0 0 0.5rem 0
}

.team .bubble::after {
    display: none
}

.anm {
    text-align: left !important;
}

.anm :nth-child(1 of td) {
    width: 75%;
}

.mth {
    background: none;
    box-shadow: none;
}

.navbar-item:focus {
    background: none;
}