/* ------------------------------
   Global Reset & Base Styling
--------------------------------*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Helvetica, Arial, sans-serif;
    background-color: #4c004f;
    color: #222;
    line-height: 1.6;
}

.logo {
    color : #ffb6d8;
    font-family :'Times New Roman', Times, serif;
    font-style: italic;
    font-weight: 600;
    font-size: 30pt;
}

/* ------------------------------
   Layout Container
--------------------------------*/
.layout-container {
    display: flex;
    max-width:none;
    margin: 0 auto;
    padding: 1rem;
    background-size:cover;
    background-position: center;
    justify-content: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    background-image: var(--bg-image);
}

@media (max-width: 768px) {
  .layout-container {
    background-image: url('/images/background.png');
  }
}


/* ------------------------------
   Main Content Area
--------------------------------*/
.content {
    background:none;
    width: 100%;
    max-width: 1000px;
    padding: 1rem;
    border-radius: 8px;
    /*box-shadow: 0 2px 6px rgba(0,0,0,0.08);*/
    min-height: 60vh;
    background-size: cover;
    background-position: center;
}

@media (max-width: 768px) {
    .content {
        padding: 0.2rem;
    }
    .layout-container {
        padding: 0.2rem;
    }
}

.content-no-padding {
    background: #fff;
    padding: 0rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    min-height: 60vh;
}

.soft-section {
    display: flex;
    flex-direction: column;
    margin: 1rem;
    gap: 20px;
    padding:1.5rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.5);
    color:#ffffff;
    justify-content:center;
    overflow: hidden;
    box-sizing: border-box;
}

.row {
    display:flex;
    flex-direction: row;
    overflow:hidden;
    width:100%;
    gap: 10px;
}

/* ------------------------------
   Header & Footer (optional)
   These only apply if your partials
   use <header> and <footer> tags.
--------------------------------*/
header {
    background: #4c004f;
    color: #fff;
    padding: 1rem 3.5rem;

}

.container-header-inner {
    display:flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding-left: 0px;
    padding-right: 0px;
    flex-wrap: wrap;
}

header a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

header nav {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.user-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

@media (min-width: 820px) {
    .user-info {
        margin-left: auto;
    }
}

.user-info-text {
    display: flex;
}

footer {
    margin-top: 0rem;
    padding: 1rem 1.5rem;
    background: #4c004f;
    text-align: center;
    font-size: 0.9rem;
    color: #555;
}


/*--------- FORMS -------------- */

.form {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    width:100%;
}

.form-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}


/* ------------------------------
   Utility Classes
--------------------------------*/
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #4c004f65;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn:hover {
    background: #9d6da2;
    cursor: pointer;
}

/* Optional: subtle press animation */
.btn:active {
    transform: scale(0.97);
}

/* Optional: disabled state */
.btn:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.btn[type="submit"] {
    width:fit-content;
}

.delete-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #6b0000;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease;
}
.delete-btn:hover {
    background: #a56565;
    cursor: pointer;
}

.delete-btn:disabled {
    background: #925353;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Optional: subtle press animation */
.delete-btn:active {
    transform: scale(0.97);
}

.vote-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: #00860bc3;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    width: 100%;
    white-space: nowrap;
    font-weight: 600;
    font-size: large;
    transition: background 0.2s ease;
}

.vote-btn.blue {
    background-color: #000786c3;
}

.vote-btn:hover {
    background: #14be1f;
    cursor: pointer;
}

.vote-btn.blue:hover {
    background-color: #000acec3;
}

/* Optional: subtle press animation */
.vote-btn:active {
    transform: scale(0.97);
}

