@font-face {
    font-family: 'Gabarito';
    src: url(fonts/gabarito/Gabarito-Regular.ttf) format("truetype")
}

* {
    padding: 0;
    margin: 0;
    color: #000;
    box-sizing: border-box
}

body {
    font-family: 'Gabarito', sans-serif;
    background-color: #3a4856;
    background-image: linear-gradient(135deg, #3a4856, #242e38);
    min-height: 100vh
}

h1 {
    font-size: 3.5em;
    color: #f1f1e6;
}

h2 {
    font-size: 2em;
    color: #f1f1e6;
}

h3 {
    font-size: 1.2em;
    color: #f1f1e6; 
}

table {
    border-collapse: collapse
}


nav {
    position: sticky;
    top: 0;
    height: 7vh;
    width: 100%;
    min-height: 55px;
    z-index: 1;
}


.first-sect {
    
        height:100vh;
        /*background-image:url(swimBack.jpg);*/
        background-image:url(newSwimBack2.jpg);
        background-repeat:no-repeat;
        background-position:center;
        background-size:cover
        
}


button {
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

a {
    text-decoration: none;
    color: #f1f1e6
}


.nav-cont {
    display: flex;
    background-color: #3a4856;
    z-index: 1;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    padding: 0 10px;
}



.nav-border {
    background-image: linear-gradient(180deg, #000, #3a4856);
    height: 5px;
    width: 100%;
}

.searchbar {
    height: 60%;
    min-width: 40vw;
    background-color: #f1f1e6;
    padding: 0 1%;
    border: none;
    border-radius: 10px;
}


.v-center {
    display: flex;
    align-items: center;
    height:100%;
}

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


.h-left {
    display: flex;
    justify-content: flex-start;
    width:100%;
}


.add-box {
    border: 1px solid #009FFD;
    padding: 0.25rem 1rem;
    border-radius: 15px;
    margin: 0 2rem;
}

.right {
    display: flex;
    gap: 10px;
}


.nav-item {
    margin-right: 10px;
}


.logo-img {
    height: 100%;
    background-color: none;
    padding: 1rem 0;
}

.profile-img {
    height: 100%;
    background-color: none;
    padding: 0.7rem 0;
}

.centered {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

header h2 {
    margin-left: 2%
}



.layout {
    display: grid;
    grid-template-areas:
        "opts actual";
    grid-template-columns: 1fr 5fr;
    min-height: 100vh;
}


.opts {
    grid-area: opts;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    padding: 1rem;
}
.stick-to {
    position:sticky;
    top:7vh;
    padding: 20% 0 0 3%; 
}
.actual {
    grid-area: actual;
    
}



main {
    width: 100%;
}

.chartSect {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}




.statBox, .swimTimeChart {
    background-color: #283643;
    border-radius: 15px;
    padding: 1rem;
    margin: 0.5rem;
    min-width: 300px;
    min-height: 300px;
    height: 40vh;
}

.statBox {
    width: 23%;
}

.swimTimeChart {
    width: 48%;
}

.formBox {
    background-color: #283643;
    border-radius:15px;
    padding:10px;
    margin:.5rem;
    width:23%;
    min-width:300px;
    min-height: 300px;
}

.selected, .not-selected {
    padding: 0.1rem 1rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
}

.selected {
    background-color: #009FFD;
}




.evanTableHolder {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
}
.table-holder {
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid black;
    border-radius: 5px;
    width: 70%;
}

.evan-table {
    width: 100%;
    height: 100%;
}

.evan-table tr th, .evan-table tr td {
    padding: 0.25rem 1rem;
    text-align: center;
}

.evan-table tr th {
    border-bottom: 1px solid #f1f1e6;
    color: #f1f1e6;
}

.select-bar {
    width: 90%;
    margin: 1rem;
    display: flex;
}

.select-button {
    padding: 0.5rem 1rem;
    border: 1px solid black;
    margin: 0.5rem;
    font-size: 1.3rem;
    color:#f1f1e6;
    font-weight: bold;
    border-radius: 15px
}

.year_select {
    align-self: center;
    width: 25%;
    height: 100%;
    padding: 0.25rem 1rem;
    background-color: rgba(255, 255, 255, 0.2);
    display:none
}


.extra-large-table-holder {
    width: 96%;
    background-color: #283643;
    border-radius: 15px;
    margin: 0.5rem;
    min-width: 300px;
    height: 70vh;
    max-height:70vh;
    overflow: auto;
}


.big-table-holder, .large-table-holder {
    
    background-color: #283643;
    border-radius: 15px;
    margin: 0.5rem;
    border-radius: 10px;
    overflow: hidden;
    scrollbar-width: hidden;
    height: 40vh;
    min-width: 300px;
    min-height: 300px;
}

.v-scrollable {
    overflow: auto;
    max-height: 100%;
    width: 100%;
}

.extra-large-table-holder::-webkit-scrollbar, .v-scrollable::-webkit-scrollbar, .full-size-box::-webkit-scrollbar {
    display:none
}


.box-title {
    border-bottom: 1px solid #f1f1e6;
    color: #f1f1e6;
    font-size: 1.4rem;
    padding: 0.5rem 1rem;
    font-weight: bold;
}

.btn {
    border-radius: 5px;
    padding: 0.25rem 1rem;
    color: #f1f1e6;
    margin: 0.25rem
}

.big-table-holder {
    width: 23%;
} 
.large-table-holder {
    width: 48%
}

.main-table {
    width: 100%;
    max-height: 100%;
}

.full-size-box {
    width: 80%;
    max-height: 80%;
    position: fixed;
    top: 10%;
    left: 15%;
    z-index: 2;
    display: none;
    background-color: #283643;
    border-radius: 5px;
    overflow: auto;
}


.main-table tr th, .main-table tr td {
    padding: 0.5rem;
    color: #f1f1e6;
}

.main-table tr th {
    border-bottom: 1px solid #f1f1e6;
    font-size: 1.4rem;
}





#screen-shield {
    display: none;
    background-color: rgba(0, 0, 0, 0.4);
    height: 100%;
    width: 100%;
    z-index: 1;
    position: fixed;
    top: 0;
    left: 0;
}

.animate-button, .box {
    box-shadow: inset 0 0 0 0 #009FFD;
    -webkit-transition: ease-out 0.4s;
    -moz-transition: ease-out 0.4s;
    transition: ease-out 0.4s;
}


.box {
    border: 1px solid #009FFD;
    width: 70%;
    padding: 0.1rem 1rem;
    border-radius: 15px;
    margin: 0 0 1rem 0;
}

.half-box {
    border: 1px solid #009FFD;
    padding: 0.25rem 1rem;
    border-radius: 15px;
    margin: 1rem;
}

.box h2, .half-box h2 {
    transition: ease-out 0.4s;
}


.box:hover, .animate-button:hover, .half-box:hover {
    box-shadow: inset 1000px 0 0 0 #009FFD;
}

.box:hover h2, .box:hover {
    color: #242e38
}

.hover-box {
    transition: ease-out 0.4s;
}

.hover-box:hover {
    border: 1px solid #009FFD
}






.box h2 {
    text-align: center;
}

.button-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    height: 40vh;
    background-color: #283643;
    border-radius: 15px;
    padding: 1rem;
    margin: 0.5rem;
    min-width: 300px;
    min-height: 300px;
    width: 23%;
}




.takeSpace {
    width: 100%;
    height: 100%;
}

.hideBig {
    display: none;
}

.hideMid {
    display: block;
}

.floor {
    height: 10vh;
}


.comp_title {
    white-space: nowrap;      /* Prevents the text from wrapping onto a new line */
    overflow: hidden;         /* Hides any text that overflows the container */
    text-overflow: ellipsis;  /* Adds ellipsis (...) to the end of the truncated text */
    max-width: 60vw;              /* Adjust the width as necessary, e.g., set a fixed width if needed */
}

.swimVideo {
    width: 48%;
    height: 40vh;
    margin: 0.5rem;
    border-radius: 15px;
}

.swimVideo video {
    border-radius: 15px;
}

.chart-form div select {
    background-color: rgba(0, 0, 0, 0.5);
    font-size: 1.3rem;
    color:#f1f1e6;
    font-weight: bold;
    padding: 0.25rem 1rem;
    border: 1px solid black;
    border-radius: 15px
}
.chart-form {
    display:flex;
    margin:0;
    padding:0;
    align-items: center;
}

.spacedTop {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.img {
    height: 3vh;
}



@media only screen and (max-width: 1125px) {
    .layout {
        grid-template-areas:
            "opts actual";
        grid-template-columns: 1fr 5fr;
    }
    .showMid {
        display: block;
    }
    .hideMid {
        display: none;
    }
    h1 {
        font-size: 2.5rem;
    }
}

@media only screen and (max-width: 800px) {
    .responsive {
        width: 95%;
        min-width: 95%;
        max-width: 95%;
        min-height: 300px;
    }
}

@media only screen and (max-width: 650px) {
    header h2 {
        margin-left: 2.5%
    }
    .layout {
        display: block;
    }
    /* Expand box styling remains unchanged */
    .expand-box {
        display: block;
        position: fixed;
        top: 8vh;
        right: 2vw;
        height: 5vh;
        width: 8vw;
    }
    .expand-box-line {
        height: 20%;
        width: 100%;
        margin: 10% 0;
        background-color: #f1f1e6;
        border-radius: 10px;
    }

    /* Initial hidden state with opacity and transform for smooth animations */
    .opts {
        opacity: 0;
        transform: translateX(100%); /* Slide out of view */
        transition: opacity 0.5s ease, transform 0.5s ease;
        background-color: rgba(0, 0, 0, 0.8);
        height: 80%;
        width: 80%;
        z-index: 2;
        position: fixed;
        top: 8vh;
        right: 0;
        border-radius: 0 0 0 15px;
        visibility: hidden; /* Hide from layout when not visible */
    }

    /* Class when options are visible */
    .opts.show {
        opacity: 1;
        transform: translateX(0); /* Slide in */
        visibility: visible;
    }

    /* Screen overlay for closing menu */
    .regScreen {
        display: none; /* Hide by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    .searchbar {
        min-width: 30vw;
        width: 30vw;
    }
    .statBox, .swimTimeChart {
        min-width: 95%;
        max-width: 95%;
        min-height: 250px;
        height: 35vh;
    }
    .formBox {
        min-width: 95%;
        max-width: 95%;
    } 
   .swimVideo {
        min-width: 95%;
        max-width: 95%;
        min-height: unset;
        height: unset;
    }
    .button-box {
        min-width: 95%;
    }
    .big-table-holder, .large-table-holder, .extra-large-table-holder, .results-container {
        width: 95%;
        min-width: 95%;
        max-width: 95%;
        min-height: 0vh;
        height: unset;
        max-height: 70vh;
    }
    .extra-large-table-holder {
        min-width: 95%;
        height: unset;
        min-height: 80vh;
        max-height: unset;
    }
    .hideSmall {
        display: none;
    }

    .hideBig {
        display: block;
    }
    .hideMid {
        display: none;
    }
    .year_select {
        width: 40%
    }
    td, th {
        padding: 0.25rem 0.5rem;
    }
    .chart-form div select {
        font-size: 1.1rem;
        padding: 0.1rem 0.5rem;
    }
    .full-size-box {
        width: 95%;
        top: 10%;
        left: 2.5%;
    }
}




.results-container {
    width: 48%;
    min-width: 650px;
    margin: 0.5rem;
    box-sizing: border-box;
    background-color: #283643;
    border-radius: 15px;
}

.comp-title {
    font-size: 1.5rem;
    max-width: 90%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0.5rem 1rem;
}

.chart-table-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.chart-container, .table-container {
    width: 48%;
    height: 80%;
}

.chart-container {
    max-height: 70%;
}

.line-under {
    border: 1px solid #f1f1e6;
    width: 100%;
    margin-bottom: 1rem;
}

.score-container {
    display: none;
}

.score-value {
    color: #009FFD;
    font-weight: bold;
    padding: 0.25rem 1rem;
}

.dropdown-arrow {
    width: 0;
    height: 0;
    border-top: 0.75rem solid transparent;
    border-bottom: 0.75rem solid transparent;
    border-left: 0.75rem solid #f1f1e6; 
    margin-left: 0.5rem;
    transition: transform 0.3s ease-in-out, margin 0.3s ease-in-out;
}

.dropdown-arrow.toggle-drop {
    width: 0; 
    height: 0;
    border-top: 0.75rem solid transparent;
    border-bottom: 0.75rem solid transparent;
    border-left: 0.75rem solid #f1f1e6; 
    margin-left: 1rem;
    transform: rotate(90deg);
}

.dropdown-container {
    height: 0;
    overflow: hidden;
    }

.dropdown-container.toggle-show-dropdown {
    height: auto;
}


@media only screen and (max-width: 1024px) {
    /* Adjust when the screen size is medium */
    .table-container {
        width: 100%;
    }
    .chart-container {
        display: none;
    }
    .score-container {
        display: block;
    }
    .results-container {
        min-width: 95%;
    }
}
