@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');


:root{
    --cream:#f7f1f3;
    --gray:#954860;
    --red:#a03434;
    --black:#000000;
    --unemph_text: #ab6a7e;
    --font-size-base: 1rem;
}


html{
    max-width:100%;
    overflow-x: hidden; 
    min-height: 100vh;
}
body{
    position: relative;
    width : 100vw;
    font-family: "Lexend",sans-serif;
    color: var(--cream);
    font-size: var(--font-size-base);
    background-color: var(--gray);
    margin: 0;
    padding:0;
}

a {
    color: var(--cream);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
select,
textarea{
    width: 100%;
    font-family:"Lexend",sans-serif;
    font-size: var(--font-size-base);
    display: block;
    box-sizing: border-box;
    padding: 0.7rem 0.75rem;
    margin-bottom: 0rem;
}

input[type=submit]{
    background: var(--red);
}

.btn {
    font-size: 2rem;
    border: none;
    font-family: "Lexend",sans-serif;
    color: var(--cream);
    text-decoration: none;
    margin: 20px 2px;
    cursor: pointer;
}


/*LAYOUT*/

.container{
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.main{
    padding: 0;
    width:100% ;
    flex-shrink: 0;
    flex-grow: 1;

}

@media(max-width: 700px){
    .main{
        margin: 0;
    }
}


.header{
    box-shadow: 0 5px 5px  #00000050;
    position: sticky;
    top: 0px;
    z-index: 1;
    display: grid;
    grid-template-columns: 5fr 1fr;
    height: auto;
    width: 100%;
    background-color: var(--red);
    grid-template-areas: "menu button";

}

.header__logo{
    display: flex;
    width: 100%;
    justify-content: center;
    text-decoration: none;
    background: var(--red);
}

.header__logo a{
    text-decoration: none;
}

.header__nav{
    grid-area: menu; 
    float: left;
    list-style-type: none;
    
}

.header__nav ul{
    list-style-type: none;
    display: flex;
    color: var(--cream);
    margin: 0;
    padding: 15px 0px;

    
}

.header__nav ul li{
    color: var(--cream);
}

.header__nav ul li a{
    padding:15px;
    text-decoration: none;
}

.header__nav ul a:hover{
    background:var(--cream);
    color: var(--black);
    transition: 0.3s;
}

.header__button{
    align-content: center;
    padding: 0rem 15px;
}

.header__button button{
    float: right;
    font-family: "Lexend",sans-serif;
    padding:.2rem 2rem;
    border-radius: 10px;
    border: solid 2px;
    border-color: transparent;
    background: var(--cream);  
}

.header__button button:hover{
    border: solid 2px;
    transition: 0.3s;
}

@media(max-width: 700px){
    .header{
        overflow-x: auto;
        white-space: nowrap;
        display: flex;
    }
}

.searchBar{
    position: absolute;
    left:0;
    right:0;
    visibility: hidden;
    transform: translateY(-3rem);
    transition: 0.1s;
    z-index: 10;
    width:100%;
    align-content: center;
    display:inline-block;
    height: 3rem;
    background-color: var(--black);
    padding: 4px 0;
   
}

.searchBar.open {
    transform: translateY(0);
    transition: transform 0.1s;
}

.search__form{
    margin:0 4rem;
}

#searchClose{
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem 1rem;
    cursor: pointer;
}

/*HOMEPAGE ARTICLES*/
.articles{
    align-content: center;
    padding : 20px;
}


.article-list__title{
    display: block;
    font-size: 2.5rem;
    text-decoration: none;
    margin-bottom : 20px;
}

.article-list__preview{
    font-weight: 300;
    text-indent: 1rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp:3;
    line-clamp:3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-list__date{
    
    position:absolute;
    right:0px;
    bottom:0px;
    padding:15px;
    color: var(--unemph_text);
}

.post{
    
    text-decoration: none;
    display: block;
    position: relative;
    text-overflow: ellipsis;
    overflow: hidden;
    flex-direction: column;
    filter: drop-shadow(0px 0px 5px #00000090);
    background: var(--gray);
    padding: 1.5rem;
    margin-bottom:1.5rem;
    transition:0.1s;
}

.post img{
    object-fit: cover;
    float: left;
    height: 200px;
    width:200px;
    padding: 15px;
    transition: 0.1s;
}



.post:hover{
    filter: drop-shadow(0px 0px 5px #000000c0);
    font-size: 1.2rem;
    transition: 0.1s;
}
.post:hover img{
    height:220px;
    width:220px;
    transition: 0.1s;
}

.pagination_before{
    float:left;
}
.pagination_after{
    float:right;
}


@media(max-width: 700px){
    .post{
        align-items: center;
        padding:15px;
        margin:0;
        margin-bottom: 2.5rem;
    }
    .post img{
        margin:auto;
        height:auto;
        width:90%;
    }
    
    .post:hover{
        padding:0;
    }
    .post:hover img{
        height:auto;
        width:100%;
        margin:0px;
        padding:0;
        
}
    
    .article-list__title{
        text-align: left;
        font-size: 2rem;
    }
    .article-list__date{
       position: relative;
        float:right;
        padding:10px;
    }
}




/*POST PAGE*/


.article{
    padding: 30px;
    margin-bottom : 50px;
}

.article__body{
    text-indent: 1rem;
    font-weight:300;
    display:block;
}

.article__img{
    float:right;
    padding:10px;
}

.article__insta{
    float:right;
    width:330px;
    margin-right:10px
}

.article__soundcloud{
    width: 25vw;
    float:right;
    margin-right:10px;
}

.article__video video{
    max-height: 75vh;
    float: right;
    margin-right:10px
}

.article__youtube iframe{
    float:right;
    height:500px;
    margin-right: 10px;
}

.article__game{
    margin-bottom:10px;
}

.article__game iframe{
    margin-bottom: 10px;
    float:right;
    width: 100%;
}

.article__audio {
    float: right;
    padding:10px;
}

@media(max-width: 700px){
    .article{
        padding: 10px;
    }
    .article__img{
        float: none;
        width:100%;
        height:auto;
        padding:0;
        margin: 0;
    }
    
    .article__audio{
        padding:0;
        display:table;
        float: none;
        margin : auto;
    }
    .article__video{
        display: table;
        padding:0;
        margin:auto;
    }
    .article__video video{
        float:none;
        margin: auto;
    }
    
}

/*FOOTER*/
.footer{
    filter: drop-shadow(0px -5px 5px #00000050);
    background-color:var(--red);
    text-align: center;
}

/*ADMIN LOGIN*/
.void__body{
    background-color: black;
}


.jumpscare__div{
    width:100vw;
    height: 100vh;
    display: block;
    position: fixed;
    align-content: center;
    top:0;
    z-index: 20;
    
}

.jumpscare{
    visibility: visible;
    height: 100%;
    width: 100%;
    display: fixed;
    align-items:center;
}

/*ADMIN DASHBOARD*/

.admin-title{
    margin-bottom : 25px;
}

.admin-posts{
    list-style-type: none;
    padding: 20px;
}

.admin-post{
    text-decoration: none;
    display: block;
    position: relative;
    text-overflow: ellipsis;
    overflow: hidden;
    flex-direction: column;
    filter: drop-shadow(0px 0px 5px #00000090);
    background: var(--gray);
    padding: 1.5rem;
    margin-bottom:1.5rem;
    transition:0.1s;
}

.admin-post a{
    text-decoration: none;
}

.admin-post img{
    object-fit: cover;
    float: left;
    height: 200px;
    width:200px;
    padding: 15px;
    transition: 0.1s;
}



.admin-post:hover{
    filter: drop-shadow(0px 0px 5px #000000c0);
    font-size: 1.2rem;
    transition: 0.1s;
}
.admin-post:hover img{
    height:220px;
    width:220px;
    transition: 0.1s;
}

.admin-post-controls{
    float: right;
    text-align: right;
}

.admin-post-controls a{
    background: var(--red);
    padding: 0;
}

/*ADD POST*/

.add-post-elements{
    padding:10 px;
    margin: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; 
    grid-column-gap: 10px;
    height : 60vh;
    margin: 30px 0px;
}

.add-post-element{
    text-align: center;
    margin:10px;
    background: var(--gray);
    filter: drop-shadow(0px 0px 5px #00000090);
    transition:0.1s;
}


.add-post-element:hover{
    filter: drop-shadow(0px 0px 5px #000000d0);
    font-size: 1.1rem;
    margin: 5px;
    transition: 0.1s;
}

.add-post-element-links{
    width: 100%;
    display: grid;
    text-align: center;
}

.add-post-element-links a{
    text-decoration: none;
    background: var(--red);
    padding:35px 20px;
    margin:10px 25px;
    transition: 0.1s
}
.add-post-element-links a:hover{
    padding: 40px 25px;
    transition: 0.1s;
}

@media(max-width: 700px){
    .add-post-elements{
        display: block;
        height:100%;
        width: 100%;
    }
}


/*WEB EXPERIMENTS*/

model-viewer{
    background-color: #ab6a7e;
    position : relative;
    margin: auto;
    height: 500px;
    width: 500px;
}

.experiments{
    padding:10px;
}

@media(max-width: 700px){
    model-viewer{
        position: relative;
        width: 100%;
    }
}

/*PORTFOLIO*/

.portfolio{
    width : 25%;
    padding : 40px
     
}

@media(max-width: 700px){
    .portfolio{
        width: 95%;
        padding : 2.5%;
    }
}





