@font-face {
    font-family: "Century Schoolbook";
    src: url('/static/fonts/Century.eot'); /* IE9 Compat Modes */
    src: url('/static/fonts/Century.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('/static/fonts/Century.woff2') format('woff2'), /* Super Modern Browsers */
    url('/static/fonts/Century.woff') format('woff'), /* Pretty Modern Browsers */
    url('/static/fonts/C059-Roman.ttf')  format('truetype'), /* Safari, Android, iOS */
    url("/static/fonts/C059-Roman.otf") format("opentype"),
}

.logo-text{
    font-family: 'Century Schoolbook', Arial, sans-serif;
    font-weight:normal;
    font-style:normal;
    color: white;
    font-size:40px;
    padding-left: 10px;
}

.container {
    display: grid;

    grid-template-areas:
      "header header header"
      "leftside content rightside"
      "footer footer footer";

    grid-template-columns: 200px 1fr 200px;
    grid-template-rows: auto 1fr auto;
    grid-gap: 10px;
    height: 100vh;
    /*background-color: #f2f2f2;*/
}

body{
    margin: 0;
    font-family: "Roboto Light", sans-serif;
    /*font-size: small;*/
    background-color: #f2f2f2;
}

header {
    grid-area: header;
    /*background-color: blue;*/
}

nav {
    /*margin: 0.5em;*/
    padding: 5px;
    grid-area: nav;
    /*text-align: right;*/
    background-color: #666666;
    display: flex;
    flex-direction: row;
}

.nav-logo{
    width: 50%;
    align-self: center;
    text-align: center;
}
.nav-logo-container{
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-menu{
    width: 50%;
    text-align: right;
    align-self: center;
}

main {
    grid-area: content;
}

.right {
    grid-area: rightside;
    margin: 0.5rem;
    /*background-color: white;*/
    /*background-color: #f2f2f2;*/
}

.left{
    grid-area: leftside;
    margin: 1rem;
    /*background-color: white;*/
    /*background-color: #f2f2f2;*/
}

footer {
    grid-area: footer;
    text-align: center;
    padding-top: 1em;
    background-color: #666666;
}

footer p{
    color: white;
}

footer a{
  color: white;
}

/*svg{*/
/*    width: 16px;*/
/*    height: 16px;*/
/*}*/

/*simple page is used for text pages such as t&c and policy pages*/
.simplepage{
    max-width: 1024px;
    display: flex;
    flex-direction: column;
}

.noborder{
    border: none;
    text-align: center;
    /*font-family: "Roboto Light", sans-serif;*/
    /*font-size: small;*/
    width: 95px;
}

.simplepage .content{
    max-width: 1024px;
    align-self: center;
    background-color: white;
    border-radius: 5px;
    padding: 10px 30px;
    margin: 10px 0;
    position: relative;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: black;
    /*box-shadow: 2px 2px 3px 0 darkgray;*/
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.back-button{
    position:fixed;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    right: 2rem;
    bottom: 2rem;
}

.mainmenu{
    font-size: 20px;
    cursor: pointer;
    /*background-color: #f2f2f2;*/
    background-color: #666666;
    color: white;
    padding: 10px 15px;
    border: none;
}

.mainmenu:hover {
    background-color: #444;
}

.welcome{
    margin: 10px;
}
.box{
    border-radius: 50px;
    width: 300px;
    min-width: 260px;
    max-width: 500px;
    /*height: 280px;*/
    max-height: 300px;
    min-height: 250px;
    padding: 20px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    flex: 2 1 300px;
}

.box-container{
    display: flex;
    flex-flow: column;
}

.box-content{
    display: flex;
    align-content: flex-end;
}

.box-button{
    display: flex;
    align-content: flex-end;
}

.home-content-container{
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.home-content-container div.home-content-row:nth-child(odd){
    justify-content: flex-start;
}
.home-content-container div.home-content-row:nth-child(even){
    justify-content: flex-end;
}

.home-content-row{
    display: flex;
    flex-direction: row;
    flex: 1 1 auto;
    margin: 10px;
}

    /*.home-content-container > .home-content:nth-child(odd) {*/
/*.home-content-container > div.box {*/
/*    display: flex;*/
/*    align-self: flex-end;*/

/*}*/
.home-content {
    display: flex;
}

.home-content.box.odd{
    background-color:rgba(194,6,16,0.82);
    align-self: flex-end;
    color: white;
}
.home-content.box.even{
    background-color: blue;
    align-self: flex-start;
    color: white;
}

/* The sidepanel menu */
.sidepanel {
    height: 250px; /* Specify a height */
    width: 0; /* 0 width - change this with JavaScript */
    position: fixed; /* Stay in place */
    z-index: 1; /* Stay on top */
    top: 0;
    right: 0;
    float: right;
    background-color: #111; /* Black*/
    overflow-x: hidden; /* Disable horizontal scroll */
    padding-top: 60px; /* Place content 60px from the top */
    padding-bottom: 5px;
    transition: 0.5s; /* 0.5 second transition effect to slide in the sidepanel */
    display: flex;
    flex-direction: column;
}

/* The sidepanel links */
.sidepanel a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
}

/* When you mouse over the navigation links, change their color */
.sidepanel a:hover {
    color: #f1f1f1;
}

/* Position and style the close button (top right corner) */
.sidepanel .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

.sidepanel-links{
    flex: 1;
}

.sidepanel-footer{
    align-self: flex-end;
    padding-right: 2px;
    font-size: small;
}

.hidden {
    display: none;
}

.imagecontainer:hover .profile_pic {
    opacity: 0.3;
}

.imagecontainer:hover .middle {
    opacity: 1;
}
.imagecontainer{
    display: flex;
    justify-content: center;
}

.feedback-button{
    cursor: pointer;
    /*transition: transform .2s;*/
}

.feedback-img{
    transition: transform .2s;
}

.pagination-link{
    cursor: pointer;
}

.feedback-img:hover{
    transform: scale(1.2); /* Increase size by 20% */
    transform-origin: 50% 50%;
}

.button-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
}
.button-link:hover {
    background-color: #45a049;
    cursor: pointer;
}

.button-link-read{
    display: inline-block;
    padding: 10px 20px;
    background-color: rgba(107, 133, 107, 0.68);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
}
.button-link-read:hover {
    background-color: #50a154;
    cursor: pointer;
}

.content {
    display: flex;
    flex-direction: column;
    padding: 10px;
}
.content{
    /*background-color: #f2f2f2;*/
    flex: 800 0 200px;
}

.internal-container {
    display: flex;
    flex-direction: column;
    padding: 10px;
}
.internal-content{
    align-self: center;
    background-color: white;
    border-radius: 5px;
    padding: 10px 30px;
    margin: 10px 0;
    max-width: 600px;
    position: relative;
    color: black;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.login-content {
    display: flex;
    flex-direction: column;
    /*padding: 20px;*/
}

.login-form{
    display: flex;
    align-self: center;
    max-width: 600px;
    padding: 20px;
}

/*Received messages on profile link*/
.message-list{
    display: flex;
    align-self: center;
    max-width: 600px;
}
.report-list{
    display: flex;
    align-self: center;
    max-width: 600px;
    flex-flow: column;
}

.address-list{
    display: flex;
    align-self: center;
    max-width: 600px;
    flex-flow: column;
}

.admin-list{
    display: flex;
    align-self: center;
    max-width: 600px;
    flex-flow: column;
}

.profile-detail{
    display: flex;
    align-self: center;
    max-width: 600px;
    flex-flow: column;
}

/*.messages-container {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    padding: 10px;*/
/*    background-color: #f2f2f2;*/
/*    justify-content: center;*/
/*}*/

/*.message-content{*/
/*    align-self: center;*/
/*    background-color: white;*/
/*    border-radius: 5px;*/
/*    padding: 10px 30px;*/
/*    margin: 10px 0;*/
/*    max-width: 600px;*/
/*    position: relative;*/
/*    font-family: Arial, sans-serif;*/
/*    font-size: 14px;*/
/*    color: black;*/
/*    !*box-shadow: 2px 2px 3px 0 darkgray;*!*/
/*    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);*/
/*}*/

/*table td align text at center*/
.align-center-table td {
    text-align: center;
}

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

.message-content-img{
    max-width: 580px;
    height: auto;
}

/*used by profile messages menu and add address form to set the buttons horizontally */
.horizontal-menus{
    display: flex;
}

.button-wnotification{
    position: relative;
}

.notification {
    /* circle shape, size and position */
    position: absolute;
    right: -0.7em;
    top: -0.7em;
    min-width: 1.6em; /* or width, explained below. */
    height: 1.6em;
    border-radius: 0.8em; /* or 50%, explained below. */
    border: 0.05em solid white;
    background-color: #c20610;

    /* number size and position */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    color: white;
}

/*.report-container {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    padding: 10px;*/
/*    background-color: #f2f2f2;*/
/*    !*justify-content: center;*!*/
/*}*/

/*.report-content{*/
/*    align-self: center;*/
/*    background-color: white;*/
/*    border-radius: 5px;*/
/*    padding: 10px 30px 30px;*/
/*    margin: 10px 0;*/
/*    max-width: 600px;*/
/*    position: relative;*/
/*    color: black;*/
/*    !*box-shadow: 2px 2px 3px 0 darkgray;*!*/
/*    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);*/
/*}*/

.report-content-img{
    max-width: 580px;
    height: auto;
}

.contact-banner{
    width: 100%;
    height: 100px;
}

.contact-container{
    display: flex;
    flex-direction: column;
    padding: 10px 30px;
    margin: 10px 0;
}

.contact-img{
    position: absolute;
    top:0;
    left: 0;
    padding: 0;
    width: 100%;
    height: 100px;
    object-fit: cover;
}


/*.contact-container {*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    padding: 10px;*/
/*    !*background-color: #f2f2f2;*!*/
/*    !*justify-content: center;*!*/
/*}*/

.contact-content{
    align-self: center;
    background-color: white;
    border-radius: 5px;
    max-width: 600px;
    position: relative;
    color: black;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

table.addresses tr:hover{
    background-color: lightgrey;
}

table.admin {
    border: 1px solid black;
    width: 100%;
    border-collapse: collapse;
}

table.admin th {
    background-color: darkgray;
    border: 1px solid #ddd;
    text-align: center;
}
table.admin td {
    border: 1px solid #ddd;
}

table.admin tr:nth-child(even) {
    background-color: white;
}

table.admin tr:hover {
    /*color: white;*/
    background-color: lightgrey;
}

/* th, td {*/
/*    border: 1px solid black;*/
/*    border-collapse: collapse;*/
/*}*/
.profile-messages-menus{
    display: flex;
}

/*.register-container{*/
/*    display: flex;*/
/*    flex-direction: column;*/
/*    padding: 10px;*/
/*    !*background-color: #f2f2f2;*!*/
/*    !*justify-content: center;*!*/
/*}*/
.register-content{
    align-self: center;
    max-width: 600px;
}

.center{
    justify-content: center;
    display: flex;
}

@-webkit-keyframes editing-alert {
    from { background-color: red; }
    to { background-color: inherit; }
}
@-moz-keyframes editing-alert {
    from { background-color: red; }
    to { background-color: inherit; }
}
@-o-keyframes editing-alert {
    from { background-color: red; }
    to { background-color: inherit; }
}
@keyframes editing-alert {
    from { background-color: red; }
    to { background-color: inherit; }
}
.editing-alert {
    -webkit-animation: editing-alert 1s ease-in-out 2; /* Safari 4+ */
    -moz-animation:    editing-alert 1s ease-in-out 2; /* Fx 5+ */
    -o-animation:      editing-alert 1s ease-in-out 2; /* Opera 12+ */
    animation:         editing-alert 1s ease-in-out 2; /* IE 10+ */
}


/*.message::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    left: 20px;*/
/*    width: 0;*/
/*    height: 0;*/
/*    border: 10px solid transparent;*/
/*    border-top-color: #e0f7fa;*/
/*    border-bottom: 0;*/
/*    margin-left: -10px;*/
/*    margin-bottom: -10px;*/
/*}*/

/*.message.sent {*/
/*    align-self: flex-end;*/
/*    background-color: #c8e6c9;*/
/*    color: #388e3c;*/
/*}*/

/*.message.sent::after {*/
/*    left: auto;*/
/*    right: 20px;*/
/*    border-top-color: #c8e6c9;*/
/*}*/

.middle {
    transition: .5s ease;
    opacity: 0;
    position: relative;
    top: -55%;
    /*left: 50%;*/
    /*transform: translate(-50%, -50%);*/
    /*-ms-transform: translate(-50%, -50%)*/
}

.profile_border{
    /*padding: 4px;*/
    position: relative;
    width: 120px; /* Set the width of the image */
    height: 130px; /* Maintain the aspect ratio */
    background-image: url('profile/stamp_effect.webp');
    background-size: cover; /* Adjust to fit the div */
    background-position: center; /* Center the image */
}
.profile_pic {
    padding-top: 9px;
    padding-left: 2px;
    width: 104px; /* Set the width of the image */
    height: auto; /* Maintain the aspect ratio */
}
.profile_pic:hover {
    filter: grayscale(100%);
}

.htmx-indicator{
    opacity:0;
    transition: opacity 500ms ease-in;
}
.htmx-request .htmx-indicator{
    opacity:1;
}

.htmx-request.htmx-indicator{
    opacity:1;
}

.spinner-overlay {
    opacity: 0;
    position: fixed;
    top: 0;
    left: 0;
    right:0;
    bottom: 0;
    width: 100%;
    height: 100%;
    transition: opacity 500ms ease-in;
    z-index: -50;
    background-color: #f2f2f2;
}

.spinner-overlay.htmx-request{
    opacity: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.bttn {
    border: none;
    border-radius: 4px;
    background-color: blue;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    transition-duration: 0.4s;
    padding: 15px 32px;
    text-align: center;
    color: white;
    text-decoration: none;
    display: inline-block;
    position: relative;
}

.bttn:hover {
    background-color: cornflowerblue;
    color: white;
}
.bttn:active {
    background-color: cornflowerblue;
    box-shadow: 0 5px #666;
    transform: translateY(3px);
}

.profilecontainer{
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 600px;
    align-content: center;
}

.menus{
    display: flex;
    flex-direction: column;
    background-color: #f2f2f2;
    flex-basis: 150px;
    align-items: stretch;
    padding-top: 100px;
}

#profiledata td{
    padding-left: 15px;
}

button:has(svg) {
    display: flex;
    align-items: center;
    justify-content: center;
}

.button-svg{
    display: flex;
    align-items: center;
    justify-content: center;
}

button svg{
    width: 16px;
    height: 16px;
}

/*.sample-transition{*/
/*    view-transition-name: default;*/
/*}*/
/* define animations for the old and new content */
/*::view-transition-old(default) {*/
/*    opacity: 0;*/
/*    transition: opacity 0.5s;*/
/*}*/
/*::view-transition-new(default) {*/
/*    opacity: 1;*/
/*    transition: opacity 0.5s;*/
/*}*/
/*@media (prefers-reduced-motion) {*/
/*    ::view-transition-group(*),*/
/*    ::view-transition-old(*),*/
/*    ::view-transition-new(*) {*/
/*        animation: none !important;*/
/*    }*/
/*}*/

@view-transition {
    navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: .5s;
}

@media (max-width: 768px) {
    .container {
        grid-template-areas:
        "header"
        "nav"
        "leftside"
        "content"
        "rightside"
        "footer";

        grid-template-columns: 1fr;
        grid-template-rows:
        auto /* Header */
        auto /* Nav */
        minmax(50px, auto) /* Sidebar */
        1fr /* Content */
        minmax(50px, auto) /* Sidebar */
        auto; /* Footer */
    }

    /*.bttn {*/
    /*    display:block;*/
    /*    margin: 0 auto;*/
    /*}*/
    .left, .right {
        margin: 0;
    }

    .profilecontainer{
        flex-direction: column;
        margin: 0 auto;
    }
    .menus{
        flex-direction: row;
        flex-basis: 100px;
        justify-content: center;
        align-items: center;
        padding-top: 0;
    }

    .profilecontainer{
        min-height: 300px;
    }
    .message-content-img{
        max-width: 280px;
        height: auto;
    }
    /*.message-content{*/
    /*    max-width: 300px;*/
    /*    height: auto;*/
    /*}*/
    /*.contact-content{*/
    /*    max-width: 300px;*/
    /*}*/
    /*.report-content {*/
    /*    max-width: 300px;*/
    /*}*/
    .internal-content {
        max-width: 300px;
    }

    input[type="text"]{
        width:90%;
    }
    input[type="email"]{
        width:90%;
    }

    .box{
        max-width: 300px;
    }

    /*input.register {*/
    /*    width:90%;*/
    /*}*/

    /*input.address {*/
    /*    width:90%;*/
    /*}*/

    /*input.contact {*/
    /*    width:80%;*/
    /*}*/
    textarea.contact {
        width:90%;
    }
    .profile_pic {
        padding-left: 0;
    }
    .logo-text{
        font-size:25px;
    }

    .back-button{
        padding: 1rem;
    }
}

