@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;700&display=swap');

@font-face {
    font-family: 'LobsterReg';
    src: url('fonts/Lobster-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f4f4f4;
    font-family: 'LobsterReg', Arial, sans-serif;
    color: #333;
    padding: 20px;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 40px);
    border: 3px solid black;
    background-color: white;
    max-width: 1200px;
    margin: 0 auto;
}

.block1 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    background-color: #ffd43b;
    border-bottom: 3px solid black;
    position: relative;
}

.logo {
    width: 120px;
    height: 40px;
    background-color: white;
    border: 2px solid black;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: absolute;
    left: 20px;
}

.logo::after {
    content: " [" attr(data-tooltip) "]";
    font-size: 11px;
    color: #666;
    font-weight: normal;
}

.block1 h1 {
    margin: 0;
    font-family: 'Caveat', cursive;
    font-size: 42px;
}

.main-content {
    display: flex;
    flex-direction: row;
    flex: 1;
    height: 500px;
}

.block2, .block3, .block4, .block5 {
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    border-right: 3px solid black;
    width: calc(100% / 4);

}

.block2 { background-color: #4361ee; color: white; }
.block3 { background-color: #ff6b6b; color: black; }
.block4 { background-color: #dddddd; color: black; }
.block5 { background-color: #80ed99; color: black; }

.block2 h2, .block3 h2, .block4 h2, .block5 h2 {
    margin-bottom: 15px;
}

.scroll-box {
    flex: 1;
    overflow-y: auto;
    background-color: white;
    padding: 15px;
    border: 1px solid black;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
}

.block6 {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 70px;
    background-color: #ffd43b;
    border-top: 3px solid black;
}

.block6 h2 {
    margin: 0;
    font-size: 18px;
}

@media (max-width: 600px) {
    .main-content {
        flex-direction: column;
        height: auto;
    }
    
    .block1 {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
    }

    .logo {
        position: static;
        margin-bottom: 10px;
    }

    .block2, .block3, .block4, .block5 {
        width: 100%;
        border-right: none;
        border-bottom: 3px solid black;
        min-height: 250px;
    }
    
    .block5 {
        border-bottom: none;
    }
}

@media print {
    body {
        background-color: white;
        color: black;
        padding: 0;
    }

    .container {
        border: 1px solid black;
        min-height: auto;
    }

    .block1, .block6, .block2, .block3, .block4, .block5 {
        background-color: white !important;
        color: black !important;
        border: 1px solid black !important;
    }

    .scroll-box {
        overflow: visible;
        max-height: none;
    }
}