@import url('https://fonts.googleapis.com/css2?family=Open+Sans&family=Roboto&display=swap');
@font-face {
    font-family: comic;
    src: url(comic.woff) format('woff')
    ;
  }
  :root {
    --main: #061423;
  }
*{
    padding: 0;
    margin: 0;
}
body{
    background-color: azure;
    background-image: url("/assets/img/bcgnd.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}
header{
    width: 100%;
    height: 75px;
    background-color: var(--main);
    position: fixed;
    top: 0;
    z-index: 99;
}
#header-wrapper{
    max-width: 1200px;
    margin: auto;
    display: flex;
    height: 100%;
    place-content: space-between;
}
#header-wrapper>h1{
    align-self: center;
    color: white;
    font-family: comic;
    font-size: 45px;
    
}
#header-wrapper>div{
    color: white;
    font-family: 'Courier New', Courier, monospace;
    align-self: center;
    font-size: 18px;
    display: flex;
    max-width: 350px;
    height: 100%;
    place-content: space-between;
    align-items: center;
    gap: 20px;
    
}
#header-wrapper a{
    color: white;
    text-decoration: none;
}
#header-wrapper>div>a>div{
    white-space: nowrap;
}
@media only screen and (max-width: 380px) {
    #header-wrapper>h1{
        margin-left: 5%!important;
    }
}
@media only screen and (max-width: 600px) {
    #header-wrapper  a > div > span{
        display: none;
    }
}
@media only screen and (max-width: 800px) {
    #search-input{
        width: 55%!important;
    }
}
@media only screen and (max-width: 1200px) {
    #header-wrapper>h1{
        margin-left: 10%;
    }
    #header-wrapper>div{
        margin-right: 10%;
    }
    #search-input{
        width: 55%!important;
    }
    #search-btn{
        width: 100px!important;
    }
    .box input,.box textarea{
        width: 90%!important;
    }
}
#add_new_button{
    height: 50px;
    align-items: center;
    display: flex;
    padding: 0 10px;
    border: white 1px solid;
    border-radius: 5px;
    background-color: white;
    white-space: nowrap;
}
#add_new_button>a{
    color: black;
    font-family: Arial;
    font-size: 17px;
}
main{
    max-width: 1300px;
    margin: auto;
    min-height: 60vh;
    margin-top: 350px;
    display: flex;
    flex-direction: column;
    background-color: #f2f4f5;
    position: relative;
}
footer{
    background-color:  var(--main);
    padding: 50px;
    color: white;
    text-align: -webkit-center;
}
footer h1{
    align-self: center;
    font-family: comic;
    font-size: 45px;
    margin-bottom: 10px;
}
footer p{
    width: 60%;
    font-family: -webkit-pictograph;
}
footer div{
    margin-top: 30px;
}
footer > div > a{
    color: white;
    margin: 5px;
    text-decoration: none;
    font-family: -webkit-pictograph;
}
#search{
    background-color: #f2f4f5;
    padding: 40px;
    height: 60px;
    position: relative;
}
#search>input{
    border: 0;
    width: 80%;
    height: 100%;
    font-size: 25px;
    color: darkslategray;
    padding-left: 40px;
}
#search-icon{
    position: absolute;
    z-index: 5;
    top: 44%;
    left: 60px;
}
#search>button{
    width: 120px;
    height: 100%;
    border: 0;
    vertical-align: top;
    cursor: pointer;
    background-color:  var(--main);
    color: white;
}
main>h2{
    text-align: center;
    font-family: sans-serif;
    font-size: 34px;
    margin: 50px;
}
#main-loop{
    display: flex;
    flex-flow: wrap;
    column-gap: 10px;
    flex-direction: row;
    width: fit-content;
    padding: 20px;
    justify-content: center;
}
.ad{
    padding: 15px;
    width: 260px;
    background-color: #fff;
    margin-bottom: 20px;
    font-family: sans-serif;
}
.ad>img{
    width: 260px;
    object-fit: cover;
}
.ad h4{
    margin-bottom: 10px;
}
.ad a{
    text-decoration: none;
    color: black;
}
.ad h5{
    margin-bottom: 20px;
}
.ad p{
    font-size: 15px;
    font-weight: 600;
}
.ad img{
    height: 200px;
    width: 100%;
    object-fit: contain;
}
#login-div{
    margin-top: 150px;
    background-color: white;
    width: 400px;
    height: 650px;
    margin: 200px auto 250px;
    border-radius: 10px;
}
.login-tab > input[type="radio"] {
    position: absolute;
    left: -200vw;
}

.login-tab .tab-panel {
    display: none;
}

.login-tab > input:first-child:checked ~ .login-tab-panels > .tab-panel:first-child,
.login-tab > input:nth-child(3):checked ~ .login-tab-panels > .tab-panel:nth-child(2),
.login-tab > input:nth-child(5):checked ~ .login-tab-panels > .tab-panel:nth-child(3),
.login-tab > input:nth-child(7):checked ~ .login-tab-panels > .tab-panel:nth-child(4),
.login-tab > input:nth-child(9):checked ~ .login-tab-panels > .tab-panel:nth-child(5),
.login-tab > input:nth-child(11):checked ~ .login-tab-panels > .tab-panel:nth-child(6) {
    display: block;
}

