/* TO FUTURE EDITOR: couple-table-wrapper is being used in both couplelist.html and editevent.html, 
                     so change with caution*/
.couple-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

.couple-table-wrapper input[type=number] {
    padding: 3px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: .9rem;
    width: 50px;
    text-align: center;
    margin: 0 .5rem;
}

.change-couple-num-form form {
    width: fit-content;
    padding: 0 .5rem;
}

/* .couple-table-wrapper tr, .couple-table-wrapper th {
    border-bottom: 1px solid #ddd;
}

.couple-table-wrappertr:last-child {
    border-bottom: none;
} */

.couple-table-wrapper table, 
.event-table-wrapper table,
.entrylist-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    /* font-size: 0.9rem; */
    border: none;
}

.couple-table-wrapper th,
.couple-table-wrapper td,
.event-table-wrapper th,
.event-table-wrapper td,
.entrylist-table-wrapper th,
.entrylist-table-wrapper td {
    padding: .5rem;
    text-align: center;
    white-space: normal;
    border-left: none;
    border-right: none;
}

.couple-table-wrapper thead, 
.event-table-wrapper thead,
.entrylist-table-wrapper thead {
    /* background-color: #f2edff; */
    background-color: #f0edff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.couple-table-wrapper tr:nth-child(even),
.event-table-wrapper tr:nth-child(even),
.entrylist-table-wrapper tr:nth-child(even) {
    background-color: #f7f6fd;
}

.name-field {
    font-family: "Plus Jakarta Sans", sans-serif;
    padding: .2rem .5rem;
    font-size: 1.1rem;
    width: 20rem;
}

.judge-box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    width: 80dvw;
}

.judge-box>* {
    padding: 5px;
}
.aux-event-container {
    /* width: 100%;
    overflow-x: auto; */
    display: flex;
    gap: 5rem;
}

.aux-event-container input:not([type="submit"]), 
.aux-event-container textarea {
    padding: .5rem;
    width: 100%;
    box-sizing: border-box;
}

.aux-event-container textarea {
    height: 10rem;
}

.create-event-but {
    width: fit-content;
}

.scoreboard-fixed-columns {
    table-layout: fixed;
}

.aux-event-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border-left: none;
    border-right: none;
    border: none;
}

.aux-event-container th,
.aux-event-container td {
    padding: 1em;
    text-align: center;
    border-left: none;
    border-right: none;
}

.aux-event-container thead {
    /* background-color: #f2edff; */
    background-color: #f0edff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.aux-event-container tr:nth-child(even) {
    background-color: #f7f6fd;
}

/* for tablet (landscape) */
@media screen and (width <=1400px) {
    .aux-event-container {
        display: block;
    }
}

/* for tablet (portrait) */
@media screen and (max-width: 850px) {
    .aux-event-container input:not([type="submit"]),
    .aux-event-container textarea ,
    .create-event-but{
        width: 100%
    }
}

/* for mobile */
@media screen and (width <=600px) {
    .aux-event-container {
        table-layout: auto;
    }

    .aux-event-container th,
    .aux-event-container td {
        padding: 1em .5rem;
    }
}
.comp-grid {
    display: grid;
    grid-gap: 5rem;
    gap: 5rem;
    grid-template-areas: "sidebar main other";
    grid-template-columns: minmax(0, 25dvw) minmax(0, 2.5fr) minmax(0, 20dvw);
    padding: 3rem 1rem;
}


.section-info{
    margin-left: 1rem;
}

.workshop-container {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    padding-top: 1em;
    padding-right: 1em;
    box-sizing: border-box;
    gap: 3rem;
}

.workshop-table{
    table-layout: fixed;
    width: 100%;
}

.workshop-table tr{
    padding-top:10px;
    padding-bottom: 10px;
}

.comp-button-container{
    width: fit-content;
}

.other{
    margin-top: 4em;
}

.sticky-menu{
    position: sticky;
    top: 8em;
    height: fit-content;
}

.side-menu {
    right: 0px;
    justify-self: end;
}


