:root {
    --primary_color:white;
    --secondary_color:black;
    --accent_color:#3AD3F9;
}
header {
    position: fixed;
    height: 60px;
    width: 100%;
    background: var(--primary_color);
    z-index: 2;
    font-weight: bold;
    display: flex;
    align-items: center;
    padding-left: 5%;
    box-shadow: 0 4px 8px rgb(0 0 0 / 15%);
}
header nav{
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    padding-right: 7%;
}
header a {
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

header a[hidden] {
    display: none;
}

.nav_left {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav_left a[aria-current="page"]{
    color: var(--accent_color);
    text-shadow: 0 4px 8px rgb(0 0 0 / 15%);
}

.login {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.login .larp_toggle {
    background: transparent;
    color: var(--accent_color);
    border: 1px solid var(--accent_color);
}

.login a,
.login button {
    display: inline-block;
    background: var(--accent_color);
    color: var(--primary_color);
    padding: 0.4rem 0.9rem;
    border-radius: 4px;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    cursor: pointer;
}
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--secondary_color);
    border-radius: 2px;
}

.hamburger:focus-visible {
    outline: 2px solid var(--secondary_color);
    outline-offset: 2px;
}
a {
    text-decoration: none; 
    color: black;
    font-weight: bold;
}
img {
  width: 30%;  
}
main{
    padding-top: 60px;
}
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    font-family: sans-serif, serif;
    display: flex;
    flex-direction: column;
}
.hero{
    background:#F4F4F4;              
    height:300px;
    overflow:hidden;
}
.carousel {
    position: relative;
    height:300px;
    background: #F4F4F4;
}
.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}
.carousel-item {
    width: 100%;
    height:100%;
    display:flex;
    background:#F4F4F4;  
    position: relative;
    display: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    transition: -webkit-transform .6s ease;
    transition: transform .6s ease;
    transition: transform .6s ease,-webkit-transform .6s ease;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
}
.carousel-item img{
    max-height:100%;
    max-width:100%;
    width:auto;
    height:300px;
    object-fit:contain;
    margin: 0;
}
.carousel-item-next, .carousel-item-prev, .carousel-item.active {
    display: flex !important;
    justify-content: center;
}
.carousel-item-next, .carousel-item-prev {
    position: absolute;
    top: 0
}
.carousel-item-next.carousel-item-left, .carousel-item-prev.carousel-item-right {
    -webkit-transform: translateX(0);
    transform: translateX(0)
}
@supports ((-webkit-transform-style:preserve-3d) or (transform-style:preserve-3d)) {
    .carousel-item-next.carousel-item-left, .carousel-item-prev.carousel-item-right {
        -webkit-transform: translate3d(0,0,0);
        transform: translate3d(0,0,0)
    }
}
.active.carousel-item-right, .carousel-item-next {
    -webkit-transform: translateX(100%);
    transform: translateX(100%)
}
.main_content{
    padding: 60px 2% 2% 5%; 
}
.description{
    width: 50%;
    margin-bottom: 5%;
}
.home_main_content{
    display: flex;
    flex-direction: row;
}
.houses{
    display: flex;
    flex-direction: row;
    gap: 2%;
    padding: 2.5% 2%;
    
}
.house_left{
    flex: 1 1 0;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}
.house_pic{
    flex: 1 0 0;
    width: 100%;
    height: auto;
    max-height: 10em;
    object-fit: cover;
}
.review_right{
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.reviews_pic{
    width:100%;
}
.wrapper{
    padding: 16px;
}
#ticket_open{
    position: relative;
    padding: 16px;
    top: 60px;
}
.wrapper h2{
    justify-self: center;
}
.form_button button{
    margin: 0 10%;
    width: 80%;
    background-color: var(--accent_color);
    color: white;
    font-weight: bold;
}
.add_ticket{
    align-items: right;
    display: flex;
    justify-self: right;
    background: var(--accent_color);
    color: var(--primary_color);
    padding: 0.4rem 0.9rem;
    margin-right: 2%;
    margin-top: 5px;
    border-radius: 4px;
    border: none;
    font-weight: 600;
    text-decoration: none;
}
.add_ticket_p{
 margin: 0;
 margin-left: .2em;
 padding: 0;
 border: 0;
}
dialog{
    border-radius: 10px;
    border:none;
    outline: none;
    width: 50%;
    padding: 0;
}
dialog::backdrop{
    inset:60px 0 0;
}
form{
    display: flex;
    flex-direction: column;
}
form label, .ticket_conversation label {
    font-weight: bold;
}
form button{
    border-radius: 5px;
    border: none;
}
form input{
    padding: 1%;
    border-radius:5px;
    border-style: solid;
    margin: .5%;
    margin-bottom: 3%;
    background-color: rgba(0, 0, 0, 0.1)
}
form textarea {
    box-sizing: border-box;
    margin-bottom: 1rem;
    border: 2px solid gray;
    border-radius: 4px;
    overflow: hidden;
    resize:none;
    min-height: 10em;
    text-decoration-color: black;
    background-color: rgba(0, 0, 0, 0.1)
}
#ticket_open{
    border:none;
    outline:none;
}
#ticket_open h2{
    justify-self: left;
}
.main_content ::-webkit-scrollbar{
    display: none;
}
.properties_employees{
    display: flex;
    flex-direction: row;
}
.properties_employees section{
    flex:1 0 0;
}
.groupchat{
    background-color: gray;
    width: 80%;
    height:40em;
    border-radius:3em;
    align-self: center;
    margin:2% 10% 0;
}
.ticket_box_structure{
    display: flex;
    flex-direction: row;
    flex-wrap:wrap;
}
#student_list span, .ticket_box .span_top, .ticket_box .span_bottom{
    position: relative;
    display:block;
    background-color: var(--accent_color);
    height: 5px;
    border-radius: 5px;
    margin:10px 0 0 0;
}
.span_top{
    bottom:10px;
    width: 100%;
}
.span_bottom{
    display: flex;
    justify-self: center;
    top:2px;
    width: 100%;
}

