/* Normal link */
a {
  color: navy;
  text-decoration: none;
  /* font-weight: bold; */
  font-style:italic;
}

/* On hover */
a:hover {
    color: orangered;
}

/* On click (active) */
a:active {
  color: #003f7f;
}

/* After visited */
a:visited {
  color: #551A8B;
}
/* Reset */
* {

    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 17.5px,0px;
    justify-content: space-between;
    text-align: justify;
    font-family: Georgia,sans-serif;
    letter-spacing: 0.3px;
    
}

body {
    /* background:	rgb(252, 252, 252); */
    font-family: Georgia,sans-serif;
    
}

/* Layout Wrapper */
.layout-container {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    /* padding-right: 10px; */
}

/* Side AdSense */

.adsense-side {
    /* background-color: rgb(252, 252, 252); */
    padding: 2px;
    margin-top: 74px;
    border-radius: 8px;
    flex: 1;
    max-width: calc((100% - 900px - 20px) / 2); /* Ensure side fits when main is max */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main Block */
.main-block {
    min-width: 320px;
    max-width: 900px;
    width: 100%;
    margin: 0 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
/* Rows inside main block */
.header {
    height: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-left: 5px;
    position: sticky;
    top:0;
    background-color: white;
    z-index: 100;
}

.header-right {
 
    display: flex;
    gap: 5px;
    width: 65%;
    align-items: center;
    height:100%

}
.welcome {
    display: flex;
    flex:content;
    width: auto;
    justify-content: center;
    align-items: center; 
}
.welcome1 {
    color:navy;
    font-style: italic;
    font-size: 17px;
    margin-right: 7px;
    font-weight: bold;
}
.welcome2 {
    color:Gray;
    /* font-style: italic; */
    font-family: Tahoma;
    font-size: 16px;
    font-weight: bold;
    text-decoration: underline;
    text-decoration-color: orangered; 
    text-underline-offset: 4px;
    letter-spacing: 1.5px;
    margin-left:10px;
}

.header img {
    height: 65px;
    width: auto;
    row-gap: 10px;
}

.menu img{
    height: 25px;
    width:25px;
    display: inline-block;
    align-items: baseline;
}
.menu ul{
    list-style-type: none;
    flex: 1;
    display: flex;
    justify-content: center;
    gap:10px;
    align-items: center; 
    margin:0 15px 0  0; 
}
.menu ul li:hover,.main-block img:hover,.listing h5:hover  {
    border-color: rgb(255, 1, 0);
    border-width:0 0 2px;
    border-style: solid;
    border-radius: 5px;
    color:navy;
    /* width:30px;
    height: 30px; */
}

.dropdown{
    display: none;
}
.dropdown ul{
    display: block;
    position: relative;
    margin: 0 -70px 0 0;
    background-color: white;
    color: black;
    border-radius: 8px;
    border: orange black black orange;  
}  

.dropdown ul li{
    padding: 10px 15px 0;
    
}
.menu ul li:hover .dropdown{
    display: block;
    position: absolute;
    width:auto;
    margin: 0 0 0 -50px;
    padding: 2px;
    
}
.menu ul li[title="Profile"]:hover .dropdown{
    margin: 0 0 0 -30px;    
}

.article {font-size: 0.01px; margin:-2px; display: none;}

.listing,
.search,
.cards,
.card {
    /* background-color: rgb(253, 253, 253); */
    /* padding: 2px 2px; */
    border-radius: 8px;
    border-color:gray;
    border-width: 1px;
    border-style: solid;
    padding: 20px;
    text-align: justify;
    display:block;
}

.cards {
    padding: 30px;
    display: flex;
    text-align: justify;
    height: auto;
}

.listing:hover,
.search:hover,
.card:hover,
.cards:hover{
    border-width: 2.5px; 
/* background: linear-gradient(to left top,#DCDCDC,white ,#F7F9F9); */
    /* background: linear-gradient(to left top,rgb(227, 248, 254),white ,rgb(253, 248, 253));  light-purple + light-blue */
    /* background: linear-gradient(to left top, rgb(15, 36, 215),rgb(0, 205, 248) 10%,white,white); peacock fether colors */
    border-color: orange orange black black;
    /* background-color: #f6f7fb; */
    color:navy;
    box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.1),
    0 6px 12px rgba(0, 0, 0, 0.15);
}

.listing, .search{
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.listing img, .search img  {
    height: 45px;
    width: 45px;
    margin:10px;
    align-self: center;
}

h1{
    text-align: center;
    color: navy;
    font-style: italic;
    margin-top: 15px;
    font-size: 18px;
    position: relative;
    
}

h6{
    font-size: 17px;
    margin: 15px;
    padding: 0;
    width: fit-content;
}
h5{
    font-size: 16px;
    margin: 14px;
    padding: 0;
    width: fit-content;
    text-decoration: underline;
    text-underline-offset: 4px;
    font-style: italic;
    letter-spacing: 1px;
}
.listing p, .search p{
    font-size: 18px;
    margin: 15px;
    padding: 0;
}
/* .search {
    height: 100px;
} */


.footer {
    height: 30px;
    background-color: navy;
    border-radius: 8px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2px;
}

.bottom-adsense {
    height: 150px;
    /* background-color: #e6e6e6; */
    border-radius: 8px;
    padding: 2px;
    align-content: center;

}

button {
    padding: 5px 15px 5px 15px;
    border-radius: 10px;
    border: none;
    height: auto;
    width: auto;
    text-align: center;
    background-color: darkcyan;
    color: white;
    font-style: bold;
    font-size: medium;
    cursor: pointer;
    margin: 0 4px 0 4px;
        display: flex;
        justify-content: center;
        align-items: center;

}
.smallbutton, .deletebutton {
    padding: 2px 5px 2px 5px;
    border-radius: 4px;
    height: auto;
    width: auto;
    text-align: center;
    background-color: darkcyan;
    color: white;
    font-style: bold;
    font-size: 15px;
    cursor: pointer;
    margin: 0 4px 0 4px;
}

.smallerbutton, .deletebutton {
    padding: 2px 3px 2px 3px;
    border-radius: 4px;
    height: auto;
    width: auto;
    text-align: center;
    background-color: slategray;
    color: white;
    font-style: bold;
    font-size: 12px;
    cursor: pointer;
    margin: 0 4px 0 4px;
}

.deletebutton{
    background-color: red;
}
button:hover, .deletebutton:hover {
    background-color: transparent;
    border-color: #0000FF;
    outline: 0px;
    color: orangered;
    font-weight: bold;
    text-decoration: underline;
}
button:focus{
    background-color: transparent;
    border-color: white;
    outline: 1px solid blue;
    color:orangered;
}

.radio_button{
    height:20px; 
    width:25px; 
    cursor:pointer !important;
}

form{
    display:block;
    width:100%;
    height:100%;
    margin:0 0 0 0;
    margin-top: 0;
    padding:0;

}

help {
  /* position: relative; */
  display: inline-block;
  
  color:orange;
  text-decoration: bold;

}

help .note {
  display: none;
  position: absolute;
  margin-top:-1px;
  left:50%;
  translate: -50%;
  /* min-width:fit-content; */
  max-width: 40%;
  background:white;
  color: purple;
  font-size: 15px;
  padding: 15px;
  z-index: 100;
  border-radius: 8px;
  border-width: 3px;
  border-style: solid;
  border-color: purple;
}

help:hover .note {
  display: flex;
}

/* setup for error message errorPopup()*/
#popup-message {
    white-space: pre-line;
    text-wrap:wrap;
}
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: red;
  font-size: 16px;
}

.popup-box {
  background: yellow;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  max-width: 50%;
  text-align: center;
  position: relative;
}

.popup-close {
  position: absolute;
  top: -1px;
  right: 4px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
}

/* For About sections */
#aboutsearch p, #aboutlisting p, #aboutus p {
    text-indent: 3em; 
    padding:0.5em 3em;
}
#aboutsearch span, #aboutlisting span, #aboutus span {
    padding:0 0 3em 3em;
}

#aboutsearch ul, #aboutlisting ul, #aboutus ul {
    padding:0 3em 0 7em;
}