/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Comic Sans MS", "Comic Sans";
    font-size: 16px;
}

/* Base styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #ffffff;
}

header {
    background-color: #f8f9fa;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e5e5e5;
    z-index: 10;
}

header h1 {
    font-size: 2rem;
    color: #333;
}

.main-container {
    flex: 1;
    display: flex;
    width: 100%;
    height: calc(100vh - 116px); /* Adjust based on header + footer height */
    overflow: hidden;
    position: relative;
}


 /* FHD (1920x1080) */
@media screen and (min-width: 1920px) {
    .main-container {
        height: calc(100vh - 128px);
    }
    
    header h1 {
        font-size: 2rem;
    }
}

/* 2K (2560x1440) */
@media screen and (min-width: 2560px) {
    .main-container {
        height: calc(100vh - 140px);
    }
    
    header h1 {
        font-size: 2.25rem;
    }
}

/* iPad/Tablet Landscape */
@media screen and (min-width: 1024px) and (max-height: 1024px) {
    header {
        padding: 0.75rem;
    }
    
    .main-container {
        height: calc(100vh - 96px);
    }
    
    header h1 {
        font-size: 1.5rem;
    }
}

/* iPad/Tablet Portrait */
@media screen and (max-width: 768px) {
    header {
        padding: 0.5rem;
    }
    
    .main-container {
        height: calc(100vh - 88px);
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    footer {
        padding: 0.5rem;
    }
}

footer {
    background-color: #f8f9fa;
    padding: 0.75rem;
    text-align: center;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
    color: #6c757d;
    border-top: 1px solid #e5e5e5;
    z-index: 10;
}

/* Alert messages */
.alert {
    margin: 1rem 0;
    padding: 0.75rem 1.25rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}