/* cursor */

html,
body {
    cursor: url("photos/cursorreg.png") 8 8, auto;
}

/* cursor hover */

a,
button,
.portal-button,
.menu a {
    cursor: url("photos/cursorhover.png") 8 8, pointer;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:"Times New Roman", Times, serif;
}

body {
    background: #c0c0c0;
    color: black;
    padding: 30px;
}

.container {
    max-width: 1200px;
    margin: auto;
    background: #dcdcdc;
    border: 3px outset white;
    display: flex;
    min-height: 700px;
}

/* sidebar */

.sidebar {

    width: 260px;
    background: #bfbfbf;
    padding: 20px;

}

.sign-background {

    width: 230px;
    height: 650px;

    background-image: url("photos/screenyrenderdither.png");

    background-size: contain;

    background-repeat: no-repeat;

    background-position: center 200px;

    position: relative;

}

.eye {

    position:absolute;

    width:35px;
    height:35px;

    border-radius:50%;

    overflow:hidden;

    pointer-events:none;

}


.iris {

    position:absolute;

    width:14px;
    height:14px;

    background:black;

    border-radius:50%;

    top:50%;
    left:50%;

    transform:
        translate(-50%, -50%);

}

.left-eye {

    top:203px;
    left:60px;

}


.right-eye {

    top:203px;
    right:60px;

}


/* buttons on top image */
.menu {

    position: absolute;

    top: 250px;

    left: 45px;

    width: 140px;

}



.logo {
    width: 220px;
    height: 200px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.menu a {

    display:block;

    width:120px;          /* narrower buttons */
    margin:14px auto;     /* less vertical spacing */

    padding:10px;         /* shorter buttons */

    background:#efefef;

    border:2px outset white;

    border-radius:30px;

    text-align:center;

    color:blue;

    font-family:"Times New Roman", serif;

    font-size:16px;       /* smaller text */

}


.menu a:hover {

    background:yellow;

    color:red;

}

/* main */

.main {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 700px;
    overflow: hidden;
}

/* banner */

.banner {
    background: linear-gradient(DarkSlateBlue,CornflowerBlue);
    color: yellow;
    text-shadow: 2px 2px red;
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;

}

.marquee {
    overflow: hidden;
    width: 100%;
}

.marquee span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 12s linear infinite;
    font-size: 42px;
    font-weight: bold;
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

.banner h1 {
    font-size: 5rem;
    color: yellow;
    text-shadow: 2px 2px red;
}

/* content */

.content {

    flex: 1;

    display: flex;

    gap: 40px;

    padding: 40px;

    overflow-y: auto;

    overflow-x: hidden;

}

.image-placeholder {
    width: 160px;
    height: 165px;
    border: 3px inset gray;
    overflow: hidden;
    flex-shrink: 0;
}

.image-placeholder img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover; 
}

.text-content {
    flex: 1;
}

.text-content h2 {
    margin-bottom: 20px;
    color: navy;
}

.text-content p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
}

/* bottom */

.footer {
    height: 100px;
    flex-shrink: 0;
    border-top: 3px ridge white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-button {
    display: inline-block;
    background: silver;
    color: blue;
    border: 2px outset white;
    padding: 10px 30px;
    text-decoration: underline;
    font-weight: bold;
}

.portal-button:hover {
    background: yellow;
    color: red;
}

/* left column */

.character-column{

    display:flex;
    flex-direction:column;

    align-items:center;

    gap:20px;

    flex-shrink:0;

}

.sign-image{

    width:220px;

}

.sign-image img{

    width:100%;

    display:block;

}

/* sign */

.visitor-sign{

    width:220px;
    height:170px;

    position:relative;

    margin-top:20px;

    background:url("photos/bilbosign.png") center center no-repeat;
    background-size:contain;

}

/* visitors */

.counter-label{

    position:absolute;

    top:88px;
    left:50%;

    transform:translateX(-50%);

    color:white;

    font-family:"Times New Roman", serif;

    font-size:18px;

    font-weight:bold;

    text-shadow:1px 1px black;

}

/* counter */

.counter-image{

    position:absolute;

    left:50%;
    top:115px;

    transform:translateX(-50%);

}

.counter-image img{

    display:block;

}

/* responsive */

@media (max-width: 800px) {

    .container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #ddd;
    }

    .image-placeholder {
        width: 100%;
        max-width: 300px;
    }

    .text-content {
        text-align: center;
    }

}

/* scroll */
.content::-webkit-scrollbar {

    width: 18px;

}

.content::-webkit-scrollbar-track {

    background: #c0c0c0;

    border: 2px inset white;

}

.content::-webkit-scrollbar-thumb {

    background: #808080;

    border: 2px outset white;

}

.content::-webkit-scrollbar-thumb:hover {

    background: #9a9a9a;

}
