body{
    font-family: 'Roboto', sans-serif;
    margin: 0px;
}
a{
    text-decoration: none;
    color: inherit;
}
#header{
    margin: 0px;
    display: flex;
    border-bottom: solid 3px rgb(177, 177, 177);
    background-color: rgb(233, 233, 233);
}
#header p{
    font-size: small;
    color: rgb(112, 112, 112);
    margin: 18px;
}

#contents-container{
    display: flex;
    height: 100vh;
    height: 100dvh;
    overflow: hidden; 
}

#black-overlay{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: black;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#black-overlay.show{
    opacity: 0.2;
    visibility: visible;
}
/* I know this might be a very amateurish approach, but I am. It's too late once I realized it... */
.about-overlay,
.guide-overlay,
.feedback-overlay,
.version-overlay,
#black-overlay{
    z-index: 999;
    height: 100%;
}

.about-overlay,
.guide-overlay,
.feedback-overlay,
.version-overlay {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.about-overlay.show,
.guide-overlay.show,
.feedback-overlay.show,
.version-overlay.show {
    opacity: 1;
    visibility: visible;
}

#about-card-close,
#guide-card-close,
#feedback-card-close,
#version-card-close {
    position: absolute;
    top: 32px;
    right: 32px;
    cursor: pointer;
}

#about-card,
#guide-card,
#feedback-card,
#version-card {
    position: absolute;
    width: 99%;
    height: 98%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
}

#about-info > h1,
#guide-info > h1,
#feedback-info > h1,
#version-info > h1{
    font-size: 3.2em;
    border-bottom: solid 1px;
    margin-bottom: 0;
}

#about-info p{
    font-size: 1.25em;
    text-align: justify;
    line-height: 1.5;
}

#about-info,
#guide-info,
#feedback-info,
#version-info{
    display: flex;
    flex-direction: column;
    height: 85%;
    margin: 40px 80px 80px 80px;
    border-bottom: solid 1px;
}

#about-contents-container,
#guide-contents-container,
#feedback-contents-container,
#version-contents-container{
    max-height: 100%;
    overflow-y: auto;
}

#left-sidebar-menus{
    flex: 1;
    padding: 10vh 0 45vh 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#left-sidebar-menus ul{
    height: 100%;
    font-size: larger;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#left-sidebar-menus li {
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    transition: transform 0.2s ease;

    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    
}

#left-sidebar-menus li:hover {
    transform: scale(1.05);
}

#version-button {
    cursor: pointer;
    transition: transform 0.2s ease;
    display: inline-block;

    border-bottom: solid 1px;

    user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}


#version-button:hover {
    transform: scale(1.025);
}

#contents h1{
    margin: 0;
    font-size: large;
    font-weight: 400;
}

#left-sidebar{
    flex: 0 0 250px;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 28px;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}

#left-sidebar-footer{
    cursor: pointer;
    width: 100%;
    opacity: 60%;
    font-size: 0.8em;
    transition: transform 0.2s ease;
}

#left-sidebar-footer:hover {
    transform: scale(1.05);
}


#left-sidebar-footer p{
    margin: 0;
}

.icons{
    width: 22px;
    opacity: 0.7;
}

#left-sidebar h1{
    font-size: 24px;
    letter-spacing: 1px;
    font-weight: 500;
    text-align: center;
}

#main-body-header{
    width: 100%;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#header-left,
#header-right{
    padding: 0 48px;
    color: rgb(190, 190, 190);
}

#header-right img {
    display: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#header-right img:hover {
    transform: translateY(-2px);
}

#main-body-container{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#main-body {
    position: relative;
    flex: 1;
    width: 100%;
    overflow-y: auto;
    display: flex;
    padding: 40px 40px;
    box-sizing: border-box;
}

#main-body > *{
    margin: auto;
}

input{
    margin-left: 8px;
    width: 60px;
    border-radius: 8px;
    border-width: 2px;
    border-color: rgb(190, 190, 190);
    border-style: solid;
}

#flight-date{
    width: 100px;
}

