body, html {
    margin: 0;
    background-color: whitesmoke;
}

body {
    height: 100dvh;
    text-align: center;
    overflow-y: hidden;
}

header {
    position: absolute;
    top: 0;
}

footer{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100dvw;
    background-color:black;
    height: 5.5dvh;
    text-align: center;
    justify-content: center;
    align-items: center;
    align-content: center;
}

input{
    margin: 0.5%;
    border-radius: 8px;
    width: 110px;
    padding: 0.3rem;
}

input[ type = submit ]{
  background-color: #faf6f6;
  border: 0;
  color: #242424;
  border-radius: 0.5em;
  font-size: 1rem;
  padding: 0.375em 1em;
  font-weight: 550;
  text-shadow: 0 0.0625em 0 #fff;
  box-shadow: inset 0 0.0625em 0 0 #f4f4f4, 0 0.0625em 0 0 #efefef,
    0 0.125em 0 0 #ececec, 0 0.25em 0 0 #e0e0e0, 0 0.3125em 0 0 #dedede,
    0 0.375em 0 0 #dcdcdc, 0 0.425em 0 0 #cacaca, 0 0.425em 0.5em 0 #cecece;
  transition: 0.15s ease;
  cursor: pointer;
}

input[ type = submit]:active {
  translate: 0 0.225em;
  box-shadow: inset 0 0.03em 0 0 #f4f4f4, 0 0.03em 0 0 #efefef,
    0 0.0625em 0 0 #ececec, 0 0.125em 0 0 #e0e0e0, 0 0.125em 0 0 #dedede,
    0 0.2em 0 0 #dcdcdc, 0 0.225em 0 0 #cacaca, 0 0.225em 0.375em 0 #cecece;
}


button, #dugpretr{
    position: relative;
    text-transform: uppercase;
    text-decoration: none;
    padding: 1em 2em;
    display: inline-block;
    cursor: pointer;
    border-radius: 6em;
    transition: all 0.2s;
    border: none;
    font-weight: 500;
    color: black;
    background-color: white;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    font-weight: 600;
    font-size: 1rem;
}

button:hover, #dugpretr:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

button:active, #dugpretr:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

button::after, #dugpretr::after {
  content: "";
  display: inline-block;
  height: 100%;
  width: 100%;
  border-radius: 100px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  transition: all 0.4s;
  background-color: #fff;
}

button::after {
  background-color: #fff;
}

select{
    margin: 0.5%;
    border-radius: 8px;
    padding: 0.3rem;
}

a{
    text-decoration: none;
    color: black;
}

footer a{
    color: white;
}


textarea{
    vertical-align: middle;
    padding: 4px;
    border-radius: 10px;
    border-width: 2px;
    border-style: inset;
    border-width: 1px;
}

.omot{
    display: block;
    align-items: center;
    flex-grow: 1;
}

.omot p{
    font-size: 1.5rem;
}

.omot h1{
    font-size: 3.2rem;
}


.dugme{
    display:flow-root;
    align-items: center;
    margin-top: 8%;
}

.kartice{
    border: 2px grey solid;
    border-radius: 10px;
    padding: 0px;
}

.form-box {
    width: 100%;
    max-width: 450px;
    padding: 30px;
    background: #FFF;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0,0, 0.1);
    display: none;
}

.form-box.active{
    display: block;
}

#naslov{
    position: relative;
    margin-top: 10%;
}

#objavi{
    margin-right: 10%;
}

#pretrazi{
    margin-left: 7;
}

/* #objavi, #pretrazi{
    font-size: 1.2rem;
    padding: 0.7dvw;
} */

#objava{
    position: relative;
    display: none;
    z-index: 1;
}

#fobjava{
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#pretraga{
    margin-top: 2%;
    display: none;
    z-index: 2;
}

#fpretraga{
    position: relative;
    margin-top: -2%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#pocetna{
    right: 1%;
}

#email{
    width: 400px;
    text-align: center;
}

#onamatekst{
    margin-top: 8%;
}

#onamap{
    margin: 2%;
    text-align: justify;
}

#nobjava{
    position: relative;
    margin-top: 20%;
    margin-left: 15%;
    margin-right: 15%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    align-content: center;
}

#unos{
    justify-content: space-evenly;
    margin-top: 3%;
}

#unos input[ type = submit]{
    margin-left: 20px;
    margin-top: 10px;
}

#parpretrage{
    display:flex;
    position: relative;
    margin-top: 5%;
    justify-content: center;
}

#pretgrad, #pretdatum{
    border-right: 2px solid lightgray;
    padding-right: 10px;
    padding-left: 10px;
}

#pretsport{
    padding-left: 10px;
}

#rezpretrage{
    position: relative;
    margin-top: 2%;
    margin-left: 10%;
    margin-right: 10%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    justify-content: center;
    /* align-content: space-evenly; */
}


#onamatekst{
    padding: 3vw;
    padding-left: 10vw;
    padding-right: 10vw;
}

#podnozje{
    display: flex;
    justify-content: space-evenly;
    justify-items: center;
}


/* div{
    padding: 4px;
    border-radius: 10px;
    border-width: 2px;
    border-style: inset;
    border-width: 1px;
} */



@media screen and (max-width: 900px) {
    body{
        font-size: 1.4rem;
    }


    #naslov{
    position: relative;
    margin-top: 15%;
}
}


@media screen and (max-width: 500px) {
    body{
        max-height: 100dvh;
        padding-left: 1%;
        padding-right: 1%;
        font-size: 1.1rem;

    }


    #naslov{
    position: relative;
    margin-top: 20%;
    }

    input[ type = "text"]{
        width: 80px;
    }


    #opis1{
        margin-top: 5%;
    }



}