.side-menu-list li {
    color: gray;
    text-decoration: none;
    margin-bottom: 3em
}

.side-menu-list a {
    color: gray;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.5em;
}
.side-menu-list li {
    list-style: none
}
.main {
    display: inline-block;
}

li {
    width: fit-content;
}

.side-menu-list li a {
    padding-right: 0px;
    transition: 0.5s;
}

.side-menu-list li a::before {
    content: "\00ab";
    position:relative;
    opacity: 0;
    top: 0;
    right: -20px;
    transition: 0.5s;
}

.comp-schedule-container {
    margin-top: 2rem;
}

.comp-schedule-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border-left: none;
    border-right: none;
    border: none;
}

.comp-schedule-container th,
.comp-schedule-container td {
    padding: 1em;
    text-align: center;
    border-left: none;
    border-right: none;
}

.comp-schedule-container thead {
    background-color: #f2edff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.comp-schedule-container tr:nth-child(even) {
    background-color: #f7f6fd;
}



.side-menu-list li a:hover {
    padding-right: 25px;
}

.side-menu-list li:hover a::before {
    opacity: 1;
    right: 0px;
}



@media screen and (width > 1024px) {
    
}

@media screen and (width <=1250px) {
    
}

/* for tablet (landscape) */
@media screen and (width <=1024px) {
    .comp-grid {
        grid-template-areas: "sidebar main other";
        grid-template-columns: minmax(0, 4dvw) minmax(0, 2.5fr) minmax(0, 10dvw);
    }
    .other {
        margin-top: 2em;;
    }
    .side-menu-list {
        display: none;
    }
    .comp-button-container{
        position: absolute;
        top: 0;
        right: 50px;
        width: 200px;
    }
    /* .gradient-button {
        position: sticky;
        top: 0;
    } */
    .workshops h3 {
        font-size: 1.4em;
    }
}

/* for tablet (portrait) */
@media screen and (width <=850px) {
    .comp-grid {
            padding: 0;
            display: flex;
            flex-direction: column-reverse;
            gap: 1em;
        }
    
        .comp-button-container {
            /* position: fixed;
            top: 4rem;
            right: 0;
            left: -10px;
            width: 100dvw;
            height: 50px; */
            width: 100%;
            position: relative;
            box-sizing: content-box;
            right: 0;
        }
    
        .other {
            margin: 0;
        }
    
        .sticky-menu {
            top: 4rem;
        }
}

@media screen and (width <=750px) {
    
}

/* for mobile */
@media screen and (width <=600px) {
    .workshop-container {
        flex-direction: column;
        gap: 1rem;
    }
    .workshop-button {
        width: 100%;
        margin-bottom: 1em;
    }
}
.scrutineer-margins {
    margin: 6rem 3rem 3rem 3rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 95vw;
    max-width: 95dvw;

}
.event-container {
    background-color: #FFFFFF;
    border: 1px solid rgb(214, 214, 214);
    border-radius: .5rem;
    box-sizing: border-box;
    color: #111827;
    font-size: 1rem;
    font-weight: 600;
    padding: 2rem 2.5rem;
    text-decoration: none #D1D5DB solid;
    text-decoration-thickness: auto;
    box-shadow: 0 2px 3px 0 rgba(27, 5, 42, 0.233);
    cursor: default;
}
#coupleTable tr {
    border-bottom: 1px solid #ddd;
}
#coupleTable tr:last-child {
    border-bottom: none;
}
.couple-table-container {
    overflow-y: auto;
    height: 80%;
    margin-top:1rem;
}

.scrutineer.competitor-list-container {
    margin: 0;
    width: 150px;
    max-width:150px;
}

.scrutineer-container .deck-captain-button {
    width: 60px;
}

.competitor-list-container {
    height: 75vh;
    height: 75dvh;
    margin-top: 3vh;
    margin-top: 3dvh;
    width: 25%;
    min-width:300px;
}

.deck-captain-container {
    margin: 2rem;
}

