
header {
    color :white;
    background-color:black;
    width: 100%;
    height: 10rem;
    margin: 0;
    padding: 0;
    margin-bottom: 0;
    display:flex;
    align-items:center;
    flex-wrap: wrap;
    gap:11%;
    justify-content: space-evenly;
    justify-content: flex-end;
}
.mod{
    font-size:small;
}
a{
    font-size:2rem;
    background-color:black;
    color:white;
    border:none;
}
a:hover{
    color:gray;
}
.nav-link.active {
    color: gray;
}
button{
    background-color:black;
    color:white;
    border:none;
}
button:hover{
    color:gray;
}
main h1 {
    text-align:center;
    padding-top:1rem;
    padding-bottom: 1rem;
}
.top{
    display:flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.kepmellet{
    word-break: break-word;
    margin-left: 1rem;
    flex: 1;
    text-align:left;
    font-size: 2rem;
}
main img {
    float:right;
    width: 10rem;
    height:auto;
    padding-left:2rem;
}
.middle {
    display:flex;
    flex-direction:column;
}
.sec {
    padding-bottom:1rem;
    padding-top:1rem;
    font-size:2rem;
    font-weight:600;
}
body {
    background-color:darkgray;
    color:white;
    margin:0;
    padding:0;
    align-items:center;
}
body table  {
    margin: 1rem;
    padding:0;
    border-color:black;
    text-align:center;
    border-collapse:collapse;
    table-layout:fixed;
}
caption {
    caption-side: bottom;
    text-align: center;
}
a {
    text-decoration: none; 
    color: inherit; 
}
 body th, td {
    border: 0.1rem solid black; 
    padding: 0.5rem;  
    width:20%;
}
.bottom {
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
}
video{
    width: 50%;
}
h2 {
    text-align:center;
    padding-top:2rem;
    padding-bottom:1rem;
}
label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

input[type="text"],
textarea {
    width: 50%;
    padding: 0.5rem;
    margin-top: 0.5rem;
    box-sizing: border-box;
    font-size: 1rem;
}
.bottom button {
    display: block;
    margin: 1rem auto 0;
    padding: 1rem 3rem;              
    font-size: 1rem;               
    background-color: black;
    color: white;
    border: none;
    border-radius: 1rem;              
    cursor: pointer;                

}
.bottom button:hover {
    background-color: #444;
}
.options,
.checkboxes {
    margin-top: 0.5rem;
}

.options label,
.checkboxes label {
    display: inline-block;
    margin-right: 1rem;
    font-weight: normal;
}
footer{
    text-align:center;
    height: 5rem;
    background-color:black;
    color:white;
    display:flex;
    justify-content: space-evenly;
    display:flex;
    align-items:center;
    flex-wrap: wrap;
    gap: 25%;
}
@media (max-width: 768px) {
    main {
      background-color: gray;
      background-image: none;
    }
    main h1 {
        text-align:center;
        padding-top:0;
        padding-bottom: 1rem;
        margin:0;
    }
    .kepmellet {
        order: 3;
        flex: 1 1 100%;
    }
    header {
        flex-direction:column;
        justify-content: center;
        height: 15rem;
    }
    footer {
        flex-direction:column;
        justify-content: center;
        height:7.5rem;
    }
    .top{
        justify-content:center;
        align-items:center;
    }
    video{
        width: 100%;
        margin-left:0;
    }
    body textarea {
        width: 99%;
        height: 10rem;
        font-size: 1rem;
    }
}
@media (max-width: 480px) {
    .top {
        flex-direction:column;
    }
    main h1 {
        text-align:center;
        padding-top:0;
        padding-bottom: 1rem;
        margin:0;
    }
}
@media print {
    * {
        background: none !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    body {
        background-color: white;
        color: black;
        margin: 1rem;
        padding: 0;
    }

    header, footer, nav, video, .elküld {
        display: none !important;
    }

    .top {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .top > div:nth-child(1),
    .top > div:nth-child(2) {
        flex: 1 1 50%; 
    }

    .kepmellet {
        flex: 1 1 100%;
        font-size: 1rem;
        order: 3;
    }

    main img {
        float: none;
        padding: 0;
        width: 50%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    .sec {
        font-size:1rem;
    }

    a,
    a:visited {
        text-decoration: underline;
        color: black;
    }

    table {
        width: 100%;
        border: 1px solid black;
    }

    th, td {
        border: 1px solid black;
        padding: 0.5rem;
    }

    input,
    textarea,
    button {
        display: none;
    }

    h1, h2, h3 {
        font-size:1rem;
        text-align: center;
        color: black;
    }
    .bottom {
        display: none !important;
    }
}