/* Optional: disabled state */
.vote-btn:disabled {
    background: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.button-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.button-row .btn {
    flex: 1;
}

.button-row .delete-btn {
    margin-left: auto;
}


.error-message {
    color: #d30000;
}

.success-message {
    color: #0fb100
}



/* Optional: style each song item if you add them dynamically */
.song-item {
  padding: 10px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
}

.song-item:last-child {
  border-bottom: none;
}

.song-item:hover {
  background-color: #f0f8ff;
  cursor: pointer;
}


/* Add content */

.add-content-area {
    width: 100%;
    /*max-width: 480px;*/
    margin: auto auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: system-ui, sans-serif;
}

.add-song-form-blocks {
    display: flex;
    flex-direction: column;
}

.song-info {
    display: flex;
    flex-direction: column;
}

.song-info .form-fields {
    display: flex;
    flex-direction: column;
}

.select-area {
    display: flex;
    flex-direction: row;
    width: auto;
    margin-top: 10px;
    margin-bottom: 10px;
    flex-wrap:nowrap;
    gap: 10px;
    height: 100%;
}

@media (max-width: 768px) {
    .select-area {
        flex-wrap: wrap;
    }
}

.select-area > * {
  min-width: 0;
  flex-shrink: 1;
}

.selection-area {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: 300px;
    align-content: center;
    padding: 0px 0px;
    overflow: hidden;
}

.selected-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: none;
    border-radius: 8px;
    border: 1px;
    padding: 8px 8px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    min-height: 200px;
    height: 100%;
    overflow-y: auto;
}

.select-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: none;
    padding: 0px 0px;
    min-height: 200px;
    max-height: 300px;
    height: 100%;
    overflow: hidden;
}




/* SEARCH AREAS */

/* --- Search Area Container --- */
.search-area {
    /*width: 100%;*/
    /*max-width: 480px;*/
    margin: 0 0;
    padding: 0 0px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-family: system-ui, sans-serif;
    height: 100%;
    max-height: 100%;
}

/* --- Search Box --- */
.search-box {
    display: flex;
    flex-direction:column;
    gap: 20px;
    position: relative;
    /*width: 100%;*/
    box-sizing: border-box;
}


.checkbox-label {
    display: flex;
    flex-direction: row;
    gap: 10px;
    white-space: nowrap;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

input {
    padding: 0.7rem 0.9rem;
    max-height: 50px;
    border: 1px solid #0300637c;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background-color: #95187848;
    width: 100%;
    box-sizing: border-box;
    color: #ffffff;
}

textarea {
    padding: 0.7rem 0.9rem;
    max-height: 100px;
    width: 100%;
    overflow-y: auto;
    border: 1px solid #0300637c;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background-color: #95187848;
    width: 100%;
    box-sizing: border-box;
    color: #ffffff;
}

textarea:focus {
    border-color: #ff00fb;
    box-shadow: 0 0 0 3px #8800a4;
    outline: none;
}

.text {
    padding: 0.7rem 0.9rem;
    max-height: 150px;
    width: 100%;
    overflow-y: auto;
    border: 1px solid #0300637c;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    background-color: #95187848;
    width: 100%;
    box-sizing: border-box;
    color: #ffffff;
    white-space: pre-wrap;
}

input:-internal-autofill-selected {
    appearance: none;
    -webkit-text-fill-color: inherit !important;
    background-color: #18957c48 !important;
    background: transparent !important;
}

input:focus {
    border-color: #ff00fb;
    box-shadow: 0 0 0 3px #8800a4;
    outline: none;
}

input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  width: 24px;
  height: 24px;
  border: 2px solid rgba(121, 0, 119, 0.4);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-content: center;
}

input[type="checkbox"]:checked {
  background-color: #900000;
}

input:hover {
    cursor: pointer;
}

input:disabled {
    cursor:default;
}

.search-box input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.9rem;
    max-height: 50px;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.search-box input[type="search"] {
    min-width: 260px;
}

.search-box input:focus {
    border-color: #ff00fb;
    box-shadow: 0 0 0 3px #8800a4;
    outline: none;
}

.search-box input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;

  width: 24px;
  height: 24px;
  border: 2px solid rgba(121, 0, 119, 0.4);
  border-radius: 6px;
  cursor: pointer;
  display: grid;
  place-content: center;
}

.searchbox input[type="checkbox"]:checked {
  background-color: #54001f;
}

select {
    padding: 0.7rem 0.9rem;
    max-height: 50px;
    border: 1px solid #0300637c;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background-color: #95187848;
    width: 100%;
    box-sizing: border-box;
    color: #ffffff;

    /* Remove default browser styling */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Custom arrow */
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1rem;
    padding-right: 2.5rem; /* Space for arrow */
}

select:focus {
    border-color: #ff00fb;
    box-shadow: 0 0 0 3px #8800a4;
    outline: none;
}

select option {
    background-color: #1a0033;
    color: #ffffff;
    padding: 10px;
}