#aircraft-num{
    width: 100%;
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#contents{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

#image-preview{
    display: none; 
    width: 600px;
    margin: 16px;
    margin-bottom: 8px;
    border: 1px solid #ccc; 
    border-radius: 16px;
    cursor: pointer;
}

#image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Black with 40% opacity */
    z-index: 1;
}



#image-preview {
    z-index: 0;
}

#plus-overlay {
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: block;
    color: white;
    font-size: 7em;
}

#delete-overlay {
    position: absolute;
    top: 7%;
    left: 87%;
    font-weight: 400;
    
    width: 32px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.5em;
    line-height: 1;
    font-family: sans-serif;
    color: #fff;
    background-color: rgb(0, 0, 0, 0.75);
    padding-bottom: 3px;
    padding-left: 0.6px;

    border: 2px solid #ffffff;
    border-radius: 50%;
    box-sizing: border-box;
    cursor: pointer;
    z-index: 2;
}

#file-button {
    cursor: pointer;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 250px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 18px;
    margin-bottom: 0;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

#file-button:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

#file-counter{
    display: none;
}

button {
    margin: 20px;
    width: 120px;
    height: 40px;
    border: none;
    border-radius: 16px;
    background-color: rgb(227, 227, 227);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

button:hover {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

#submit-button{
    margin-top: 0px;
    margin-bottom: 0px;
}

#file-name{
    font-size: 14px;
    font-style: italic;
    font-weight: 100;
    margin-top: 0px;
    margin-bottom: 16px;
}

#plus{
    color: rgb(173, 173, 173);
    font-size: 64px;
}

#file-button p{
    color: rgb(150, 150, 150);
}

#file-manager{
    position: relative;
    display: none;
    align-items: stretch;
    justify-content: center;
    color: rgb(150, 150, 150);
    width: fit-content;
}

#file-manager-right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

#file-next {
    margin-top: auto;
    margin-bottom: auto;
}

#file-previous {
    margin-top: auto;
    margin-bottom: auto;
}

#file-manager h3{
    cursor: pointer;
    font-size: 34px;
}

#file-input{
    display: none;
}

#button-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#downloader {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#download-button{
    margin-top: 8px;
}

#spinner {
    display: none;
    margin-top: 0px;
    text-align: center;
}

.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #555;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.table-wrapper {
  overflow-x: auto;
  display: block;
  width: 100%;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  margin-bottom: 16px;
  font-family: sans-serif;
  font-size: 14px;
}

.styled-table th,
.styled-table td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  text-align: center;
}

.styled-table th {
  background-color: #f0f0f0;
  font-weight: bold;
}

.styled-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

#progress-counter{
    margin-left: 10px;
    display: none;
}

#overlay {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5); /* black, 50% transparent */
    z-index: 999;
}

#pilot-choice{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 20vw;
    padding: 40px;
    background-color: white;
    border-radius: 18px;
}

#pilot-button1,
#pilot-button2{
    font-weight: 700;
    cursor: pointer;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    width: 100%;
    border-radius: 18px;
    background-color: rgb(194, 194, 194);
}

#table-container {
  overflow-x: auto;
  max-width: 100%;
  margin: 20px 0;
  padding: 0;
}

.compact-table {
  font-size: 12px;
  border-collapse: collapse;
  width: 100%;        
  table-layout: auto;  
}

.compact-table th,
.compact-table td {
  padding: 4px 8px;
  text-align: center;
  border: 1px solid #333;
  word-break: break-word; 
}

.feedback-textbox {
    width: 100%;
    height: 200px;
    padding: 16px;
    font-size: 1em;
    color: #333;

    border: 2px solid #e0e0e0;
    border-radius: 24px;

    resize: none;
    box-sizing: border-box;
    outline: none;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#feedback-username {
    margin: 0;
    height: 30px;
    width: 35%;
    border-radius: 12px;
}

.feedback-textbox:focus {
    border-color: #999;
}

#guide-contents-container img{
    width: 450px;
    border-radius: 15px;
}