.login-tab > label, .login-tab > a > label {
    text-align: center;
    position: relative;
    padding: 25px 15px 25px;
    border-bottom: 1px solid  var(--main);
    cursor: pointer;
    width: 170px;
    float: left;
    font: 400 15px Arial;
}
.login-tab > input:checked + label{
    font-weight: 600;
    border-bottom: 3px solid  var(--main);
}
.login-tab-panels{
    padding-top: 90px;
}
.tab-panel > div >  input{
    border: 0;
    height: 30px;
    background-color: #efefef;
    border-radius: 5px;
    padding: 5px 15px;
}
.tab-panel > div > label, .tab-panel > div > a> label{
    color: gray;
    font-family: monospace;
    font-size: 14px;
    margin: 10px 0 0 2px;
}
.tab-panel > div{
    width: 90%;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.tab-panel > div > button{
    height: 40px;
    border-radius: 5px;
    border: 0;
    background-color:  var(--main);
    cursor: pointer;
    color: white;
}
.tab-panel > div > p{
    font-size: 12px;
    font-family: sans-serif;
    color: gray;
    text-align: center;
    margin-top: 15px;
}
.hidden{
    display: none;
}
.err{
    text-align: left!important;
    margin-left: 10px;
    margin-top: 0px!important;
    font-size: 14px!important;
    color: red!important;
    margin-bottom: 10px;
}
#my-loop{
    width: 100%!important;
    gap: 15px!important;
    margin-bottom: 50px;
}
.my-ad{
    background-color: white;
}
.my-ad img{
    height: 150px;
    width: 200px;
    padding: 10px;
    object-fit: contain;
}
.my-ad>a{
    display: flex;
    flex-direction: row;
    cursor: pointer;
    text-decoration: none;  
    font-family: sans-serif;
}
.my-ad>a>div{
    display: flex;
    flex-direction: column;
    margin-left: 20px;
    margin-top: 10px;
    color: black;
    position: relative;
    gap: 5px;
    width: 100%;
}
.my-ad h4{
    font-size: 22px;
}
.my-ad h6{
    font-size: 14px;
    position: absolute;
    right: 40px;
    padding: 10px 15px;
    color: white;
    border-radius: 5px;
    background-color: var(--main);
    bottom: 15px;
}
#dane >div{
    background-color: white;
    width: 100%!important;
    flex-direction: row;
}
#dane >div >img{
    height: 150px;
    width: 200px;
    padding: 10px;
    object-fit: contain;
}
#dane > div > div{
    width: 100%;
    margin-top: 10px;
    font-size: 17px;
    font-family: sans-serif;
    position: relative;
}
#dane input{
    margin: 5px 0;
    height: 20px;
    border-width: 1px;
    border-radius: 3px;
    padding: 10px 3px;
}
#data-change-submit{
    font-size: 14px;
    height: auto!important;
    position: absolute;
    right: 40px;
    padding: 10px 15px!important;
    color: white;
    border-radius: 5px!important;
    background-color: var(--main);
    bottom: 10px;
    margin: 0!important;
    cursor: pointer;
    font-weight: bold!important;
}
@media only screen and (max-width: 550px){
    
    #data-change-submit{
        bottom: -40px;
    }
}
.box{
    width: 75%;
    background-color: white;
    margin: 10px auto;
    padding: 30px;

}
.box h2{
    font-family: sans-serif;
    font-size: 24px!important;
    text-align: left;
}
.box h3{
    font-family: sans-serif;
    font-size: 21px!important;
    text-align: left;
    margin-bottom: 5px;
}
.box h4{
    font-family: sans-serif;
    font-size: 18px!important;
    font-weight: 400;
    text-align: left;
    margin-bottom: 5px;
}
.box input,.box textarea{
    width: 40%;
    display: block;
    padding: 15px 10px;
    font-size: 15px;
    border: 0;
    background-color: #f3f3f3;
    border-radius: 3px;
    border-bottom: 2px solid;
    margin-bottom: 40px;
}
.box input[type="submit"]{
    font-size: 14px;
    height: auto!important;
    padding: 10px 15px!important;
    color: white;
    border-radius: 5px!important;
    background-color: var(--main);
    cursor: pointer;
    font-weight: bold!important;
    margin-top: 30px;
}
#access_box{
    position: fixed;
    left: 0;
    top: 50%;
    height: 150px;
    display: flex;
    cursor: pointer;
}
#access_menu{
    display: none;
    background-color: white;
    flex-direction: column;
    justify-content: space-around;
    padding: 5px;
}
#access_menu>p{
    padding: 2px;
    font-size: 20px;
    cursor: pointer;
}
.visible{
    display: flex!important;
}
#access{
    position: absolute;
    left: 100%;
    top: 35%;
    width: 50px;
    height: 50px;
    background-color: #3496ea;
    border-radius: 0 5px 5px 0;
    display: flex;
    border: 1px #00000094 solid;
    cursor: pointer;
}
#access>svg{
    width: 65%;
    height: 80%;
    margin: auto;
    align-self: center;
}