/* general */

body {
    color: ghostwhite;
    background-image: url('backgroundsite.jpg');
	font-family: "Palatino", "Perpetua", "Cambria", serif;
	padding: 10px;
    padding-top: 40px; 
    margin: 0; 
	font-size: 18px;
}


/* text */

p{
	font-size: 18px;
	white-space: pre-line;
	background-color: hsla(0,0%,0%,0.35);
	width: auto;
}

pidentity{
	font-size: 16px;
	white-space: pre-line;
	background-color: hsla(0,0%,0%,0.35);
	width: auto;
	line-height: 1;
}

pwriting{
	font-size: 18px;
	white-space: pre-line;
	background-color: hsla(0,0%,0%,0.65);
	width: auto;
}

psmall{
	font-size: 10px;
	white-space: pre-line;
	background-color: hsla(0,0%,0%,0.35);
	width: auto;
}


a:link {
	color: #c32148
}
a:visited {
	color: #7b1113
}
a:hover {
	color: hotpink
}
a:active {
	color: gray
}

/* containers */

div{
	text-align: center;
}

div.writingbox{
	margin: auto;
	max-width: 550px;
	text-align: left;
    word-wrap: break-word;
	border: 3px solid #c32148;
}

div.writingbox p {
    background-color: hsla(0,0%,0%,0.75); 
}

div.identitybox{
	text-align: center;
	margin: auto;
	max-width: 550px;
    word-wrap: break-word;
	border: 3px solid #c32148;
}

div.myheader {
    background-color: black;
    border-top: 5px solid #c32148;
    border-bottom: 5px solid #c32148;
    width: 100%; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 900; 
    margin: 0; 
	font-size: 20px !important; 
}

.topscroll {
    background-color: black;
    border-bottom: 4px solid #c32148;
    width: 100%; 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 899; 
    margin: 0; 
	padding: 4px; 
	font-size: 16px !important; 
}

.header-content {
	font-size: 20px !important; 
	padding: 5px 0;
    text-align: center;
}



.sidebar {
    background-color: black;
    border-right: 4px solid #c32148; /* Same red as header */
    width: 100px; /* Adjust width as needed */
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    z-index: 998; /* Just below the header */
    padding-top: 60px; /* Space for header */
}

.corner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px; /* Adjust based on your image size */
    height: 100px; /* Adjust based on your image size */
    overflow: hidden;
    z-index: 1000; /* Above both header and sidebar */
	border-bottom: 4px solid #c32148; /* Same red as header */
}

.corner-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

.sidebar-content {
    padding: 5px;
    margin-top: 60px; 
	font-size: 20px;
}

.sidebar-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-content li {
    margin-bottom: 15px;
}

div.center-container {
	text-align: center;
	width: 100%;
}


span{
	background: black;
}

	

/* image classes */

img.artbox{
	border: 12px solid transparent;
	border-image: url(border.png) 16 round;
	max-width: 400px;
}

img.artbox{
	border: 12px solid transparent;
	border-image: url(border.png) 16 round;
	max-width: 400px;
}


img.artboxsmall{
	border: 12px solid transparent;
	border-image: url(border.png) 16 round;
	max-width: 200px;
}

img.artboxsmallblur{
	border: 12px solid transparent;
	border-image: url(border.png) 16 round;
	max-width: 200px;
  	filter: blur(7px);
}

img.artboxsmallblur:hover {
  filter: blur(0);
}

img.artboxlargeblur{
	border: 12px solid transparent;
	border-image: url(border.png) 16 round;
	max-width: 400px;
  	filter: blur(7px);
}

img.artboxlargeblur:hover {
  filter: blur(0);
}

img.artboxmedium{
	border: 12px solid transparent;
	border-image: url(border.png) 16 round;
	max-width: 250px;
}

img.artboxxsmall{
	border: 10px solid transparent;
	border-image: url(border.png) 16 round;
	max-width: 100px;
}


/* animation shit */

.image-with-animated-border {
	position: relative;
	display: inline-block;
	text-align: center;
  }
  
.image-with-animated-border::before {
content: "";
position: absolute;
top: -12px;
right: -12px;
bottom: -12px;
left: -12px;
border: 12px solid #c32148;
pointer-events: none;
}

.image-with-animated-border::after {
content: "";
position: absolute;
width: 20px;
height: 12px;
background-color: rgba(255, 255, 255, 0.5);
top: -12px;
left: -12px;
animation: borderLight 8s linear infinite;
}

@keyframes borderLight {
0% { top: -12px; left: -12px; width: 20px; height: 12px; }
25% { top: -12px; left: calc(100% - 8px); width: 20px; height: 12px; }
25.1% { top: -12px; left: calc(100%); width: 12px; height: 20px; }
50% { top: calc(100% - 8px); left: calc(100%); width: 12px; height: 20px; }
50.1% { top: calc(100%); left: calc(100% - 8px); width: 20px; height: 12px; }
75% { top: calc(100%); left: -8px; width: 20px; height: 12px; }
75.1% { top: calc(100% - 8px); left: -12px; width: 12px; height: 20px; }
100% { top: -12px; left: -12px; width: 12px; height: 20px; }
}

/* Link hover effect */
.myheader a:hover, .sidebar-content a:hover {
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    transition: text-shadow 0.3s ease;
}

/* mobile and desktop adjustments */

@media screen and (max-width: 900px) {
    img.artbox {
        max-width: 85%;
    }
    
    img.artboxsmall {
        max-width: 150px;
    }
    
    img.artboxmedium {
        max-width: 200px;
    }
    
    img.artboxxsmall {
        max-width: 85px;
    }
    
    img.artboxsmallblur {
        max-width: 150px;
    }
    
    img.artboxlargeblur {
        max-width: 85%;
    }

	body{
		padding-top: 80px; 
	}

    .sidebar {
        display: none; 
    }

	p{
		font-size: 14px;
	}
	
	pidentity{
		font-size: 12px;
	}
	
	pwriting{
		font-size: 14px;
	}
	
	psmall{
		font-size: 8px;
	}

	span{		
		font-size: 12px;
	}

}

@media screen and (min-width: 900px) {
    img.artbox {
        max-width: 500px;
    }
    
    img.artboxsmall {
        max-width: 300px;
    }
    
    img.artboxmedium {
        max-width: 400px;
    }
    
    img.artboxxsmall {
        max-width: 150px;
    }
    
    img.artboxsmallblur {
        max-width: 300px;
    }
    
    img.artboxlargeblur {
        max-width: 500px;
    }

	body{
		padding-top: 10px; 
		padding-left: 120px;
	}

	div.myheader {
		display: none;
	}

	p{
		font-size: 18px;
	}
	
	pidentity{
		font-size: 16px;
	}
	
	pwriting{
		font-size: 18px;
	}
	
	psmall{
		font-size: 10px;
	}
	
	span{		
		font-size: 16px;
	}


}