.judge-form-final {
    display: flex;
    gap: 2rem;
    margin: 1rem;
    align-items: center;
}

.status-label {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

.event-label {
    font-size: 25px;
    margin: 0;
}

#current-event {
    scroll-margin-top: 4rem;
}
.current-event {
    border-left: 10px solid #b1e1b1;
    margin-bottom: 5px;
}
.next-event {
    border-left: 10px solid #fca5a5;
    margin-bottom: 5px;
    scroll-padding-top: 70px;
}
.other-event {
    /* border: 1px solid black; */
    margin-bottom: 5px;
    /* font-family: Segoe UI; */
}
.num-icon, .num-icon-small {
    display: inline-block;
    width: 70px;    
    background-color: #FFFFFF;
    border: 1px solid rgb(213, 209, 219);
    border-radius: .5rem;
    box-sizing: border-box;
    color: #111827;
    font-family: "Inter var", ui-sans-serif, system-ui, -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25rem;
    padding: .5rem;
    text-align: center;
    text-decoration: none #D1D5DB solid;
    text-decoration-thickness: auto;
    box-shadow: 0 1px 2px 0 rgba(108, 24, 164, 0.233);
    cursor: default;
    white-space: nowrap;
}

.num-icon-small {
    width: 50px;
}


.scrutineer-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.tba-pairing-container table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

/* .tba-pairing-container tr, .tba-pairing-container th {
    border-bottom: 1px solid #ddd;
}

.tba-pairing-container tr:last-child {
    border-bottom: none;
} */

.tba-pairing-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border-left: none;
    border-right: none;
    border: none;
    table-layout: fixed;
}

.tba-pairing-container th,
.tba-pairing-container td {
    padding: .5rem;
    text-align: center;
    white-space: nowrap;
    border-left: none;
    border-right: none;
}

.tba-pairing-container thead {
    /* background-color: #f2edff; */
    background-color: #f0edff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.tba-pairing-container tr:nth-child(even) {
    background-color: #f7f6fd;
}

.tba-pairing-container table {
    width: 100%;
    border-collapse: collapse;
    border: none;
}

/* .tba-pairing-container tr, .tba-pairing-container th {
    border-bottom: 1px solid #ddd;
}

.tba-pairing-container tr:last-child {
    border-bottom: none;
} */

.results-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border-left: none;
    border-right: none;
    border: none;
    table-layout: fixed;
}

.results-content th,
.results-content td {
    padding: .5rem;
    text-align: center;
    white-space: normal;
    border-left: none;
    border-right: none;
}

.results-content thead {
    /* background-color: #f2edff; */
    background-color: #f0edff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.results-content tr:nth-child(even) {
    background-color: #f7f6fd;
}

select#follow, select#lead {
    width: 150px;
    margin-right: 1rem;
}

.scoreboard-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.scoreboard-fixed-columns {
    table-layout: fixed;
}

.scoreboard-table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    border-left: none;
    border-right: none;
    border: none;
}

.scoreboard-table-wrapper th,
.scoreboard-table-wrapper td {
    padding: 1em;
    text-align: center;
    white-space: nowrap;
    border-left: none;
    border-right: none;
}

.scoreboard-table-wrapper thead {
    /* background-color: #f2edff; */
    background-color: #f0edff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.scoreboard-table-wrapper tr:nth-child(even) {
    background-color: #f7f6fd;
}

.tba-select-field {
    width: 80px;
}
/* for tablet (landscape) */
@media screen and (width <=1024px) {
    .scrutineer-margins {
        margin: 6rem 5rem 3rem 5rem;
    }
}


/* for mobile */
@media screen and (width <=600px) {
    .scrutineer-margins{
        margin: 5rem 2rem 3rem 2rem;
    }
    .event-label {
        font-size: 1.4rem;
    }
    .scoreboard-fixed-columns {
        table-layout: auto;
    }

    .scoreboard-table-wrapper th,
    .scoreboard-table-wrapper td {
        padding: 1em .5rem;
    }
}

