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

body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background-color: #f6f7f9;
}

.container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #fb4e41;
}

.column {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    flex-grow: 1;
    padding-inline: 24px;
}

.column .column-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.column .column-content span {
    color: #f2f2f2;
    font-weight: bold;
    text-align: center;
}

.column .column-content span.column-content-main {
    font-size: 24px;
    opacity: .7;
    transition: .3s;
}

.column .column-content span.column-content-sub {
    font-size: 18px;
    color: #fb4e41;
}

.column:hover .column-content span.column-content-main {
    opacity: 1;
}

.button {
    margin-top: 20px;
    padding: 10px 20px;
    cursor: pointer;
    background-color: #fb4e41;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 2;
    opacity: .7;
}

.button:hover,
.column:hover .button {
    background-color: #c82333;
    transform: scale(1.1);
    opacity: 1;
}

a {
    text-decoration: none;
    color: white;
}

.column::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

@media (max-width: 768px) {
    .container {
        display: flex;
        flex-direction: column;
        height: unset;
        min-height: 100vh;
    }

    .column {
        padding-block: 24px;
        min-height: 300px;
    }
}

@media (min-width: 1680px) {
    .container {
        display: flex;
    }

    .column {
        width: 100%;
    }
}

@media (hover: none) {
    .column .column-content img,
    .column .column-content span,
    .column .column-content a.button{
        opacity: 1 !important;
    }
}

.column:nth-child(1) {
    background-image: url("images/background/pad-cz-logopad-background.webp");
}

.column:nth-child(2) {
    background-image: url("images/background/pad-cz-psychopad-background.webp");
}

.column:nth-child(3) {
    background-image: url("images/background/pad-cz-fyziopad-cz-background.webp");
}

.column:nth-child(4) {
    background-image: url("images/background/pad-cz-vrpad-cz-background.webp");
}

img {
    width: 90%;
    max-width: 300px;
    max-height: 90px;
    transition: .3s;
    opacity: .7;
}

img:hover,
.column:hover img {
    scale: 1.05;
    opacity: 1;
}

.column::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
    pointer-events: none;
    transition: 0.3s;
}

.column:hover::before {
    opacity: 0.7;
}

.column img {
    position: relative;
    z-index: 2;
}

.language-selector {
    display: flex;
    margin-top: 24px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    flex-wrap: wrap;
    justify-content: center;
    overflow: hidden;
}

.column:hover .language-selector {
    background: rgba(0, 0, 0, 0.6);
}

.lang-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    opacity: 0.7;
    text-decoration: none;
    padding: 8px 16px;
    min-width: 120px;
}

.lang-button:hover {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.lang-button .flag {
    font-size: 36px;
    line-height: 1;
}

.lang-button .lang-text {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

.flag-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .language-selector {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding: 16px;
    }

    .lang-button {
        width: 100%;
        max-width: 200px;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .language-selector {
        gap: 16px;
    }
    
    .lang-button {
        min-width: 110px;
    }
}

@media (max-width: 480px) {
    .language-selector {
        padding: 12px;
    }
    
    .lang-button .flag {
        font-size: 32px;
    }
    
    .lang-button .lang-text {
        font-size: 12px;
    }
}