select option:hover {
    background-color: #8800a4;
}

.default-select-value {
    color: #5b5b5b
}


/* ----------------------- PROFILE CARDS ----------------------------- */

.profile-card {
    display: flex;
    flex-direction: row;
    gap: 10px;
    /*width: 100%;*/
    padding: 12px 16px;
    border-radius: 8px;
    background-color: #ffffff79;
    border: 0px solid rgba(121, 0, 119, 0.4);
    box-shadow: 3px 3px 5px rgba(0,0,0,0.2);
    font-size: 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/*.icon-box {                 Försök att fylla ut hela kordet med bilden
  flex-shrink: 0;
  width: 30px;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  border: 2px solid #890089; soft purple 
  border-radius: 0;
} */


.icon-box {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.2);
  border: 0px solid #890089;
} 

.profile-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-tag {
    display: flex;
    flex-direction: row;
    height: auto;
    gap: 10px;
    text-decoration: none;
}

.profile-tag:hover {
    text-decoration: underline;
    cursor: pointer;
}

.selected-box .profile-card {
    transition: background 0.15s;
}

.selected-box .profile-card:hover {
    background: #c68dbd;
    cursor: pointer;
}

.nametag-user {
    text-decoration: none;
    font-style: normal;
    color: #cf00b0;
    font-weight: bold;
}

.nametag-artist {
    text-decoration: none;
    font-style:normal;
    font-weight: bold;
    color: #0d00ff;
}

.song-tag .nametag-artist {
    color: #060072;
}

.song-tag .nametag-user {
    color: #5c004e;
}

.entry-card .nametag-artist {
    color: #b2aeff;
}

.nametag-admin {
    text-decoration: none;
    font-style: normal;
    font-weight: bold;
    color: #ab0000;
}

/* --------------------------- SONG CARDS ----------------------- */

.song-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    /*width: 100%;*/
    padding: 12px 16px;
    border-radius: 8px;
    background-color: #ffffff79;
    border: 0px solid rgba(121, 0, 119, 0.4);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow:auto;
}

.song-tag {
    display: flex;
    flex-direction: row;
    gap: 15px;
    text-decoration: none;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
}

.title-tag {
    text-decoration: none;
    color: #003402;
    font-weight: bold;
}

.song-card .artist-list {
    flex-direction: row;
}


.artist-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-wrap: wrap;
    margin-left: auto;
    justify-content: flex-end;
}

.artist-list .profile-tag {
    flex-direction: row-reverse;
}


/* --------- Result List Box --------------- */
.result-list-box {
    width: 100%;
    background: none;
    border-radius: 8px;
    border: 1px;
    padding: 8px 8px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.3);
    min-height: 100px;
    max-height: 300px;
    height: 100%;
    overflow-y: auto;
}

/* Example styling for individual results */
.result-list-box .result-item {
    padding: 12px 16px;
    transition: background 0.15s;
    margin-bottom: 12px;
}

.result-list-box .result-item:hover {
    background: #c68dbd;
    cursor: pointer;
}

/* Optional: show results when populated */
.result-list-box.has-results {
    display: block;
}


/*------------------- COMPETITIONS --------------------- */

.competitions-page-box {
    display: flex;
    flex-direction: column;
}

.competitions-box {
    display: flex;
    flex-direction: column;
}

.competitions-grid {
    padding: 20px 0px;
    display: grid;
    gap: 20px;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(190px, auto));
    box-shadow: #4c004f;
}

.competition-card {
    width: 200px;
    height: 200px;
    background-image: url("/images/defaultComp.png");
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 4px 4px 10px rgba(0,0,0,0.5);
}

.competition-card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 20px;
    
    background: rgba(0, 0, 0, 0.5); /* semi-transparent */
    color: white;
}

@media (max-width: 768px) {
    .competition-card {
        width: 125px;
        height: 125px;
        font-size: 15px;
    }

    .competitions-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, auto));
    }

    .competition-card-overlay {
        padding: 20px 5px;
        container-type: inline-size;
    }

    .competition-card-overlay h3 {
        font-size: clamp(14px, 5cqw, 32px);
        white-space: normal;
        text-align: center;
        /*word-break: break-word;*/
    }
}

/* COMPETITION PAGES */