.ticket_box{
    background-color: white;
    box-shadow: 0 0 20px grey;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 200px;
    height: 300px;
    padding: 16px;
    margin: 2.5%;
    border-radius: 10px;
    border: 0;
    text-align: left;
    font: inherit;
    cursor: pointer;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.ticket_title {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
}
.ticket_date, .ticket_text {
    display: block;
}
.ticket_box:focus-visible {
    outline: 3px solid var(--accent_color);
    outline-offset: 3px;
}
#ticket_open, #ticket_creation {
    box-sizing: border-box;
    max-height: calc(100dvh - 80px);
}
#ticket_detail_form select, #ticket_creation_form select {
    margin: .5% .5% 3%;
    padding: 1%;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.1);
}
.ticket_readonly_value {
    margin: .5% .5% 3%;
    padding: 1%;
    overflow-wrap: anywhere;
}
#ticket_detail_form textarea, #ticket_creation_form textarea, .ticket_conversation textarea {
    min-height: 5em;
    resize: vertical;
    overflow: auto;
}
#ticket_detail_form button, .ticket_conversation button, .ticket_actions button {
    align-self: flex-end;
    padding: .5rem 1rem;
    border: 0;
    border-radius: 5px;
    background: var(--accent_color);
    color: var(--primary_color);
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}
#ticket_detail_form button:disabled, .ticket_conversation button:disabled, .ticket_actions button:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.ticket_permission_note {
    font-size: .9em;
}
.ticket_conversation {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #ccc;
    margin-top: 1.5rem;
    padding-top: 1rem;
}
.ticket_conversation textarea {
    box-sizing: border-box;
    margin: .5rem 0;
    border: 2px solid gray;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.1);
}
.ticket_metadata {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 2rem;
    padding: .75rem;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 5px;
}
.ticket_metadata dt {
    font-weight: bold;
}
.ticket_metadata dd {
    margin: .3rem 0 0;
    overflow-wrap: anywhere;
}
.ticket_actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-top: 1rem;
}
.ticket_actions p:empty, #ticket_comment_error:empty, #ticket_comments_notice:empty {
    display: none;
}
#ticket_comments {
    max-height: 18rem;
    overflow-y: auto;
    padding: 0;
    list-style: none;
}
#ticket_comments li {
    padding: .75rem;
    margin-bottom: .5rem;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.06);
    overflow-wrap: anywhere;
}
#ticket_comments time {
    display: block;
    font-size: .8em;
}
#ticket_comments p {
    margin-bottom: 0;
    white-space: pre-wrap;
}
.ticket_box > *{
    flex-shrink: 0;
    margin: 10px 0 0 0;
}
.ticket_box > :first-child{
    margin-top: 0;
}
/* The description takes the remaining height and is cut off with an ellipsis. */
.ticket_box .ticket_text{
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
}
.status_type_structure{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
}
.status_type{
    display: inline-flex;
    justify-content: center;
    padding: 4px 10px;
    font-size: small;
    line-height: 1.3;
    white-space: nowrap;
    border-radius: 10px;
    background-color: #D9D9D9;
}
.status_type.priority_low{
    background-color: lightgreen;
    color: darkgreen;
}
.status_type.priority_medium{
    background-color: lightyellow;
    color: darkorange;
}
.status_type.priority_high{
    background-color: lightcoral;
    color: darkred;
}
@media (max-width:600px){
.hamburger {
    display: flex;
    z-index: 5;
}

.nav_left {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 5%;
    background: var(--primary_color);
    box-shadow: 0 4px 8px rgb(0 0 0 / 15%);
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
}
.nav_left.open {
    display: flex;
}
.nav_left a {
    display: block;
    padding: 0.9rem 0.5rem;
}
.nav_left a:hover,
.nav_left a:focus-visible {
    background: var(--accent_color);
    border-radius: 5px;
}
body {
    max-width: 100%;
}
.slider{
    height:300px;
}
.description{
    width: 80%;
    margin-bottom: 10%;
}
.houses{
    flex-direction: column;
    padding: 2.5% 2%;
    padding-bottom: 10%;
}
.reviews_house{
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: .5%;
}
.reviews_house img{
    width: 90%;
    margin-bottom: 5%;
}
dialog{
    width: 80%;
}
}