More actions
No edit summary Tag: Manual revert |
No edit summary Tag: Reverted |
||
Line 76: | Line 76: | ||
text-align: center; | text-align: center; | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | ||
display: flex; /* | display: flex; /* Arrange child elements in a row */ | ||
gap: 10px; /* Space between | flex-direction: row; /* Ensure horizontal alignment */ | ||
justify-content: | gap: 10px; /* Space between child elements */ | ||
align-items: | justify-content: flex-start; /* Align items to the left */ | ||
align-items: flex-start; /* Align items to the top */ | |||
box-sizing: border-box; | |||
} | } | ||
/* Title for the text box - Small and positioned at the top */ | /* Title for the text box - Small and positioned at the top */ | ||
Line 99: | Line 102: | ||
} | } | ||
/* | /* Sub-panel container inside the text-box */ | ||
.sub-panel-container { | .sub-panel-container { | ||
display: flex; | display: flex; | ||
flex- | flex-direction: column; /* Stack sub-panels vertically */ | ||
gap: 10px; /* Space between sub-panels */ | gap: 10px; /* Space between sub-panels */ | ||
width: 100%; /* Take full width of the container */ | |||
width | |||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
Line 114: | Line 113: | ||
/* Sub-panel styling */ | /* Sub-panel styling */ | ||
.sub-panel { | .sub-panel { | ||
background-color: #ececec; | background-color: #ececec; | ||
border: 1px solid #ccc; | border: 1px solid #ccc; | ||
padding: 10px; | |||
border-radius: 4px; | border-radius: 4px; | ||
text-align: center; | |||
transition: transform 0.3s, background-color 0.3s; | |||
cursor: pointer; | cursor: pointer; | ||
} | } | ||
/* | /* Hover effect for sub-panels */ | ||
.sub-panel:hover { | .sub-panel:hover { | ||
background-color: #ddd; | background-color: #ddd; | ||
transform: scale(1.05); | transform: scale(1.05); | ||
} | } | ||
/* Nested sub-panel styling */ | /* Nested sub-panel styling */ | ||
.sub-panel-container .sub-panel-container { | .sub-panel-container .sub-panel-container { |
Revision as of 06:38, 30 December 2024
/* General container for all cards */
.card-container {
display: grid;
grid-template-columns: repeat(2, 1fr); /* Two cards per row */
gap: 20px;
padding: 20px;
box-sizing: border-box;
justify-items: center; /* Center cards horizontally */
align-items: start; /* Align cards at the top vertically */
}
/* Card styling - Increased size slightly */
.card {
color: black; /* Ensure text inside the card is black */
width: 480px; /* Increased card width */
height: 380px; /* Increased card height */
background-color: #fff;
border: 1px solid #ddd;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
position: relative;
cursor: pointer;
overflow: hidden;
}
/* Specific rule for titles within the card */
.card h3, .card h4, .card p {
color: black; /* Ensure all text inside card is black */
}
/* Inner wrapper for flip effect */
.card-inner {
width: 100%;
height: 100%;
transform-style: preserve-3d;
transition: transform 0.6s ease-in-out;
position: relative;
}
/* Front and back styling */
.card-front, .card-back {
position: absolute;
width: 100%;
height: 100%;
backface-visibility: hidden;
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
box-sizing: border-box;
}
/* Back face flipped */
.card-back {
transform: rotateY(180deg);
background-color: #f8f8f8;
display: flex;
flex-direction: column;
gap: 10px; /* Space between text boxes */
justify-content: center;
align-items: center;
}
/* Flip effect */
.card:hover .card-inner {
transform: rotateY(180deg);
}
/* Text box on the back of the card */
.text-box {
width: 90%;
padding: 10px;
background-color: #e9ecef; /* Light gray box */
border-radius: 8px;
border: 1px solid #ccc;
text-align: center;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: flex; /* Arrange child elements in a row */
flex-direction: row; /* Ensure horizontal alignment */
gap: 10px; /* Space between child elements */
justify-content: flex-start; /* Align items to the left */
align-items: flex-start; /* Align items to the top */
box-sizing: border-box;
}
/* Title for the text box - Small and positioned at the top */
.text-box h4 {
font-size: 12px; /* Small font size */
font-weight: bold;
color: black; /* Make sure it's black */
margin-bottom: 5px; /* Slight space below the title */
text-transform: uppercase; /* Make it uppercase for a cleaner look */
display: block;
}
/* Sub-panel styling */
.sub-panel {
font-size: 16px; /* Slightly larger text for better readability */
color: black; /* Ensure sub-panel text is black */
margin: auto;
}
/* Sub-panel container inside the text-box */
.sub-panel-container {
display: flex;
flex-direction: column; /* Stack sub-panels vertically */
gap: 10px; /* Space between sub-panels */
width: 100%; /* Take full width of the container */
box-sizing: border-box;
}
/* Sub-panel styling */
.sub-panel {
background-color: #ececec;
border: 1px solid #ccc;
padding: 10px;
border-radius: 4px;
text-align: center;
transition: transform 0.3s, background-color 0.3s;
cursor: pointer;
}
/* Hover effect for sub-panels */
.sub-panel:hover {
background-color: #ddd;
transform: scale(1.05);
}
/* Nested sub-panel styling */
.sub-panel-container .sub-panel-container {
padding-left: 20px;
border-left: 2px solid #ccc;
margin-top: 10px;
}
/* Text inside sub-panels */
.sub-panel p {
font-size: 14px; /* Adjust text size for better readability */
color: black; /* Ensure text is black */
margin: 0;
text-align: center;
}
/* Centering the buttons inside sub-panels */
.sub-panel button {
width: 100%; /* Make the button fill the entire width of the sub-panel */
height: 100%; /* Make the button fill the entire height of the sub-panel */
background-color: #4CAF50; /* Green background */
color: white; /* White text */
border: none; /* Remove border */
border-radius: 4px; /* Optional rounded corners */
text-align: center; /* Center the text */
font-size: 14px; /* Font size */
display: flex; /* Flexbox for centering content */
justify-content: center; /* Horizontally center the text */
align-items: center; /* Vertically center the text */
cursor: pointer;
}
/* Hover effect for buttons */
.sub-panel button:hover {
background-color: #45a049; /* Darker green on hover */
transform: scale(1.05); /* Slightly enlarge on hover */
}