@import "charcoal.css";
@import "checkbox.css";
@import "chicago.css";
@import "scrollbar.css";
@import "navigation.css";

*,
:before,
:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

html,
body {
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
    height: 100%;
    margin: 0;
    overflow: hidden;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.close-box.control-box {
    left: 4px;
}

.inner .command_button {
    height: 22px;
}


.right-button {
  float: right;
}
.content .inner {
    margin: 2px 4px 4px;
    padding: 1em;
}

.content ul {
    margin: 2px 0 1.5rem;
    padding: 0 0 0 2rem;
}

.content {
    position: absolute;
}

.control-box {
    padding: 1px;
    position: absolute;
    top: 3px;
    z-index: 100;
}

.control-box-inner {
    display: block;
    height: 1rem;
    width: 1rem;
}

.hidden {
    display: none !important;
}

.hidden-window {
    height: 23px !important;
    overflow: hidden !important;
    min-width: 0px;
    min-height: 0px;
}

.icon img {
    display: block;
    height: 48px;
    margin: auto;
    width: 48px;
}

.icon {
    display: block;
    position: relative;
}

.icon:not(:first-child, :last-child) {
    margin-left: 10em;
}

.titlebar ::after {
    float: right;
    position: absolute;
    right: 0;
    top: 0;
    width: 3.5rem;
}

.titlebar.noleft ::before {
  width: 0.5rem;
}

.titlebar.noright ::after {
    width: 0.5rem;
}

.titlebar.halfright ::after {
    width: 1.75rem;
}

.titlebar ::before {
    float: left;
    margin: 0;
    width: 2rem;
}

.titlebar ::before,
.titlebar ::after {
    content: "\00a0";
    display: block;
}

.titlebar span {
    padding: 0 1rem;
    margin-left: -2rem;
}

.titlebar {
    margin: 0;
}

.visuallyhidden {
    border: 0;
    clip: rect(0000);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.window-collapse-inner {
    height: 3px;
    margin-top: 3px;
}

.window-collapse.control-box {
    right: 4px;
}

.zoom-box-inner {
    height: 6px;
    width: 7px;
}

.zoom-box.control-box {
    right: 20px;
}

#icon-holder .icon {
    clear: both;
    float: right;
    margin: 1rem 0;
    position: relative;
    text-align: center;
    top: 1em;
    width: 10em;
}

#icon-holder {
    display: block;
    float: right;
}

::-moz-focus-inner {
    border: 0;
}

:focus {
    outline: none;
}

:root {
    --button-box-shadow: inset -1px -1px 0 0 #777, inset -2px -2px 0 0 #aaa,
        inset 1px 1px 0 0 #ddd, inset 2px 2px 0 0 #fff;
    --button-hover-bezel: 0 0 0 1px #aaa, 0 0 0 2px #ddd, 0 0 0 3px #000;
}


::-webkit-resizer {
    margin: 3em;
}


a {
    color: #000;
}

button {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 100 !important;
}

html,
body {
    background-image: url("../img/patterns/French%20Blue%20Dark.png");
    background-repeat: repeat;
    font-family: "Charcoal", "Chicago", "Times New Roman", "Georgia", serif;
    font-size: 0.75em;
    font-weight: 100 !important;
}


.content button {
    background-color: #dedede;
    border: 1px solid #000;
    border-radius: 3px;
    box-shadow: var(--button-box-shadow);
}

.content button:active {
    background-color: #666;
    box-shadow: var(--button-hover-bezel), inset -1px -1px 0 0 #888,
        inset -2px -2px 0 0 #777, inset 1px 1px 0 0 #444, inset 2px 2px 0 0 #555;
    color: #fff;
}

.content button:hover {
    box-shadow: var(--button-box-shadow), var(--button-hover-bezel);
}

.content .inner {
    background-color: #ddd;
    border: 1px solid #111;
    box-shadow: -1px -1px 0 0 #999, 1px 1px 0 0 #fff, inset 1px 1px 0 0 #fff,
        inset -1px -1px 0 0 #999;
}

.content ul {
    font-size: 1rem;
    list-style-type: none;
}

.content {
    background: #ccc;
    border: 1px solid #111;
    box-shadow: 1px 2px #111, inset 1px 1px 0 0 #fff, inset -1px -1px 0 0 #999;
    font-size: 1rem;
    font-weight: 400;
}

.control-box {
    /*background-color: #222;*/
    box-shadow: inset -1px -1px 0 0 #fff, inset 1px 1px 0 0 #888;
}

.control-box-inner {
    background: linear-gradient(
        tobottomright,
        #999,
        #aaa,
        #bbb,
        #ccc,
        #ddd,
        #eee,
        #fff
    );
    border: 1px solid #222;
    box-shadow: inset 1px 1px 0 0 #ccc, inset -1px -1px 0 0 #888;
    text-indent: -99999rem;
}

.control-box-inner:active {
    box-shadow: none;
}

.titlebar ::before,
.titlebar ::after {
    background-color: #ccc;
}

.titlebar span {
    background-color: #ccc;
    background-image: none;
}

.titlebar {
    background-image: url("../img/title-stripe-center.jpg");
    background-position: 10% 60%;
    background-repeat: repeat-x;
    border: solid 1px #ccc;
    font-size: 1.1rem;
    text-align: center;
}

.window-collapse-inner {
    border-bottom: 1px solid #000;
    border-top: 1px solid #000;
}

