:root {
    --ccbrown: rgb(81, 44, 44);

}

* {
    box-sizing: border-box;
}

main {
    margin: 0 10%;
    max-width: 1000px;
    min-height: 500px;
    border: solid rgb(255, 255, 255) 1px !important;

}

.layout {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    gap: 1rem;
}

body {
    background-image: url(images/bgbg.png) ;  
    min-height: 100vh;
    background-color: #cccccc;
    /*always set if image unavilable*/
    background-position: center;
    background-size: auto;

}

/*===============================TYPOGRAPHY===========================*/
header{
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
  text-align: center;
  background: #000000;
  color: white;
  font-size: 30px;
}
.top-elements {
  display: flex; /* keep your two elements in a row */
  gap: 20px; /* space between them */
}
p {
    font-size: medium;
}

h1 {
    text-align: center;
    font-family: "Creepster", cursive;
}

ul {
    list-style-type: none;
    max-width: 200px;
    position: relative;
    display: flex;
    margin: 20% 20%;
    padding-inline-start: 0;
}

li a:hover {
    background-color: rgba(165, 42, 42, 0.4);
}



nav {
    max-width: 200px;
    min-width: 150px;
    min-height: 90px;
    height: fit-content;
    float: left;


}

nav ul {
    margin: 10%;
    display: flex;
    flex-direction: column;
    align-items: space-evenly;

}

/*===============================container===========================*/

.content {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.box {
    border: 4px var(--ccbrown) dotted;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.767);
    text-align: center;
    max-width: 150px;
    margin: 1em;
}


.right {
    flex: 1;
    /* smaller */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.left {
    flex: 3;
    width: 100%
}

/*===============================CLASSES===========================*/

.pfp {
    width: 100%;
    max-width: 6%;
    border-radius: 5%;
    margin-right: 30px;

}

.ref-img {
    max-width: 300px;
    margin: 1em;
}

.float-img {
    float: none;
    width: 200px;
    margin: 10px;

}



.meme-box {
    float: left;
    text-align: left;
    width: fit-content;
    max-width: 350px;
    border: 4px var(--ccbrown) dotted;
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.767);
    margin: 1em;

}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    font-size: smaller;
}
/*==================================gallery=======================*/
div.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 2em;
}

div.gallery-item {
    width: 100%;
    height: 100%;
    position: relative;


}

div.image {
    overflow: hidden;
}

div.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: .5s ease-in-out;

}

div.gallery-item.text {
    padding: 5px;
    text-align: center;
}
/* Start https://www.cursors-4u.com */
* {
    cursor: url(https://cur.cursors-4u.net/holidays/hol-4/hol336.cur), auto !important;
}

/* End https://www.cursors-4u.com */
