@font-face {
    font-family: Soleil;
    src: url('../font/Soleil-Book.woff') format('woff'),
    url('../font/Soleil-Book.ttf') format('truetype'),
    url('../font/Soleil-Book.otf') format('opentype');
}

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    color: white;
    font-family: Soleil, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.image-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: #023E87;
    transition: all 0.3s ease; /* Smooth resizing when alert column appears */
}

.pages-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 0.5s ease;
}

.page {
    min-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.icon-navigation {
    width: 100%; /* Full width below the main content */
    height: 100px;
    min-height: 100px;
    padding: 10px 0;
    background-color: #023E86;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    /* box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2); /* Optional: Add a shadow above navigation */
}

.icon-container {
    width: 90px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
}

.icon-container.selected {
    opacity: 1;
    transform: scale(1.1);
    position: relative;
}

.icon-image {
    width: 50px;
    height: 50px;
    object-fit: contain;
}

.icon-label {
    margin-top: 5px;
    font-family: Soleil, sans-serif;
    font-size: 16px;
    text-align: center;
    font-weight: bold;
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #FFDF00;
    transition: width 0.1s linear;
}

.auto-cycle-toggle {
    background: #023E86;
    border-radius: 10px;
    padding: 15px;
    position: absolute;
    right: 20px;
    top: 95px;
    z-index: 4;
    font-size: 1.8em;
    font-weight: bold;
}

#loading-screen {
    display: flex;
    height: 100%;
    width: 100%;
    background-color: #023E86;
    z-index: 9999;
    position: absolute;
    justify-content: center;
    font-family: Soleil, sans-serif;
}

#notification-popup {
    display: flex;
    flex-direction: row;
    justify-content: center;
    text-align: center;
    position: fixed;
    padding: 35px 50px;
    font-size: 2em;
    width: 60%;
    align-self: center;
    top: 50%;
    transform: translateY(-50%);
    font-family: Soleil, sans-serif;
    -ms-transform: translateY(-50%);
    background: linear-gradient(to bottom, rgb(8, 58, 129), rgb(21, 35, 106));
    border-radius: 25px;
    border: 10px solid #161A64;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
    animation: popIn 0.3s ease-out,
    outlineChange 2s ease-in-out infinite,
    borderAnimation 8s ease-in-out infinite;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 20px;
    margin-top: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


.container {
    display: flex;
    flex-direction: column; /* Arrange content vertically */
    width: 100%;
    height: 100vh;
    position: relative;
}

.main-content {
    display: flex;
    flex: 1; /* Take up all available vertical space */
    width: 100%;
    position: relative;
    transition: all 0.3s ease; /* Smooth resizing */
}

#infoSource {
    position: fixed;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    width: auto;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    z-index: 100;
    font-family: Soleil, sans-serif;
}
/* Alert Column */
.alert-column {
    width: 20%;
    background-color: rgb(2, 62, 134);
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    /* Added smooth scrolling behavior to container */
    scroll-behavior: smooth;
}
.alert-column.visible {
    display: flex;
}


/* Alert Items */
.alert-item {
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 15px 15px 0px 10px;
    transition: all 0.3s ease;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 1;
   /* width: calc(100% - 30px); /* Ensure consistent width */
}
.alert-item.expanded {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 2;
    overflow: visible; /* Changed from hidden to visible */
}

/* Alert Header - Fixed missing closing comment */
.alert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}
.alert-header h3 {
    margin: 0;
    font-size: 20px;
    color: white; /* Added to ensure visibility */
}

/* Severity Badge */
.severity-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
}

/* Alert Timing */
.alert-timing {
    font-size: 16px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    color: white;
    padding: 5px 10px;
}

/* Alert Content */
.alert-content {
    overflow: visible; /* Changed from hidden to visible */
    color: white;
    text-align: left;
    width: 100%;
    max-width: 305px;
    margin-top: 20px;
    transition: max-height 0.3s ease;
    opacity: 1;
    display: none;
}
.alert-content-inner {
    margin: 10px;
    overflow-y: visible; /* Changed from hidden to visible */
    max-height: none;
}

/* Alert Sections */
.alert-section {
    margin-bottom: 15px;
}
.alert-section h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #ffffff;
    border-bottom: 1px solid #eee;
    padding-bottom: 3px;
}
.alert-section p {
    margin: 0;
    font-size: 16px;
}

/* Navigation Arrows */
.nav-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    color: white;
    background: rgba(50, 50, 50, 0.7);
    transition: all 0.3s ease;
    position: sticky;
    z-index: 100;
    font-size: 20px;
    width: 100%; /* Ensure full width */
}
.up-arrow {
    top: 0;
}
.down-arrow {
    bottom: 0;
}
.nav-arrow.disabled {
    opacity: 0;
    pointer-events: none;
}

/* Severity-specific styles */
.alert-item.extreme {
    border-color: #ff0000;
    border-left: 10px solid #ff0000;
}
.alert-item.extreme .severity-badge {
    background-color: #ff0000;
    color: white;
}
.alert-item.severe {
    border-color: #ff6600;
    border-left: 10px solid #ff6600;
}
.alert-item.severe .severity-badge {
    background-color: #ff6600;
    color: white;
}
.alert-item.moderate {
    border-color: #ffcc00;
    border-left: 10px solid #ffcc00;
}
.alert-item.moderate .severity-badge {
    background-color: #ffcc00;
    color: black;
}
.alert-item.minor {
    border-color: #00cc66;
    border-left: 10px solid #00cc66;
}
.alert-item.minor .severity-badge {
    background-color: #00cc66;
    color: white;
}

/* Other Elements */
.subpage-iframe {
    border: none;
    width: 100%;
    pointer-events: none;
    height: 100%;
    overflow: hidden;
    display: block;
}
#noaa_logo {
    height: 50px;
    width: 150px;
    background-size: contain;
}
#alertColumn {
    overflow-y: hidden;
    max-height: calc(100vh - 120px);
    scrollbar-width: thin;
    /* Added scroll behavior */
    scroll-behavior: smooth;
}

.connect-Exit-Button {
    opacity:0;
    position: absolute;
    display: grid;
    grid-template-columns: 70px 320px;
    font-weight: bold;
    max-width: 25%;
    background-color: #023067;
    text-align: center;
    border-radius: 20px;
    color: #FFFFFF;
    margin-top: 20px;
    padding: 20px;
    /*right:25px;*/
    left:25px;
    bottom: 10px;
    z-index: 1000;
    transition: opacity 1s ease;
}

.connect-Exit-Button.visible {
    visibility: visible;
    opacity: 1;
}

.exit-icon,
.exit-icon-image {
    max-width: 50px;
    max-height: 50px;
    /*margin-right: 10px;*/
    margin: auto;
}

.exit-text {
    width: 300px;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.2;
    font-size: 1.3em;
}