@media screen and (height <= 570px) {
    .couple-table-container {
        height: 70%;
    }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */

html {
    font-family: "Plus Jakarta Sans", sans-serif;
    scroll-behavior: smooth;
    scroll-margin-top: 8rem;
}

h2 {
    font-size: 1.7rem;
    margin-bottom: .3em;
}

h3 {
    margin-bottom: .5rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1rem;
    margin: .5rem 0;
}

.scroll-top{
    scroll-margin-top: 8rem;
}

select {
    padding: 5px 5px;
}

[type="submit"] {
    background: #9989cb;
    border-radius: 999px;
    box-sizing: border-box;
    color: #FFFFFF;
    cursor: pointer;
    font-weight: 700;
    line-height: 24px;
    padding: 3px 15px;
    width: fit-content;
    word-break: break-word;
    border: 0;
}

a:link {
    color: rgb(48, 117, 177);
    /* Or your desired default link color */
}


a:visited {
    /* color: rgb(115, 48, 177); */
    color: rgb(48, 117, 177);
}

.page-margin {
    margin: 10dvh 10dvw;
}

.main-content {
    margin: 6rem 10rem 3rem 10rem;
}

/* Lock the top navigation bar to the top of the page */
.topnav {
    background-color: #ffffff;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    /* Added drop shadow */

}

/* Style the links inside the navigation bar */
.topnav a {
    float: left;
    text-align: center;
    padding: 18px 16px;
    text-decoration: none;
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Change the color of links on hover */
.topnav a:hover {}

/* Add a color to the active/current link */
.topnav a.active {
    background-color: #f2ebff;
}

.center {
    margin: auto;
}

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


.navbar_logo {
    display: inline-block;
    width: auto;
    padding-left: 10px;
    padding-right: 20px;
}

#navbar_menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    float: left;
}

.imgbanner {
    margin-top: 4rem;
    width: 100%;
    height: 25dvh;
    object-fit: cover;
    box-shadow: 0 1px 3px 0 rgba(23, 6, 35, 0.233);
}

.equal-size-flex-item {
    flex: 1 1 0px;
}

.hi-user {
    float: right;
    margin-top: 1.3em;
    margin-right: 2em;
}

.hi-user-mobile {
    display: none;
}

table {
    vertical-align: center;
    text-align: center;
    border-collapse: collapse;
}

th,
td {
    padding-top: 2px;
    padding-bottom: 2px;
    padding-left: 3px;
    padding-right: 3px;
}

.deck-captain-button {
    border: 1px solid rgb(213, 209, 219);
    border-radius: .5rem;
    box-sizing: border-box;
    color: #111827;
    font-family: "Inter var", ui-sans-serif, system-ui, -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25rem;
    padding: .5rem 1rem;
    text-align: center;
    text-decoration: none #D1D5DB solid;
    text-decoration-thickness: auto;
    box-shadow: 0 1px 2px 0 rgba(12, 2, 18, 0.233);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    width: 80px;
}



.plus-jakarta-sans {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    color: #363538;
}

.plus-jakarta-sans a {
    color: #363538;
}

.subtext {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    color: #363538;
    font-size: 2em;
    margin: 1em;
}

footer {
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    margin: 0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.25);
    background-attachment: scroll;
    background-position: 0% 0%;
    position: static;
    margin-top: auto;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    color: #363538;
    font-size: 1em;
}

body {
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    margin: 0;
}


#error_explanation h2 {
    font-size: 1.5em;
    margin-top: 0em;
    color: #494257;
}

#error_explanation ul {
    margin-top: .3em;
}

.error {
    color: rgb(222, 11, 11);
}

.alert {
    /* display: none; */
    display:block;
    position: absolute;
    top: 500px;
}

.background {
    /* background-color: #f6f4f9; */
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0px;
    left: 0px;
    z-index: -1;
}

.centerPanel {
    background-color: white;
    padding: 4em 8dvw;
    border-radius: 25px;
    /* border: 1px solid #363538; */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    font-size: 1.2em
}

.panel {
    background-color: white;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}


.stackedPanel {
    margin-top: 1em;
}

