

/* Header styles */

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    font-family: "Source Sans Pro",sans-serif;
}

body {
    overflow: hidden; /* Prevent body scroll */
}


.header, main, aside, footer {
    padding: 5px;
    border: 1px solid #ccc;
    margin: 2px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    border-radius: 3px;
    flex-shrink: 0; /* Fixed height */
}


.preheader {
    margin: 0;
    padding: 0;
    background-color: red;
    color: white;
    display: flex;
    justify-content: flex-end; /* Align children to the right */
    align-items: center;
    height: 50px;
    flex-shrink: 0; /* Fixed height */
}

.camera-section {
    flex: 1; /* Takes remaining space */
    overflow-y: auto; /* Enable vertical scroll */
    padding: 10px 0;
}

.user-info {
    display: flex;
    align-items: center;
    font-weight: 500
}

.user-info a {
    text-decoration: none; /* Remove underlines for all links in .user-info */
    color: white; /* Set text color for links in .user-info */
    margin-left: 50px;
    font-weight: bold;

}

.user-info a:hover {
    text-decoration: underline; /* Underline on hover for links in .user-info */
}
.bolder{
    font-weight: 900
}



/* Specific styling for the "Password ändern" link */
.user-info a.password-change {
    text-decoration: none; /* to remove the underline below the link */
    color: white; /* Set text color for this link */
}

.user-info a.password-change:hover {
    text-decoration: underline; /* Maintain underline on hover for this link */
}


.logout a {
    text-decoration: none;
    background-color: white;
    color: black;
    padding: 6px 9px;
    border-radius: 5px;
    margin-right: 5px;
    margin-left: 10px;
}

.logout a:hover {
    background-color: lightgray;
}

/* Header styles */
.header {
    grid-area: header; /* it must be in a separate thing*/
    padding: 7px 0px;
    justify-content: space-between;
    align-items: center;
    display: flex;
    /*height: 30px;
    /*padding-bottom: 100px;*/
    background-color: #fff;
}

.header img {
    max-width: 9.9%; /* Adjust the maximum width of your logo */
    padding: 8px;

}

h1{ /* this suffices to place the title 'Choose a camera' in the center */
    text-align: center;
}

.header h1 {
    font-size: 39px;
}


footer {
    grid-area: footer;
    background-color: #eee;
    justify-content: space-between;
    align-items: center;
    display: flex;
    max-height: 60px;  /* to somehow restrain the foote when people are not logged in */
}
.footer h1{  /* .footer is the inner div class="footer" class */
    font-size:24px;
    text-align: center;
}
.footer #myBtn{
    font-size:20px;
    text-decoration: none; /* to remove the underline below the link */
    color: black;
    text-align: center;
    display: block;
    font-weight: bold;
    margin: 15px 15px;
}
.footer { /* this applies to the div class="footer" and not to the outer footer. Is needed to put impressum/datenschutz in the middle */
    width: 100%;
}





/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content IMPRESSUM/DATENSCHUTZ*/
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.impressum{
    font-size: 15px;
}



.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center cards in each row */
    gap: 20px; /* Optional: nicer spacing */
    padding: 20px;
}

.card {
    flex: 0 1 calc(33.33% - 20px); /* 3 cards per row with gap spacing */
    max-width: calc(33.33% - 20px);
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    margin: 10px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    box-sizing: border-box;
}

.card h2 {
    font-size: 1.5rem;
    color: black;
}

.card p {
    margin: 10px 0;
    font-size: 1rem;
    color: black;
}

.card img {
    max-width: 100%;
    height: auto;
}

.card a {
    display: block;
    text-decoration: none;
    background-color: #fbc10f;
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.card a:hover {
    background-color: #ffa200;
}






@media (max-width: 857px){ /* here is the big change */

    .header h1{
        font-size:20px;
    }
    .preheader a, p {
        font-size: 12px;
    }

    h1{
        font-size:18px;
    }

    .card {
        flex: 0 1 100%;
        max-width: 100%;
    }
    .card h2{
        font-size:16px;
    }

    .footer #myBtn{ /* this makes the text IMPRESSUM/DATENSCHUTZ smaller, because this is a button*/
        font-size:15px;
        margin: 12px 12px;
    }
}

@media (max-width: 480px){ /* smaller changes */

    .header h1{
        font-size:16px;
    }
    .preheader a, p {
        font-size: 10px;
    }

    h1{
        font-size:14px;
    }

    .card {
        flex: 0 1 100%;
        max-width: 100%;
    }
    .card h2{
        font-size:13px;
    }

    .footer #myBtn{ /* this makes the text IMPRESSUM/DATENSCHUTZ smaller, because this is a button*/
        font-size:13px;
        margin: 11px 11px;
    }
}