body {
    background-image: url("/assets/articlesbg.jpg");
    background-size: content;
}

/* Fixed background */

#homebackimage {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: -1;
}


#togglebutton {
    color: white !important;
}

main h1 {
    text-align: center;
    color: transparent;
    -webkit-text-stroke: gold 0.25px;
    color: black;
    font-size: 400%;
}

/* Article design */

article {
    display: flex;
    margin-top: 5%;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    flex-wrap: wrap;
    width: 60%;
    background: rgba(255, 255, 255, 0.608); 
    padding: 5%;
    border-left: 5px solid gold;
    border-right: 5px solid gold;
}

.articlemain {
    justify-content: center;
    display: flex;
}

/* General tags */

hr {
    color: gold;
    height: 2px;
}

a {
    text-decoration: none;
    color: gold;
    -webkit-text-stroke: black 2px;
}


/* Link CSS */

main .link {
    margin-top: 5%;
    position: relative;
    display: flex;
    justify-content: center;
    text-align: center;
}

main .link {
    position: relative;
    color: white;
    padding: 3%;
    text-decoration: none;
}

main .link:hover {
    color: gold;
    cursor: pointer;
}

main .link:after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 4px;
  bottom: 0;
  left: 0;
  background-color: gold;
  transform-origin: bottom right;
  transition: transform 0.25s ease-in-out;
  
}

main .link:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}



/* Article container */

.container {
    overflow: hidden;
    margin-left: 5%;
    margin-top: 5%;
    vertical-align: top;
    border: 2px solid gold;
    background-color: #23a5d576;
    width: 25%;
}

.container img {
    width: 100%;
    transition: 0.5s all ease-in-out;
}

.container img:hover {
    transform: scale(1.1);
}


.section-container {
    flex-direction: row;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 5%;
}

/* Article info */

.articletitle {
    color: transparent;
    -webkit-text-stroke: .2px gold;
}

.articledescription  {
    width: 450px;
    padding: 5%;
}

/* Search Box */

.searchbox {
    display: flex;
    justify-content: center;
    width: 25%;
    font-size: 150%;
    background-color: transparent;
    color: white;
    border: none;
}

main ::placeholder {
    color: white;
}

.searchbox:focus {
    outline: none;
    border: none;
}

.searchboxdiv {
    display: flex;
    justify-content: space-evenly;
    margin-top: 5%;
}



/* Mobile design */

@media (max-width:  800px) {
    article {
    display: block;    
    width: 100%;
    }
    img {
        width: 100%;
        height: auto;
    }
    .articledescription {
        width: 300px;
        font-size: 20px;
    }
    .searchbox {
        width: 35%;
    }
    .container {
        width: 100%;
    }
    article p {
        justify-content: center;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
}