.centerPanelFlex {
    display: flex;
    flex-direction: row;
}

.panelSmall {
    padding: 2em 5dvw;
}

.panelLabel {
    width: 20dvw;
    padding-right: .5rem;
}

.loginText {
    margin: 1em 5em .3em 0;
    font-size: 3.3em;
}

.signupText {
    margin: 1em 3em .3em 0;
    font-size: 3.3em;
}
.important-text {
    font-size: 1.5em;
}

.form {
    margin: 1.5em 0 1.5em 3em;
}
.form-web-margin{
    margin: 0 2dvw;
}

.field_with_errors {
    display: inline;
}


.field {
    border-radius: 10px;
    outline: none;
    font-size: 1em;
}

.inputField {
    border: 2px solid #363538;
    margin-bottom: 1em;
    margin-top: .5em;
    padding: .8em 1em;
    width: 100%;
    box-sizing: border-box;
}

.fieldSmall {
    font-size: .8em;
}

.field_with_errors .inputField {
    border-color: rgb(222, 11, 11);
    border: 1.5px solid rgb(222, 11, 11);
    /* outline: double;
    outline-color: #ffbbbb; */
}

.field_with_errors label {
    font-style: italic;
    /* color: rgb(185, 11, 11); */
}

.field_with_errors input:focus {
    border: 1px solid #7447dc;
    outline: double;
    outline-color: #cfbbff;
}

input:focus {
    border: 1px solid #7447dc;
    /* border: 1px solid #646368; */
    outline: double;
    outline-color: #cfbbff;
}


.fullWidth {
    width: 100%;
}

.submitButton {
    border: 1px solid #77649e;
    border-radius: 40px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    color: white;
    padding: .3em 1em;
    background: #9685bd;
    margin: .5em 0;
}

/* CSS */
.gradient-button {
    background-image: linear-gradient(-180deg, #664f8d 0%, #544476 100%);
    border-radius: .5rem;
    box-sizing: border-box;
    color: #FFFFFF;
    display: flex;
    font-size: 16px;
    font-family: "Inter var", ui-sans-serif, system-ui, -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-weight: 600;
    justify-content: center;
    padding: 1rem 1.75rem;
    text-decoration: none;
    text-align: center;
    width: 100%;
    border: 0;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.gradient-button:hover {
    background-image: linear-gradient(-180deg, #5d4881 0%, #50416e 100%);
}

.gradient-button:link {
    color: #FFFFFF;
}

.gradient-button:visited {
    color: #FFFFFF;
}

@media (min-width: 768px) {
    .gradient-button {
        padding: 1rem 2rem;
    }
}


.casualButton {
    background-color: #FFFFFF;
    border: 1px solid rgb(213, 209, 219);
    border-radius: .5rem;
    box-sizing: border-box;
    color: #111827;
    font-family: "Inter var", ui-sans-serif, system-ui, -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25rem;
    padding: .5rem 1rem;
    text-align: center;
    text-decoration: none #D1D5DB solid;
    text-decoration-thickness: auto;
    box-shadow: 0 1px 2px 0 rgba(108, 24, 164, 0.233);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    white-space: nowrap;
    width: 100%;
}

.casualButton:hover {
    background-color: rgb(249, 250, 251);
}

.casualButton:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.casualButton:focus-visible {
    box-shadow: none;
}

.red-button {
    background-color: #fca5a5;
}

.green-button {
    background-color: #b1e1b1;
}

.casualButtonGreen {
    background-color: #b1e1b1;
    box-shadow: 0 1px 2px 0 rgba(29, 4, 4, 0.233);
    border: 1px solid rgb(210, 219, 209);
}
a.casualButtonGreen, a.casualButton {
    color: #111827;
    text-decoration: none;
    display: block;
}
a.casualButtonGreen:visited, a.casualButton:visited {
    color: #111827;
    text-decoration: none;
}

.casualButtonGreen:hover {
    background-color: #a7d6a7;
}

.casualButtonRed {
    background-color: #ffdada;
    box-shadow: 0 1px 2px 0 rgba(164, 24, 24, 0.233);
    border: 1px solid rgb(219, 209, 209);
}
.casualButtonRed:hover {
    background-color: #f8d2d2;
}


.bold {
    font-weight: bold;
}

.text-normal {
    font-weight: normal;
}

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

.block {
    display: block;
}

.no-underline {
    text-decoration: none;
}

.blackish {
    /* color: #363538; */
    /*old blackish color */
    color: #494257;
}

.homeTitle {
    font-size: 12em;
    margin: 20px;
    margin-top: 25vh;
    color: #494257;
}

.homepage-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.registration-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    text-align: center;
}

.registrar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    text-align: center;
}

.registrar-menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    text-align: center;
}

