/**
 * @file styles.css
 * @description Custom styles for the Online Chess Game.
 * Handles layout for game modes, board themes, and chat message styling.
 * 
 * @author Amey Thakur <https://github.com/Amey-Thakur>
 * @author Mega Satish <https://github.com/Mega-Satish>
 * @created 2022-08-09
 * @repository https://github.com/Amey-Thakur/ONLINE-CHESS-GAME
 * @license MIT
 */

/* -------------------------------------------------------------------------- */
/*                                Global Layout                               */
/* -------------------------------------------------------------------------- */

html {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: visible;
    display: flex;
    flex-direction: column;
    /* Anti-Selection & Security */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Anti-Dragging for Images */
img {
    pointer-events: none;
    -webkit-user-drag: none;
}

/* Security Overlay Animation */
@keyframes securityPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.security-icon {
    animation: securityPulse 2s infinite;
}

/* -------------------------------------------------------------------------- */
/*                               Game Controls                                */
/* -------------------------------------------------------------------------- */

#singlePlayer,
#multiPlayer,
#joinButton {
    margin: 10px;
    width: 300px;
    padding: 20px;
    font-size: 22px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#gameMode,
#joinFormDiv {
    padding: 10px;
    margin-top: 8%;
}

.formInput {
    border: 1px solid gray;
    height: 50px;
    border-radius: 4px;
    width: 300px;
    margin: 10px;
    padding: 0 4px;
    font-size: 16px;
}

/* -------------------------------------------------------------------------- */
/*                                Board Themes                                */
/* -------------------------------------------------------------------------- */

/* Default Theme Colors */
.black-3c85d {
    background-color: #E1E1E1;
    color: #FFFFFF;
}

.white-1e1d7 {
    background-color: #FFFFFF;
    color: #E1E1E1;
}

/* Theme Selection Buttons */
#grey_board,
#orange_board,
#green_board,
#blue_board {
    margin: 6px;
    width: 130px;
    border-radius: 4px;
}

/* -------------------------------------------------------------------------- */
/*                                Chat Styles                                 */
/* -------------------------------------------------------------------------- */

/* User's Message (Right Aligned) */
.myMessage {
    text-align: right;
    padding: 8px;
    background-color: #E0E0E0;
    font-size: 17px;
    margin-bottom: 10px;
    margin-right: 7px;
    clear: both;
    float: right;
    border-radius: 5px;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
}

/* Opponent's Message (Left Aligned) */
.youMessage {
    text-align: left;
    padding: 8px;
    background-color: #616161;
    color: white;
    font-size: 17px;
    margin-bottom: 10px;
    clear: both;
    border-radius: 5px;
    float: left;
}