* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f5;
    touch-action: pan-x pan-y pinch-zoom;
    -webkit-overflow-scrolling: touch;
}

body.loading {
    overflow: hidden;
}


/* ------------------------------------------------------------
 *  Preloader
 * ------------------------------------------------------------ */

header{
    width: 100%;
    background-color: white;
}

#preloader {
    max-width: 80%;
    min-width: 360px;
    margin: 0 auto;
    padding: 30px 0;
    height: 280px;
    justify-content: center;
    align-items: center;
    text-align: center;
}
#preloader h1, #preloader p{
    width: auto;
    max-width: 80%;
    min-width: 360px;
    margin: 10px auto;
    font-size: 18px;
}

#preloader p {
    font-size: 12px;
    line-height: 250%;
}

.preloading{
    animation: blink 2.8s ease-in-out infinite;
}
.preloaded{
    animation: fadein 1.0s ease-in-out forwards;
}

@keyframes blink {
   0% {opacity: 0.2;}
   50% {opacity: 1;}
   100% {opacity: 0.2;}
}

@keyframes fadein {
   0% {opacity: 0;}
   100% {opacity: 1;}
}
@keyframes fadeout {
   0% {opacity: 1;}
   100% {opacity: 0;}
}


/* ------------------------------------------------------------
 *  Status Dots
 * ------------------------------------------------------------ */

.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 3px;
    vertical-align: middle;
}

.status-present { background-color: #245ccc;}
.status-undecided { background-color: #d89264;}
.status-absent { background-color: #999999;}
.status-same-year { background-color: #4CAF50;}


/* ------------------------------------------------------------
 *  Main
 * ------------------------------------------------------------ */

 .container {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.container.loaded {
    opacity: 1;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 10px;
}

.cls {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    width: 100%;
    gap: 5px;
}

.clsleft, .clsright {
    flex: 1;
    position: relative;
}

.clsmate {
    position: absolute;
    pointer-events: auto;
    z-index: 10;
    opacity: 0.9;
    cursor: pointer;
}

.clsleft img, .clsright img {
    width: 100%;
    height: auto;
    display: block;
    touch-action: pan-x pan-y pinch-zoom;
}

@media (min-width: 768px) {
    .container {
        max-width: 1540px;
        padding: 20px;
    }
    .cls {
        flex-direction: row;
        margin-bottom: 30px;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 5px;
    }
    .cls {
        margin-bottom: 15px;
        gap: 3px;
    }
}

img {
    max-width: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* ------------------------------------------------------------
 *  Animation
 * ------------------------------------------------------------ */

.rect-animation1, .rect-animation2, .rect-animation3{
    position: relative;
    overflow: hidden;
    border-left: solid 5px #245ccc;
}
.rect-animation2{
    border-left: solid 5px #ffff00;
}
.rect-animation3{
    border-left: solid 5px #999999;
}

.rect-animation1::before, .rect-animation2::before, .rect-animation3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #245ccc;
}
.rect-animation2::before{
    background-color: #ffff00;
}
.rect-animation3::before {
    background-color: #999999;
}

@keyframes scrollRect {
    0% {
        transform-origin: left top;
        transform: scaleX(0);
    }
    15% {
        transform-origin: left top;
        transform: scaleX(1);
    }
    80% {
        transform-origin: right bottom;
        transform: scaleX(1);
    }
    100% {
        transform-origin: right bottom;
        transform: scaleX(0);
    }
}

.rect-animation1.animate::before, .rect-animation2.animate::before, .rect-animation3.animate::before {
    animation: scrollRect 0.6s ease-in forwards;
}


/* ------------------------------------------------------------
 *  Speech Bubble
 * ------------------------------------------------------------ */

.speech-bubble {
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.4;
    max-width: 200px;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.speech-bubble.show {
    opacity: 1;
    transform: translateY(0);
}

.speech-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 40%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid white;
}

.speech-bubble::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 39%;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid #ccc;
}

.speech-bubble .club {
    margin-bottom: 4px;
}

.speech-bubble .comment {
    color: #666;
    font-size: 11px;
}


/* ------------------------------------------------------------
 *  Footer
 * ------------------------------------------------------------ */

footer{
    width: 100%;
    padding: 10px 10px;
    text-align: center;
    font-size: 10px;
    background-color: #07245d;
}
footer a{
    color: #ccc;
    text-decoration: none;
}