.comp-page-box {
    display: flex;
    padding:1rem;
    border-radius: 12px;
    width: auto;
    background: rgba(0, 0, 0, 0.5);
    color:#ffffff;
    justify-content:center;
    font-size:5vw;
    overflow: hidden;
    box-sizing: border-box;
}

.comp-title-box {
    display:flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.comp-page-box h1 {
    font-size: clamp(30px, 2vw, 30px);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.comp-part-list {
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 8px;
    width: 100%;
    min-height: 100px;
    gap: 15px;
}

.comp-part-list-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: #b347ae79;
    border: 0px solid rgba(121, 0, 119, 0.4);
    box-shadow: 6px 6px 10px rgba(0,0,0,0.5);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow:auto;
    text-decoration: none;
    color: #ffffff;
}

.comp-part-list-card:hover {
    background-color: #4e47b392;
    cursor: pointer;
}

.round-content {
    display: flex;
    flex-direction: row;
    width:100%;
    flex-wrap: wrap;
}

/*---------- ENTRIES ------------------ */

.entries-list {
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 8px;
    width: 100%;
    min-height: 100px;
    height: fit-content;
    gap: 15px;
}


.entry-card {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0px;
    width: 100%;
    height: auto; /*70px;*/
    padding: 0px 0px;
    border-radius: 8px;
    background-color: #0004ffb1;
    border: 0px solid rgba(121, 0, 119, 0.4);
    box-shadow: 6px 6px 10px rgba(0,0,0,0.5);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    container-type: inline-size;
}

.entry-card-upper {
    height: clamp(55px, 12vw, 70px);
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 2px;
    width: 100%;
    max-height: 90px;
    overflow: hidden;
}

.entry-card-lower {
    display: flex;
    min-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 0px;
}

.entry-card:hover {
    background-color: #319aac92;
    /*cursor: pointer;*/
}

.entry-card-inner {
    display: flex;
    flex-direction: row;
    padding: 5px 12px;
    flex: 1;
    column-gap: 5px;
    row-gap: 0px;
    align-content: flex-start;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: clamp(10px, 2cqi, 18px);
    overflow-x: hidden;
    justify-content: center;
}

.entry-profile-image-box {
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    /* margin-left: auto;*/
    clip-path: polygon(
        20% 0,   /* top-left (pushed right) */
        100% 0,  /* top-right */
        100% 100%, /* bottom-right */
        0% 100%   /* bottom-left */
    );
}

.entry-profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}   

.entry-card .title-tag {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    min-width: 0;
}

.entry-card .link {
    text-decoration: none;
    color: #9aadb7;
    flex: 0;
}

.entry-card-inner .song-tag {
    flex: 2;
    font-size: clamp(13px, 3vw, 18px);
    height: min-content;
    flex-basis: 100%;
}

.entry-card-inner .artist-list {
    flex-direction: row;
    flex: 1;
    gap: 5px;
    flex-wrap: wrap;
    white-space: nowrap;
    text-overflow: ellipsis;
    justify-content: left;
    margin-left: 0%;
    font-size: clamp(13px, 3vw, 18px);
    min-width: 0;
    overflow: hidden;
}

.entry-card-inner .nametag-artist {
    text-overflow: ellipsis;
}

.entry-card.dragable {
  user-select: none;
}

.dragable:hover {
    cursor: grab;
}

.dragable.dragging {
  opacity: 1.0;
  cursor:grabbing;
}

.entry-rounds-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.entry-round-box {
    display: flex;
    flex-direction: row;
    width: 100%;
    gap : 15px;
    align-items: center;
}

.entry-round-card {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    height:fit-content;
    padding: 5px 16px;
    align-items: center;
    border-radius: 8px;
    background-color: #b347ae79;
    border: 0px solid rgba(121, 0, 119, 0.4);
    box-shadow: 6px 6px 10px rgba(0,0,0,0.5);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow:auto;
    text-decoration: none;
    color: #ffffff;
}

.entry-round-card:hover {
    background-color: #4e47b392;
}


/*------- VOTE SESSIONS ------------- */

.vote-sessions-area {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vote-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vote-session-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    /*width: 100%;*/
    padding: 12px 16px;
    border-radius: 8px;
    background-color: #006707c1;
    border: 0px solid rgba(0, 127, 4, 0.4);
    box-shadow: 6px 6px 10px rgba(0,0,0,0.5);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow:auto;
}

