﻿@media only screen and (max-width: 600px) {
  
/*remove boxed layout due to the small screen size*/
  .shadow-box {
    max-width: 100%;
    min-width: 375px;
  }
  
/*new styling for the header with login-data above the logo and dropdown menu underneath*/
  header {
    display: block;
    width: 100%;
    padding: 8px 0 8px 0;
  }
  
  .header-logo {
    display: block;
    width: 50%;
    margin: 0 auto;
    padding-top: 8px;
  }
  
 /*navigation with login-data*/
  .user-navigation {
    display: flex;
    flex-direction: row-reverse;
    border-bottom: 2px solid;
    border-image: linear-gradient(to left, transparent, white, transparent) 1;
    padding: 0 8px 8px 8px;
    color: white;
    font-family: inherit;
    font-size: small;
    column-gap: 32px;
    justify-content: space-between;
  }
  .user-navigation img {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
  }
  .user-navigation span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-bottom: 0;
  }
 .user-navigation span:first-child {
   margin-left: auto;
   padding-bottom: 0;
  }
 
/*container for drop-down-menu*/
  .main-navigation {
    margin-top: 8px;
    display: inline-block;
    width: 100%;
    position: relative;
  }
/*clickable span that triggers the drop-down menu with links for navigation*/
  .main-navigation span {
    display: block;
    width: 100%;
    background: transparent;
    border-top: 2px solid;
    border-image: linear-gradient(to left, transparent, white, transparent) 1;
    cursor: pointer;
    padding-top: 8px;
    text-align: center;
    color: white;
    font-weight: bold;
    font-size: 1.25rem;
  }
/*box for the main navigation links*/
  .main-navigation-content {
    display: block;
    clear:both;
    width: 100%;
    height: 0;
    overflow: hidden;
    text-align: center;
    transition: height .4s ease;
    background: #a080c0;
    position: absolute;
    transform: translateY(6px);
  }
  .main-navigation-content li {
    padding : 8px;
    border-bottom: 2px solid;
    border-image: linear-gradient(to left, transparent, white, transparent) 1;
    font-size: 1.25rem;
    text-align: center;
  }
  .main-navigation li:not(:last-child)::after {
    display: none;
  }
  .main-navigation-content li:first-child {
    border-top: 2px solid;
  }
  .main-navigation-content li:last-child {
    border-bottom: none;
  }
  #main-navigation-touch {
    display: block;
    position: absolute; 
    opacity: 0; 
    height: 0;
  }
  #main-navigation-touch:checked + .main-navigation-content {
    display: block;
    height: fit-content;
  }
/*hides the span with the "navigation"-title when user is not logged in*/
  .main-navigation:has(.main-navigation-content:empty) {
    display: none;
  }
  
/*resized styling for the footer content*/
  .info-nav {
    flex-direction: column;
  }
  footer {
    width: 100%;
  }
  .copyright-link {
    max-width: 300px;
    margin: 0 auto;
  }
  
/*reduced padding for info pages*/
  .info-page {
    padding: 32px 16px 32px 16px;
  }
  .info-page img {
    width: 75%;
    margin: 0 auto;
  }
  .info-page table {
    width: 100%;
    border-collapse: collapse;
    outline: 2px solid #e3e3e3;
    margin-top: 16px;
    margin-bottom: 16px;
  }
  .info-page td {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding: 4px;
  }

/*resized styling for message boxes*/
  .message-box-input,
  .message-box-report,
  .message-box-warning,
  .message-box-failure,
  .message-box-question {
    width: 100%;
  }
  .message-box-input tr {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
  }
  .message-box-input td:first-child,
  .message-box-input th:first-child {
    width: 100%;
  }
  .message-box-input td:last-child,
  .message-box-input th:last-child {
    width: 100%;
  }
  .message-box-report{
    width: calc(100% - 32px);
  }
  .message-box-input p,
  .message-box-report p,
  .message-box-warning p,
  .message-box-failure p,
  .message-box-question p {
    margin: 4px 8px;
  }
  
/*column-based style for the page menu; buttons are underneath the breadcrumb*/
  .page-menu {
    display: flex;
    flex-direction: column;
    border: 2px solid #e3e3e3;
    margin: 16px;
    align-items: center;
    justify-content: center;
  }
  .page-menu-buttons {
    display: flex;
    margin-top: 8px;
    margin-bottom: 8px;
    padding: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  .page-menu-breadcrumb {
    display: block;
    width: 100%;
    margin:0;
    background-color: #f1f1f1 ;
    padding: 16px;
  }
  
/*image-checkboxes are forced to stay centered in two columns*/
  .image-checkbox {
    display: grid;
    grid-template-columns: auto auto;
    gap: 16px;
    justify-content: space-evenly;
    padding: 8px;
  }
  
/*inputs are now underneath the label, not next to it*/
  .input-form td {
    display: flex;
    flex-direction: column;
    height: fit-content;
  }
  
/*tables are displayed as cards on small screens*/
  .responsive-table thead {
    display: none;
  }
  .responsive-table tr {
    display: block;
    margin-bottom: 16px;
    border: 2px solid #e5e7eb;
  }
  .responsive-table td {
    display: flex;
    justify-content: space-between;
    text-align: right;
    border: none;
  }
  .responsive-table td:nth-child(odd) {
    background-color: #f1f1f1;
  }
  .responsive-table td::before {
    content: attr(data-label);
    font-weight: bold;
  }
  
}