.chair-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    text-align: center;
}

.emcee-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* padding-top: 5rem;
    padding-bottom: 5rem; */
    text-align: center;
}

.judge-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 3rem;
    text-align: center;
    margin: 3rem;
}

.results-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    text-align: center;
}

.admin-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    text-align: center;
}

.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    text-align: center;
}

.main-competition-container {
    display: flex;
    justify-content: left;
    align-items: left;
    padding-bottom: 5rem;
    text-align: left;
}

.competition-list-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    text-align: center;
}


.login-button {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 1.5em;
    color: #ffffff;
    background-color: #6e5699;
    border: none;
    padding: 10px 30px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.login-button:hover {
    background-color: #363538;
    transform: scale(1.05);
}

.register-submit-btn {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    color: #ffffff;
    background-color: #646368;
    border: none;
    padding: 10px 30px;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    width: 100%;
}

button.register-submit-btn:hover {
    background-color: #363538;
    transform: scale(1.05);
}

#mobileNavbar {
    display: none;
}
.tablet-portrait-show {
    display: none;
}
.tablet-landscape-show {
    display: none;
}

/* for runtime */
.judge-button {
    background-color: #fff;
    border-radius: 10px;
    cursor: pointer;
    padding: 20px 10px;
    font-size: 1.5rem;
    width: 100%;
    height: 100%;
    box-shadow: 0 2px 4px 0 rgb(0 0 0 / 23%);
    border: 1px solid rgb(213, 209, 219);
    box-sizing: border-box;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.judge-button:hover {
    background-color: #ccc;
}

.judge-button-form {
    display: inline-block;
}

.event-item {
    position: relative;
    left: -10px;
    display: inline-block;
    padding: 4px 8px;
}

.event-item form {
    display: inline-block;
    position: relative;
    left: 5px;
}

.red-x-btn {
    display: inline-block;
    top: 0;
    background: none;
    border: none;
    color: red;
    font-weight: bold;
    cursor: pointer;
    padding: 0;

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.event-item:hover .red-x-btn {
    opacity: 1;
    visibility: visible;
}

.red-x-btn:hover {
    color: darkred;
    transform: scale(1.2);
    transition: color 0.2s, transform 0.2s;
}   

.flex-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    width: 90dvw;
    margin-left: auto;
    margin-right: auto;
}

.box {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    width: 80dvw;
    margin: 3rem 0;
}

.box>* {
    padding: 5px;
}

.unclickable-button {
    background-color: #d7d3db;
    cursor: default;
}

.unclickable-button:hover {
    cursor: default;
    background-color: #d7d3db;
}

@media screen and (width > 1024px) {
    #navbar_menu {
        display: flex;
    }
}

@media screen and (width <=1250px) {
    .comp-page-container {
            font-size: .9em;
    }
    .gradient-button{
        padding: 1rem .5rem;
    }
}