.vote-session-form {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    width:100%;
    overflow:auto;
}

@media (max-width: 540px) {
    .vote-session-form {
        flex-wrap: wrap;
    }
}

/*------ RESULTS ------------- */ 

.result-box {
    display: flex;
    flex-direction: column;
    gap:20px;
}

.result-list {
    display: flex;
    align-items: center;
    flex-direction: column;
    border-radius: 8px;
    width: 100%;
    min-height: 100px;
    height: fit-content;
    gap: 15px;
}

.entry-card-points {
    display: flex;
    flex-direction: column;
    padding: 10px 0px 10px 10px;
    flex: 0 1 auto;
    width:min-content;
    justify-items: center;
    flex-wrap: nowrap;
}

/* ----------- COUNTRIES ---------------- */

.country-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.country-card {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 2px;
    width: 100%;
    max-height: 90px;
    height: 70px;
    padding: 0px 0px;
    border-radius: 8px;
    background-color: #0004ffb1;
    border: 0px solid rgba(121, 0, 119, 0.4);
    box-shadow: 6px 6px 10px rgba(0,0,0,0.5);
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    overflow:auto;
    text-decoration: none;
    color: #ffffff;
}

.country-card-form {
    display: flex;
    flex-direction: row;
    width: 100%;
}

.country-card-inner {
    display: flex;
    flex-direction: row;
    padding: 10px 12px;
    flex: 1;
    /*align-items: center;*/
    flex-wrap: nowrap;
    gap: 10px;
}

.emoji {
  font-family: system-ui, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.country-image-box {
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    height: 100%;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    /* margin-left: auto;*/
    clip-path: polygon(
        0% 0,      /* top-left */
        100% 0,    /* top-right */
        80% 100%,  /* bottom-right (pulled left) */
        0% 100%    /* bottom-left */
    );
}

.flag-image:hover {
    cursor: pointer;
}

.flag-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}   

/*------------ OTHER -------------- */

*::-webkit-scrollbar {
    width: 10px;    
    background-color: transparent;
}

*::-webkit-scrollbar-track {
    background: transparent;       /* track background */
    border-radius: 8px;
}

*::-webkit-scrollbar-thumb {
    background: rgba(91, 75, 168, 0.4);          /* draggable part */
    border-radius: 8px;
}

*::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* VIDEO */

.video {
  width: 100%;              /* you can use vw here */
  max-width: 800px;         /* optional cap */
  aspect-ratio: 16 / 9;     /* modern solution */
  justify-self: center;
  align-self: center;
  border-radius: 12px;
  box-shadow: 3px 3px 5px rgba(0,0,0,0.2);
  overflow: hidden;
}

.mini-video {
  height: 100%;
  max-width: 60px;
  aspect-ratio: 16 / 9; /* or 1/1 if you really want square */
  justify-self: center;
  align-self: center;
  border-radius: 12px;
  box-shadow: 3px 3px 5px rgba(0,0,0,0.2);
  overflow: hidden;
}

.entry-card-lower .video {
  width: 100%;              /* you can use vw here */
  max-width: 800px;         /* optional cap */
  aspect-ratio: 16 / 9;     /* modern solution */
  justify-self: center;
  align-self: center;
  border-radius: 0px;
  box-shadow: 3px 3px 5px rgba(0,0,0,0.2);
  overflow: hidden;
}

.mini-video iframe {
  width: 100%;
  height: 100%;
}

.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.delete-link {
    color: rgb(89, 0, 0);
    text-decoration: none;
}

.delete-link:hover {
    cursor: pointer;
}

/* Qualifiers */

.nq-header {
    display: flex;
    width: 100%;
    align-items: center;
    text-align: center;
}

.nq-header::before,
.nq-header::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgb(237, 238, 241);
}

.nq-header::before {
  margin-right: 10px;
}

.nq-header::after {
  margin-left: 10px;
}

/* submitions */

.application-image-box {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 5%;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.application-image:hover {
    cursor:pointer;
}

.application-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.edition-submition-box {
    display: flex;
    flex-direction: column;
    border-top: 1px solid white;
    padding: 10px 0px;
    gap: 10px;
}

.edition-submition-box .profile-tag {
    color: white;
}
