wordpress-theme / css / shared.css
shared.css
Raw
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond&display=swap");

:root {
    --black: rgb(16, 12, 8);
    --white: rgba(255, 255, 255, 1);
    --yellow:#ffd700;
    --font: "Cormorant Garamond", serif;
    --font2: "Libre Baskerville", serif;


}
    
body {
    background-color: var(--black);
    letter-spacing: 3px;
    color: var(--white);
    font-family:var(--font);
    line-height: 1.8;
    font-weight: 400;
}

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

.logo{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
}

/* style menu for big screen  */
#main-header {
    margin-top: 1em;
    text-transform: uppercase;
    font-size: 20px;
    width: 100%;
    max-width: 1170px;
    margin: auto;
    font-family: var(--font2);
}
#navbar ul:first-child {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 1em;
}
#navbar ul:first-child li {
    display: block;
    padding: 8px 8px;
    text-transform: capitalize;
}
#main-header a {
    text-decoration: none;
    font-size: 0.8em;
}
#main-header a:hover {
    color: var(--yellow);
}

/* Style the mobile and small screen menu */
.sidebar {
    height: 100%;
    width: 0;
    position: fixed;
    top: -40px;
    left: 0;
    padding-top: 80px;
    z-index: 1;
    background-color: var(--black);
    overflow-x: hidden;
    transition: 0.5s;
}
.sidebar a {

    text-decoration: none;
    color: var(--white);;
    display: block;
    transition: 0.3s;
    text-decoration: none;
    padding: 20px 20px;
    display: block;
    transition: 0.3s;
}
.sidebar a:hover {
    color: var(--yellow);
}
.sidebar li{
    list-style: none;
    font-size: 0.9em;
}
.closebtn {
    font-size: 50px;
    position: absolute;
    top: 0;
    right: 25px;
    margin-left: 40px;
    color: var(--white);
}
.closebtn:hover {
    color: var(--yellow);
}
.openbtn {
    cursor: pointer;
    font-size: 2em;
    color: var(--white);
    padding: 10px 15px;
    border: none;
    background-color: transparent;
}
.openbtn:hover {
    color: var(--yellow);;
}
#hamgurBtn {
    padding: 0;
    transition: margin-left 0.5s;
    position: fixed;
    top: 0;
    left: 1em;
}

.container {
    width: 90% ;
    min-height: 90vh;
    max-width: 1170px;
    margin: auto;
    transition-delay: 2s;
}

.banner {
    max-width: 1170px;
    position: relative;
    display: flex;
    margin: auto;
}
.banner img{
    width: 100% !important;
    margin: auto!important;
    display: flex !important;
}
.banner-text{
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    padding: 16px;
    border-radius: 6px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%) 
}

/* Style for back button */
.back-btn {
    font-size: 1.5rem;
    transition: color 0.4s ease;
}
.back-btn:hover i {
    color: var(--yellow);;
}

/* style for child pages insid more */
#navbar ul ul {
    display: none !important;
    position: absolute;
    z-index: 10;
    font-size: 0.9em;
    padding-bottom: 12px;
    text-decoration: none;
    color: rgba(255, 255, 255, 1);
    text-transform:lowercase ;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

#navbar li {
    position: relative;
}
#navbar ul li:hover > ul{
    display: block !important;
    padding-right: 20px!important;
}
  
.sidebar ul ul {
    display: none !important;
}
.sidebar ul li:hover > ul {
    display: block !important;
}

  
.sidebar ul ul {
    display: none !important;
}
.sidebar ul li:hover > ul {
    display: block !important;
}
/* Style for footer */
footer {
    padding-top: 80px;
    padding-bottom: 40px;
    color: var(--white);
    margin-top: 50px;
    border-top: 1px solid var(--yellow);

}

.footer-content li {
    list-style: none;
}
.footer-content p {
    text-align: center;
    margin: 10px auto;
    line-height: 28px;
    font-size: 14px;
    color: var(--white);;
}
.phone{
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone i{
    font-size: 1.5rem;
    transition: color 0.4s ease;
}
.socials {
    list-style: none;
    display: flex;
    justify-content: flex-end;
}
  
.socials a {
    text-decoration: none;
    color: var(--white);
    padding: 20px;
}
.socials a i {
    font-size: 1.5rem;
    transition: color 0.4s ease;
}
.socials a:hover i {
    color: var(--yellow);;
}


@media only screen and (max-width: 820px) {
    #navbar {
      display: none;
      
    }
  
}

@media only screen and (min-width: 821px) {
    #hamgurBtn {
      display: none;
    }
    .sidebar {
      display: none;
    }
}

@media only screen and (max-width: 1180px) {
    .banner {
      display: none !important;
    }
  
}