.zoom-box-inner {
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
}

#apple-logo img {
    margin-top: -2px;
}

.text-italic {
    font-style: italic;
}

.ui-draggable-dragging {
    transform: scale(1);
    border: 2px black dotted !important;
    background-color: rgba(25, 25, 25, 0) !important;
}

.ui-draggable-dragging * {
    opacity: 0;
}

.ui-draggable-dragging.content,
.ui-resizable-resizing.content {
    box-shadow: none !important;
}

.ui-resizable-handle {
    background: url("../img/corner.png");
}

.ui-resizable-handle {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 21px;
    height: 21px;
}

div.content .inner {
    overflow-x: hidden;
    overflow-y: scroll;
}

div.content.noscroll .inner {
    overflow: hidden;
}

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

.modal {
    height: 100%;
    width: 100%;
    background: #000;
    z-index: 99999999;
    position: absolute;
    border-radius: 0 !important;
}

#boot-button {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 100px;
}

#controls {
    width: 280px; /* Increased width */
    left: 50%;
    transform: translateX(-50%);
    top: 60%; /* Consistent vertical position */
    z-index: 1100;
    min-width: 260px; /* Increased minimum width */
    max-width: 280px; /* Same as width, for consistency */
}

#controls input {
    width: 2em;
}

/* Controls buttons layout */
#controls .command_button {
    min-width: 24px;
    padding: 2px 8px;
}

#skipBackward30, #skipBackward5, #skipForward5, #skipForward30 {
    min-width: 14px; /* Ensure arrow buttons don't need much space */
}

.content,
.content .inner {
    max-height: 100%;
    max-width: 100%;
    min-height: 80px;
    min-width: 100px;
}
#about .inner {
    left: 20px;
    top: 30px;
}
#about .inner {
    width: 700px;
    height: 500px;
}

.alert {
  z-index: 99999998 !important;
  border: 2px #dc5341 outset;
  margin: 10% auto;
  position: relative;
  width: 30% !important;
}

.alert .inner {
  padding-left: 100px;
  border: none;
  box-shadow: none;
  text-align: left;
  background-repeat: no-repeat;
  background-position: 20px 10px;
  background-image: url(../img/alert_notice.png);
}

.alert .inner p {
  margin: 0;
}

.alert-stop .inner {
  background-image: url(../img/alert_stop.png);
}

#sadmac {
    text-align: center;
    padding: 15%;
    z-index: 99999 !important;
    width: 100%;
    height: 100%;
    display: block;
    margin: 0;
}

/* Add to platinum.css */
#audioSource {
    width: 100%;
    margin-bottom: 10px;
    font-family: inherit;
}

#links {
    position: absolute;
    top: 50px;
    left: 50%;
    margin-left: -375px; /* Half of max-width */
    width: 90%; /* Default to 90% of viewport width */
    max-width: 750px; /* Maximum width for large screens */
    min-width: 320px; /* Minimum width for small screens */
    z-index: 1150; /* Ensure links stays above controls */
}

/* Last.fm image hover effect */
#links .inner > div:first-child {
    position: relative;
    display: inline-block; /* Ensures the container wraps around the image */
    line-height: 0; /* Remove extra space below image */
    margin-bottom: 5px; /* Small gap between image and links */
    max-width: 100%; /* Ensure it doesn't exceed parent width */
}

#links .inner > div:first-child img {
    transition: all 0.2s ease;
    border: 1px solid #777; /* Border visible by default */
    vertical-align: bottom; /* Remove extra space at bottom of image */
    max-width: 100%;
}

#links .inner > div:first-child img:hover {
    opacity: 0.9;
    border: 1px solid #444; /* Darker border on hover */
}

/* Position the icon relative to the image container */
#links .inner > div:first-child::after {
    content: "";
    position: absolute;
    right: 15px; /* Increased margin from edge */
    bottom: 15px; /* Increased margin from edge */
    width: 24px;
    height: 24px;
    background-color: rgba(204, 204, 204, 0.8);
    border: 1px solid #777;
    border-radius: 3px;
    background-image: url("../img/web.png");
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    pointer-events: none;
    z-index: 1160; /* Ensure icon stays above other elements */
}

/* Social Links Styles */
.social-links {
    text-align: center;
    margin-top: 0;
}

.social-links .command_button {
    margin: 5px;
    padding: 4px 12px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .draggable-window {
        min-width: 280px;
    }
    
    #links {
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
        width: 90%;
        max-width: 400px;
        min-width: 300px;
    }
    
    #links .inner {
        text-align: center;
    }
    
    #controls {
        width: 260px; /* Increased width on mobile */
        max-width: 260px;
    }
    
    #controls .command_button {
        padding: 2px 6px;
        font-size: 11px;
    }
    
    #controls canvas {
        height: 40px;
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    #macoslogo {
        display: none;
    }
    
    .button-row {
        margin-bottom: 10px;
    }
    
    /* Mobile-specific button styles */
    .button-row .command_button {
        display: inline-block;
        min-width: 80px;
        margin: 0 4px;
        padding: 2px 8px;
        font-size: 11px;
        height: 20px;
        line-height: 16px;
    }
}

@media (min-width: 769px) {
    .desktop-only {
        display: block;
    }
    .mobile-only {
        display: none;
    }
}

/* Add these lines at the bottom of your file */
@-webkit-keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

img.blink {
    -webkit-animation: blink 1s infinite;
    animation: blink 1s infinite;
}
