body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /*position: relative;*/
}

#header {
    width: 100%;
    height: 40px;
    background-color: darkslategray;
    color: white;
    text-align: right;
    position: absolute;
    left: 0;

}

h1 {
    margin-top: 5px;
}

a {
    color: rgb(105, 178, 255);
}

#content {
    max-width: 1000px;
    min-width: 370px;

    min-height: 100vh;
    left: 50%;
    transform: translateX(-50%);

    background: linear-gradient(rgb(0, 255, 255) 30px, rgb(29, 41, 29) 500px);
    color: white;
    position: absolute;
    top: 50px;
    display: block;

}

#footer {
    width: 100%;
    height: 40px;
    background-color: darkslategray;
    color: white;
    text-align: right;
 
    display: block;
    float: left;
    font-size: smaller;
}

.card {

    float: left;
    /*inline-start;*/
    margin: 5px;
    margin-right: 30px;
    padding-left: 10px;
    padding-top: 20px;

    width: 230px;
    min-height: 200px;
    display: block;
    color: white;
}

.wide {
    width: 380px;
}

.full {
    width: 90%;
    /*height: 320px;*/
}

.carddetails {

    min-height: 200px;
    text-shadow: 2px 2px 5px black;

    background-color: transparent;
    padding: 5px;
}

.block {

    text-align: justify;
	text-align-last: left;
}

.cardtext_left {

    padding: 5px;
    top: 150px;
    position: relative;

    width: 50%;
    height: 150px;
    background-color: rgba(30, 30, 30, 0.5);
}

.cardtext_right {

    padding: 5px;
    top: 150px;
    left: 50%;
    width: 50%;

    position: relative;
    height: 150px;
    background-color: rgba(30, 30, 30, 0.5);
}


.infoblock {

    float: left;
    /*inline-start;*/
    margin: 5px;
    padding-left: 5%;
    padding-top: 50px;

    width: 80%;
    min-width: 340px;
    min-height: 200px;
    display: block;
    color: white;

    position: relative;

}

.image {

    max-width: 500px;
    max-height: 500px;

    box-shadow: 0px 0px 8px rgb(80, 80, 80);
    position: relative;
}

.centered {

    left: 50%;
    transform: translateX(-50%);

}

.med {
    max-width: 50%;
}

.large {
    max-width: 80%;
}


#popup {
    display: none;
    position:fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ccc;
    padding: 10px;
    background: #fff;
    z-index: 1000;

    width: 95%; 
    max-height: 90%; 
    overflow: auto; 
}

#popup img {
    display: block; margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
}

#overlay {
    display: none;
    position: fixed;
    top: 0; 

    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}