* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #241823;
    color: #e8e3d5;
    font-family: helvetica;
    word-wrap:normal;
    background-image: url('https://www.transparenttextures.com/patterns/low-contrast-linen.png');
}

html, body {
    overscroll-behavior-y: none;
    overflow-x:hidden;
    margin:0;
}

.arabic-text {
            direction:rtl;      
            text-align: justify;  
            text-justify: inter-word; 
        }

a {
    color: #d7af9b;
    text-decoration: none;
}

a:hover {
    background-color: #d7af9b;
    color: #231b20;
    transition: background-color 0.2s ease;
    transition: color 0.2s ease;
}

a.red {
    color: #cc6666;
    text-decoration: none;
}

a.red:hover {
    background-color: #cc6666;
    color: #231b20;
    transition: background-color 0.2s ease;
    transition: color 0.2s ease;
}

a.blue {
    color: #8599cc;
    text-decoration: none;
}

a.blue:hover {
    background-color: #8599cc;
    color: #231b20;
    transition: background-color 0.2s ease;
    transition: color 0.2s ease;
}



p.attrib {
    border:1px dotted #d2c1b8;
    padding:5px;
    font-style: italic;
    background-color: #231b20;
    text-align: left;
}

.highlight {
            background-color: #131110; /* Highlight color */
            transition: background-color 0.5s ease-out;        
}
.fade-out {
    background-color: transparent; /* Change to transparent for fade-out effect */
    transition: background-color 0.5s ease-out; /* Transition for fade effect */
}

.quote1 {
    padding-left:10px; 
    border-left: 3px solid #d7af9b;
    margin-bottom: 0;
}

.quote2 {
    padding-left:10px; 
    border-left: 3px solid #d7af9b;
}

.quoted {
    font-size: 14px;
    color: #d7af9b;
    margin-top:-12px;
}

.backbutton {
    margin-bottom:60px; 
    margin-top:-20px;
    font-size:16px;
    padding:2px;
    border: dotted 1px #d2c1b8;
}

.sources ul {
    list-style-type: armenian;
    padding-left: 28px; 
    line-height: 1.6;
    font-size: 16px;
}


/* || Menu styles */

.menu {
    margin-top:20px;
    width:100%;
    max-width:600px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;      
}



.menu p {
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 1px;
}

/* || Header styles */

.header {
    background-color: #12020d;
        /*#231b20;*/
    padding-top: 1px;
    padding-bottom:1px;
    background-image: url('https://www.transparenttextures.com/patterns/soft-kill.png');
}



h1.endzeit {
    margin: 20px;
    letter-spacing: 3px;
}

/* || Home styles */

.homebody {
    width:100%;
    max-width:400px;
    height:auto;
    margin: 20px;
    margin-top:30px;
    box-sizing: border-box;
    overflow-x: hidden;
}



.homebody img {
    float:right;
    width:180px;
}



.homebody p {
    font-size: 15px;
    line-height: 1.5;
    text-align: justify;
}

.homebody hr {
    border: 1px dashed #d2c1b8;
    margin-top:20px;
    margin-bottom:8px;
}

.homefooter {
    width:100%;
    max-width:400px;
    height:auto;
    margin:20px;
}



.homefooter p {
    font-size:14px;
}

/* || E-essays styles */

.essays {
    width:100%;
    max-width:600px;
    height:auto;
    margin: 20px;
}

.essays hr {
    border: 1px dashed #d2c1b8;
    margin-top:20px;
    margin-bottom:8px;
}


.essays p {
    font-size:14px;
    margin-top:8px;
    
}

.essays h3 {
    font-size:20px;;
}

.essayblock {
    padding-top:20px;
    padding-bottom:20px;
    border: 2px dashed #d2c1b8;
    background-color: #12020d;
    margin-bottom:15px;
    padding: 15px;
    background-image: url("https://www.transparenttextures.com/patterns/soft-kill.png")
}

.essayblock img {
    width:100%;
    margin-bottom:5px;
    border: #3b3431 2px solid;
    padding:6px;
    
}

.essayblock img:hover {
    padding:3px;
    background-color:#d7af9b;
}

p.date {
    font-size:14px;
    margin-bottom:3px;
    margin-top:0;
}