/* for tablet (landscape) */
@media screen and (width <=1024px) {
    .main-content {
        margin: 6rem 5rem 3rem 5rem;
    }
    .tablet-landscape-hide {
        display: none;
    }
    .tablet-landscape-show {
        display: inherit;
    }
    .homeTitle {
        font-size: 10em;
        margin-top: 17vh;
    }
    .comp-page-container {
        font-size: 1em;
    }
    .tablet-flex-column {
        flex-direction: column;
    }
    .fixed-mobile-button {
        width: 100%;
        margin: 1em 0;
    }

    .form-web-margin {
        margin: 0;
    }

    .centerPanel {
        font-size: 1em;
    }

    .loginText {
        margin: 1em 5em .3em 0;
        font-size: 3em;
    }

    .signupText {
        margin: 1em 4em .3em 0;
        font-size: 3em;
    }
        .fieldSmall {
            font-size: 1em;
        }
}

/* for tablet (portrait) */
@media screen and (width <=850px) {
    h3 {
        font-size: 2em;
    }
    .tablet-portrait-hide {
        display: none;
    }
    .tablet-portrait-show {
        display: inherit;
    }
    .page-margin {
        margin: 5dvh 0;
    }
    .centerPanel {
        margin: auto;
        max-width: 70%;
        /* max-height: 60dvh; */
        padding: 2em 10%;
        box-shadow: none;
    }
    .panelLabel{
        width: 100%;
        margin-bottom: 0;
    }

    .centerPanelFlex {
        flex-direction: column;
    }
    .panelSmall {
        padding: 0 8dvw;
    }

    .loginText {
        margin: .5em 5em .3em 0;
    }

    .signupText {
        margin: .5em 5em .3em 0;
    }

    .form {
        margin: 0;
    }

    .main-competition-content {
        padding: 0 3rem 3rem 2rem;
    }
}

/* for mobile */
@media screen and (width <=600px) {
    .main-content {
        margin: 5rem 2rem 3rem 2rem;
    }
    .mobile-hide {
        display: none;
    }
    .homeTitle {
        font-size: 6em;
        margin-top: 23dvh;
    }
    .page-margin {
        margin: 2dvh 0;
    }

    .mobile-margin {
        margin-top: 4em;
    }
    

    

    .subtext {
        font-size: 1.5em;
        margin: 1em;
        margin-top: .2em;
    }

    #navbar_menu {
        max-height: 0;
        flex-direction: column;
        overflow: hidden;
        transition: max-height .5s;
    }

    .topnav {
        display: flex;
        flex-direction: column;
    }

    .hi-user {
        display: none;
    }

    .hi-user-mobile {
        float: right;
        margin-top: 1.3em;
        margin-right: 1em;
        display: block;
    }

    .hamburgerFillings {
        width: 100%;
    }

    .topborder {
        border-top: .5px solid #c2c1c5;
    }

    .signupText {
        margin-right: 0;
    }

    #mobileNavbar {
        display: block;
        width: 100%;
        height: 100%;
    }

    .hamburger {
        cursor: pointer;
        float: right;
        margin-top: .8em;
        margin-right: .8em;
        display: block;
    }

    .bar {
        width: 35px;
        height: 5px;
        background-color: #333;
        margin: 6px 0;
        border-radius: 2px;
    }
}

.event-style-column {
    box-sizing: border-box;
}

.style-button {
    background-color: #fff;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    cursor: pointer;
}

.dance-button {
    background-color: #fff;
    border-radius: 5px;
    cursor: pointer;
}





.menuItem {}

@media screen and (orientation: portrait) {
    .registration-content {
        width: 90vw;
    }

    .registrar-content {
        width: 90vw;
    }

    .dance-button {
        padding: 15px;
        margin: 5px 0;
        width: 80vw;
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}

@media screen and (orientation: landscape) {
    .registration-content {
        width: 60vw;
    }

    .registrar-content {
        width: 60vw;
    }

    .event-styles-container {
        display: flex;
        gap: 30px;
        justify-content: center;
        width: 100%;
    }


    .selected-dances-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .event-style-column {
        width: 20%;
    }

    .style-button:hover {
        background-color: #ccc;
    }

    .dance-button {
        padding: 10px;
        margin: 5px 0;
    }

    .dance-button:hover {
        background-color: #ccc;
    }
}

/**
 * Disable smooth scrolling when users have prefers-reduced-motion enabled
 */
@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