.bodytext p.maindate {
    font-size:12px;
    margin-bottom:10px;
    margin-top:-10px;
    margin-left:15px;
}

/* || Bodytext styles */

.bodytext {
    width:100%;
    max-width:600px;
    height:auto;
    margin: 20px;
    line-height: 1.6;
}



.bodytext p {
    margin-bottom: 15px;
    font-size: 14px;
    letter-spacing: 0.6px;
    text-align: justify;
}

.bodytext h2 {
    background-color: #d7af9b;
    color: #231b20;
    margin-bottom:15px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 22px;
    line-height:1.4;
}

sup {
    font-style:normal;
    margin-left:3px;
    margin-right:2px;
    font-size:10px;
    font-weight: bold;
}

sup a {
    color: #2b2127;
    background-color: #d7af9b;
    padding:0 2px;
}


sup a:hover{
    color: #d7af9b;
    background-color: #2b2127;
    border: 1px solid #d7af9b;
    padding:0 2px;
}

span.cite {
    text-decoration:underline;
    color: #d7af9b;
}

.bodytext hr {
    border: 2px dashed #d2c1b8;
    margin-bottom:15px;
}

.essaytitle {
    display: table;
}

.footnotes {
    padding:10px;
    border: 2px solid #d2c1b8;
    text-align: left;
    background-image: url('images/purplepaper2.png');
    background-size: 400px;
}

.footnotes p {
        font-size: 14px;
}

.pic img {
    width: 265px;
    margin: 5px 0;
    border: solid #d7af9b 2px
}

.gridcontainer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width:560px; 
    margin-top:20px;
}



.sources {
    width:100%;
    max-width:400px;
    height:auto;
    margin: 20px;
    margin-top:30px;
    box-sizing: border-box;
    overflow-x: hidden;

}

.sources p {
    font-size: 18px;
    line-height: 1.5;
    text-align: justify;
}

.sources hr {
    border: 1px dashed #d2c1b8;
    margin-bottom:8px;
    margin-top:8px;
}

.aboutbody {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 20px;
    margin-top: 30px;
    overflow-x: hidden;
}

.aboutbody p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
    text-align: justify;
        word-wrap: normal;

}

/* Apply border and size to images within .aboutbody */
.aboutbody .image-border {
    border: solid #d7af9b 2px;
    padding: 5px;
    max-width: 100%;  
    width: 200px;
    display: block;
    height: auto;  
    margin-bottom: 10px;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
}




@media (max-width: 750px) {
  .gridcontainer {
    grid-template-columns: 1fr;
    width:375px;
    
  }
}

@media (max-width: 750px) {
  .pic img {
    width:350px;
  }
}

@font-face {
    font-family: 'Markazi';
    src: url('fonts/MarkaziText-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Markazi';
    src: url('fonts/MarkaziText-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}




@media (max-width: 450px) {
            .menu {
                max-width: 400px; 
                margin-left: 10;
                margin-top: 10;
            }
        }

}
@media (max-width: 450px) {
            .header {
                max-width: 350px; 
                margin-left: 10;
                margin-top: 10;
            }
        }
@media (max-width: 450px) {
            .homebody {
                max-width: 350px; 
                margin-left: 10;
                margin-top: 10;
            }
        }
@media (max-width: 450px) {
            .homebody img {
                max-width: 120px; 
                margin: 0;
            }
        }
@media (max-width: 450px) {
            .homefooter {
                max-width: 350px; 
                margin-left: 10;
                margin-top: 10;
            }
        }
@media (max-width: 450px) {
            .essays {
                max-width: 350px; 
                margin-left: 10;
                margin-top: 10;
            }
        }
@media (max-width: 450px) {
            .bodytext {
                max-width: 350px; 
                margin-left: 10;
                margin-top: 10;
            }
        }

@media (max-width: 450px) {
            .aboutbody {
                max-width: 350px; 
                margin-left: 10;
                margin-top: 10;
            }
        }
        
@media (max-width: 450px) {
            .sources {
                max-width: 350px; 
                margin-left: 10;
                margin-top: 10;
            }
        }

@media (max-width: 450px) {
            p.attrib {
                max-width: 350px; 
                margin-left: 10;
                margin-top: 10;
            }
        }